- 3.25.0 (latest)
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
public abstract class RegionHealthAggregationPoliciesClientReference documentation and code samples for the Compute Engine v1 API class RegionHealthAggregationPoliciesClient.
RegionHealthAggregationPolicies client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The RegionHealthAggregationPolicies API.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the RegionHealthAggregationPolicies service, which is a host of "compute.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default RegionHealthAggregationPolicies scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default RegionHealthAggregationPolicies scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual RegionHealthAggregationPolicies.RegionHealthAggregationPoliciesClient GrpcClient { get; }The underlying gRPC RegionHealthAggregationPolicies client
| Property Value | |
|---|---|
| Type | Description |
RegionHealthAggregationPoliciesRegionHealthAggregationPoliciesClient |
|
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }The long-running operations client for Patch.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
Methods
AggregatedList(AggregatedListRegionHealthAggregationPoliciesRequest, CallSettings)
public virtual PagedEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> AggregatedList(AggregatedListRegionHealthAggregationPoliciesRequest request, CallSettings callSettings = null)Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project.
To prevent failure, it is recommended that you set the
returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListRegionHealthAggregationPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableHealthAggregationPolicyAggregatedListKeyValuePairstringHealthAggregationPoliciesScopedList |
A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
AggregatedListRegionHealthAggregationPoliciesRequest request = new AggregatedListRegionHealthAggregationPoliciesRequest
{
OrderBy = "",
Project = "",
ServiceProjectNumber = 0L,
Filter = "",
IncludeAllScopes = false,
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> response = regionHealthAggregationPoliciesClient.AggregatedList(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (HealthAggregationPolicyAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, HealthAggregationPoliciesScopedList>> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AggregatedList(string, string, int?, CallSettings)
public virtual PagedEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project.
To prevent failure, it is recommended that you set the
returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
project |
stringName of the project scoping this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableHealthAggregationPolicyAggregatedListKeyValuePairstringHealthAggregationPoliciesScopedList |
A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> response = regionHealthAggregationPoliciesClient.AggregatedList(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (HealthAggregationPolicyAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, HealthAggregationPoliciesScopedList>> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AggregatedListAsync(AggregatedListRegionHealthAggregationPoliciesRequest, CallSettings)
public virtual PagedAsyncEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> AggregatedListAsync(AggregatedListRegionHealthAggregationPoliciesRequest request, CallSettings callSettings = null)Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project.
To prevent failure, it is recommended that you set the
returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListRegionHealthAggregationPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableHealthAggregationPolicyAggregatedListKeyValuePairstringHealthAggregationPoliciesScopedList |
A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListRegionHealthAggregationPoliciesRequest request = new AggregatedListRegionHealthAggregationPoliciesRequest
{
OrderBy = "",
Project = "",
ServiceProjectNumber = 0L,
Filter = "",
IncludeAllScopes = false,
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> response = regionHealthAggregationPoliciesClient.AggregatedListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (HealthAggregationPolicyAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, HealthAggregationPoliciesScopedList>> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AggregatedListAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project.
To prevent failure, it is recommended that you set the
returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
project |
stringName of the project scoping this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableHealthAggregationPolicyAggregatedListKeyValuePairstringHealthAggregationPoliciesScopedList |
A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<HealthAggregationPolicyAggregatedList, KeyValuePair<string, HealthAggregationPoliciesScopedList>> response = regionHealthAggregationPoliciesClient.AggregatedListAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (HealthAggregationPolicyAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, HealthAggregationPoliciesScopedList>> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, HealthAggregationPoliciesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
Create()
public static RegionHealthAggregationPoliciesClient Create()Synchronously creates a RegionHealthAggregationPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionHealthAggregationPoliciesClientBuilder.
| Returns | |
|---|---|
| Type | Description |
RegionHealthAggregationPoliciesClient |
The created RegionHealthAggregationPoliciesClient. |
CreateAsync(CancellationToken)
public static Task<RegionHealthAggregationPoliciesClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a RegionHealthAggregationPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionHealthAggregationPoliciesClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskRegionHealthAggregationPoliciesClient |
The task representing the created RegionHealthAggregationPoliciesClient. |
Delete(DeleteRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Deletes the specified HealthAggregationPolicy in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
DeleteRegionHealthAggregationPolicyRequest request = new DeleteRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionHealthAggregationPoliciesClient.Delete(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionHealthAggregationPoliciesClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Delete(string, string, string, CallSettings)
public virtual Operation<Operation, Operation> Delete(string project, string region, string healthAggregationPolicy, CallSettings callSettings = null)Deletes the specified HealthAggregationPolicy in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy resource to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = regionHealthAggregationPoliciesClient.Delete(project, region, healthAggregationPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionHealthAggregationPoliciesClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Deletes the specified HealthAggregationPolicy in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionHealthAggregationPolicyRequest request = new DeleteRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteRegionHealthAggregationPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionHealthAggregationPolicyRequest request, CancellationToken cancellationToken)Deletes the specified HealthAggregationPolicy in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionHealthAggregationPolicyRequest request = new DeleteRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, string, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string healthAggregationPolicy, CallSettings callSettings = null)Deletes the specified HealthAggregationPolicy in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy resource to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.DeleteAsync(project, region, healthAggregationPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, string, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string healthAggregationPolicy, CancellationToken cancellationToken)Deletes the specified HealthAggregationPolicy in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy resource to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.DeleteAsync(project, region, healthAggregationPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Get(GetRegionHealthAggregationPolicyRequest, CallSettings)
public virtual HealthAggregationPolicy Get(GetRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Returns the specified HealthAggregationPolicy resource in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
HealthAggregationPolicy |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
GetRegionHealthAggregationPolicyRequest request = new GetRegionHealthAggregationPolicyRequest
{
Region = "",
Project = "",
HealthAggregationPolicy = "",
};
// Make the request
HealthAggregationPolicy response = regionHealthAggregationPoliciesClient.Get(request);
Get(string, string, string, CallSettings)
public virtual HealthAggregationPolicy Get(string project, string region, string healthAggregationPolicy, CallSettings callSettings = null)Returns the specified HealthAggregationPolicy resource in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy resource to return. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
HealthAggregationPolicy |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
// Make the request
HealthAggregationPolicy response = regionHealthAggregationPoliciesClient.Get(project, region, healthAggregationPolicy);
GetAsync(GetRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Task<HealthAggregationPolicy> GetAsync(GetRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Returns the specified HealthAggregationPolicy resource in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskHealthAggregationPolicy |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRegionHealthAggregationPolicyRequest request = new GetRegionHealthAggregationPolicyRequest
{
Region = "",
Project = "",
HealthAggregationPolicy = "",
};
// Make the request
HealthAggregationPolicy response = await regionHealthAggregationPoliciesClient.GetAsync(request);
GetAsync(GetRegionHealthAggregationPolicyRequest, CancellationToken)
public virtual Task<HealthAggregationPolicy> GetAsync(GetRegionHealthAggregationPolicyRequest request, CancellationToken cancellationToken)Returns the specified HealthAggregationPolicy resource in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskHealthAggregationPolicy |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRegionHealthAggregationPolicyRequest request = new GetRegionHealthAggregationPolicyRequest
{
Region = "",
Project = "",
HealthAggregationPolicy = "",
};
// Make the request
HealthAggregationPolicy response = await regionHealthAggregationPoliciesClient.GetAsync(request);
GetAsync(string, string, string, CallSettings)
public virtual Task<HealthAggregationPolicy> GetAsync(string project, string region, string healthAggregationPolicy, CallSettings callSettings = null)Returns the specified HealthAggregationPolicy resource in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy resource to return. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskHealthAggregationPolicy |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
// Make the request
HealthAggregationPolicy response = await regionHealthAggregationPoliciesClient.GetAsync(project, region, healthAggregationPolicy);
GetAsync(string, string, string, CancellationToken)
public virtual Task<HealthAggregationPolicy> GetAsync(string project, string region, string healthAggregationPolicy, CancellationToken cancellationToken)Returns the specified HealthAggregationPolicy resource in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy resource to return. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskHealthAggregationPolicy |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
// Make the request
HealthAggregationPolicy response = await regionHealthAggregationPoliciesClient.GetAsync(project, region, healthAggregationPolicy);
Insert(InsertRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
InsertRegionHealthAggregationPolicyRequest request = new InsertRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicyResource = new HealthAggregationPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionHealthAggregationPoliciesClient.Insert(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionHealthAggregationPoliciesClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Insert(string, string, HealthAggregationPolicy, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, string region, HealthAggregationPolicy healthAggregationPolicyResource, CallSettings callSettings = null)Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicyResource |
HealthAggregationPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
HealthAggregationPolicy healthAggregationPolicyResource = new HealthAggregationPolicy();
// Make the request
lro::Operation<Operation, Operation> response = regionHealthAggregationPoliciesClient.Insert(project, region, healthAggregationPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionHealthAggregationPoliciesClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionHealthAggregationPolicyRequest request = new InsertRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicyResource = new HealthAggregationPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertRegionHealthAggregationPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionHealthAggregationPolicyRequest request, CancellationToken cancellationToken)Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionHealthAggregationPolicyRequest request = new InsertRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicyResource = new HealthAggregationPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, string, HealthAggregationPolicy, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, HealthAggregationPolicy healthAggregationPolicyResource, CallSettings callSettings = null)Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicyResource |
HealthAggregationPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
HealthAggregationPolicy healthAggregationPolicyResource = new HealthAggregationPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.InsertAsync(project, region, healthAggregationPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, string, HealthAggregationPolicy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, HealthAggregationPolicy healthAggregationPolicyResource, CancellationToken cancellationToken)Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicyResource |
HealthAggregationPolicyThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
HealthAggregationPolicy healthAggregationPolicyResource = new HealthAggregationPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.InsertAsync(project, region, healthAggregationPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
List(ListRegionHealthAggregationPoliciesRequest, CallSettings)
public virtual PagedEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> List(ListRegionHealthAggregationPoliciesRequest request, CallSettings callSettings = null)Lists the HealthAggregationPolicies for a project in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionHealthAggregationPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableHealthAggregationPolicyListHealthAggregationPolicy |
A pageable sequence of HealthAggregationPolicy resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
ListRegionHealthAggregationPoliciesRequest request = new ListRegionHealthAggregationPoliciesRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> response = regionHealthAggregationPoliciesClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (HealthAggregationPolicy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (HealthAggregationPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HealthAggregationPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HealthAggregationPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HealthAggregationPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
List(string, string, string, int?, CallSettings)
public virtual PagedEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> List(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the HealthAggregationPolicies for a project in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableHealthAggregationPolicyListHealthAggregationPolicy |
A pageable sequence of HealthAggregationPolicy resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> response = regionHealthAggregationPoliciesClient.List(project, region);
// Iterate over all response items, lazily performing RPCs as required
foreach (HealthAggregationPolicy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (HealthAggregationPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HealthAggregationPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HealthAggregationPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HealthAggregationPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(ListRegionHealthAggregationPoliciesRequest, CallSettings)
public virtual PagedAsyncEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> ListAsync(ListRegionHealthAggregationPoliciesRequest request, CallSettings callSettings = null)Lists the HealthAggregationPolicies for a project in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionHealthAggregationPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableHealthAggregationPolicyListHealthAggregationPolicy |
A pageable asynchronous sequence of HealthAggregationPolicy resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
ListRegionHealthAggregationPoliciesRequest request = new ListRegionHealthAggregationPoliciesRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> response = regionHealthAggregationPoliciesClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (HealthAggregationPolicy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (HealthAggregationPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HealthAggregationPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HealthAggregationPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HealthAggregationPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(string, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> ListAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the HealthAggregationPolicies for a project in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableHealthAggregationPolicyListHealthAggregationPolicy |
A pageable asynchronous sequence of HealthAggregationPolicy resources. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<HealthAggregationPolicyList, HealthAggregationPolicy> response = regionHealthAggregationPoliciesClient.ListAsync(project, region);
// Iterate over all response items, lazily performing RPCs as required
await foreach (HealthAggregationPolicy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (HealthAggregationPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HealthAggregationPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<HealthAggregationPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (HealthAggregationPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
Patch(PatchRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Patch(PatchRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
PatchRegionHealthAggregationPolicyRequest request = new PatchRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicy = "",
HealthAggregationPolicyResource = new HealthAggregationPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionHealthAggregationPoliciesClient.Patch(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionHealthAggregationPoliciesClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Patch(string, string, string, HealthAggregationPolicy, CallSettings)
public virtual Operation<Operation, Operation> Patch(string project, string region, string healthAggregationPolicy, HealthAggregationPolicy healthAggregationPolicyResource, CallSettings callSettings = null)Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply with RFC1035. |
healthAggregationPolicyResource |
HealthAggregationPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
HealthAggregationPolicy healthAggregationPolicyResource = new HealthAggregationPolicy();
// Make the request
lro::Operation<Operation, Operation> response = regionHealthAggregationPoliciesClient.Patch(project, region, healthAggregationPolicy, healthAggregationPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionHealthAggregationPoliciesClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionHealthAggregationPolicyRequest request = new PatchRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicy = "",
HealthAggregationPolicyResource = new HealthAggregationPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchRegionHealthAggregationPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionHealthAggregationPolicyRequest request, CancellationToken cancellationToken)Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionHealthAggregationPolicyRequest request = new PatchRegionHealthAggregationPolicyRequest
{
RequestId = "",
Region = "",
Project = "",
HealthAggregationPolicy = "",
HealthAggregationPolicyResource = new HealthAggregationPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(string, string, string, HealthAggregationPolicy, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string healthAggregationPolicy, HealthAggregationPolicy healthAggregationPolicyResource, CallSettings callSettings = null)Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply with RFC1035. |
healthAggregationPolicyResource |
HealthAggregationPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
HealthAggregationPolicy healthAggregationPolicyResource = new HealthAggregationPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.PatchAsync(project, region, healthAggregationPolicy, healthAggregationPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(string, string, string, HealthAggregationPolicy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string healthAggregationPolicy, HealthAggregationPolicy healthAggregationPolicyResource, CancellationToken cancellationToken)Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
healthAggregationPolicy |
stringName of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply with RFC1035. |
healthAggregationPolicyResource |
HealthAggregationPolicyThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthAggregationPolicy = "";
HealthAggregationPolicy healthAggregationPolicyResource = new HealthAggregationPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthAggregationPoliciesClient.PatchAsync(project, region, healthAggregationPolicy, healthAggregationPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionHealthAggregationPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PollOnceDelete(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of Delete.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The result of polling the operation. |
PollOnceDeleteAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of Delete
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A task representing the result of polling the operation. |
PollOnceInsert(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of Insert.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The result of polling the operation. |
PollOnceInsertAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of Insert
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A task representing the result of polling the operation. |
PollOncePatch(string, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of Patch.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The result of polling the operation. |
PollOncePatchAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of Patch
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
TestIamPermissions(TestIamPermissionsRegionHealthAggregationPolicyRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
TestIamPermissionsRegionHealthAggregationPolicyRequest request = new TestIamPermissionsRegionHealthAggregationPolicyRequest
{
Region = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = regionHealthAggregationPoliciesClient.TestIamPermissions(request);
TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = RegionHealthAggregationPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = regionHealthAggregationPoliciesClient.TestIamPermissions(project, region, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(TestIamPermissionsRegionHealthAggregationPolicyRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionHealthAggregationPolicyRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionHealthAggregationPolicyRequest request = new TestIamPermissionsRegionHealthAggregationPolicyRequest
{
Region = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionHealthAggregationPoliciesClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsRegionHealthAggregationPolicyRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionHealthAggregationPolicyRequest request, CancellationToken cancellationToken)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionHealthAggregationPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionHealthAggregationPolicyRequest request = new TestIamPermissionsRegionHealthAggregationPolicyRequest
{
Region = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionHealthAggregationPoliciesClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionHealthAggregationPoliciesClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionHealthAggregationPoliciesClient regionHealthAggregationPoliciesClient = await RegionHealthAggregationPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionHealthAggregationPoliciesClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);