Compute Engine v1 API - Class RegionHealthSourcesClient (3.26.0)

public abstract class RegionHealthSourcesClient

Reference documentation and code samples for the Compute Engine v1 API class RegionHealthSourcesClient.

RegionHealthSources client wrapper, for convenient use.

Inheritance

object > RegionHealthSourcesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionHealthSources API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the RegionHealthSources 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 RegionHealthSources scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual RegionHealthSources.RegionHealthSourcesClient GrpcClient { get; }

The underlying gRPC RegionHealthSources client

Property Value
Type Description
RegionHealthSourcesRegionHealthSourcesClient

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(AggregatedListRegionHealthSourcesRequest, CallSettings)

public virtual PagedEnumerable<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> AggregatedList(AggregatedListRegionHealthSourcesRequest request, CallSettings callSettings = null)

Retrieves the list of all HealthSource resources (all regional) available to the specified project.

To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListRegionHealthSourcesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableHealthSourceAggregatedListKeyValuePairstringHealthSourcesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
AggregatedListRegionHealthSourcesRequest request = new AggregatedListRegionHealthSourcesRequest
{
    OrderBy = "",
    Project = "",
    ServiceProjectNumber = 0L,
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> response = regionHealthSourcesClient.AggregatedList(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, HealthSourcesScopedList> 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 (HealthSourceAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, HealthSourcesScopedList> 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, HealthSourcesScopedList>> 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, HealthSourcesScopedList> 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<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of all HealthSource resources (all regional) available to the specified project.

To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
project string

Name of the project scoping this request.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableHealthSourceAggregatedListKeyValuePairstringHealthSourcesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> response = regionHealthSourcesClient.AggregatedList(project);

// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, HealthSourcesScopedList> 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 (HealthSourceAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, HealthSourcesScopedList> 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, HealthSourcesScopedList>> 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, HealthSourcesScopedList> 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(AggregatedListRegionHealthSourcesRequest, CallSettings)

public virtual PagedAsyncEnumerable<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> AggregatedListAsync(AggregatedListRegionHealthSourcesRequest request, CallSettings callSettings = null)

Retrieves the list of all HealthSource resources (all regional) available to the specified project.

To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListRegionHealthSourcesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableHealthSourceAggregatedListKeyValuePairstringHealthSourcesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListRegionHealthSourcesRequest request = new AggregatedListRegionHealthSourcesRequest
{
    OrderBy = "",
    Project = "",
    ServiceProjectNumber = 0L,
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> response = regionHealthSourcesClient.AggregatedListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (KeyValuePair<string, HealthSourcesScopedList> 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 (HealthSourceAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, HealthSourcesScopedList> 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, HealthSourcesScopedList>> 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, HealthSourcesScopedList> 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<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of all HealthSource resources (all regional) available to the specified project.

To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
project string

Name of the project scoping this request.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableHealthSourceAggregatedListKeyValuePairstringHealthSourcesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<HealthSourceAggregatedList, KeyValuePair<string, HealthSourcesScopedList>> response = regionHealthSourcesClient.AggregatedListAsync(project);

// Iterate over all response items, lazily performing RPCs as required
await foreach (KeyValuePair<string, HealthSourcesScopedList> 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 (HealthSourceAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, HealthSourcesScopedList> 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, HealthSourcesScopedList>> 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, HealthSourcesScopedList> 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 RegionHealthSourcesClient Create()

Synchronously creates a RegionHealthSourcesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionHealthSourcesClientBuilder.

Returns
Type Description
RegionHealthSourcesClient

The created RegionHealthSourcesClient.

CreateAsync(CancellationToken)

public static Task<RegionHealthSourcesClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a RegionHealthSourcesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionHealthSourcesClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskRegionHealthSourcesClient

The task representing the created RegionHealthSourcesClient.

Delete(DeleteRegionHealthSourceRequest, CallSettings)

public virtual Operation<Operation, Operation> Delete(DeleteRegionHealthSourceRequest request, CallSettings callSettings = null)

Deletes the specified HealthSource in the given region

Parameters
Name Description
request DeleteRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
DeleteRegionHealthSourceRequest request = new DeleteRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSource = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionHealthSourcesClient.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 = regionHealthSourcesClient.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 healthSource, CallSettings callSettings = null)

Deletes the specified HealthSource in the given region

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
// Make the request
lro::Operation<Operation, Operation> response = regionHealthSourcesClient.Delete(project, region, healthSource);

// 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 = regionHealthSourcesClient.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(DeleteRegionHealthSourceRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionHealthSourceRequest request, CallSettings callSettings = null)

Deletes the specified HealthSource in the given region

Parameters
Name Description
request DeleteRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionHealthSourceRequest request = new DeleteRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSource = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.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 regionHealthSourcesClient.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(DeleteRegionHealthSourceRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionHealthSourceRequest request, CancellationToken cancellationToken)

Deletes the specified HealthSource in the given region

Parameters
Name Description
request DeleteRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionHealthSourceRequest request = new DeleteRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSource = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.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 regionHealthSourcesClient.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 healthSource, CallSettings callSettings = null)

Deletes the specified HealthSource in the given region

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.DeleteAsync(project, region, healthSource);

// 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 regionHealthSourcesClient.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 healthSource, CancellationToken cancellationToken)

Deletes the specified HealthSource in the given region

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.DeleteAsync(project, region, healthSource);

// 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 regionHealthSourcesClient.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(GetRegionHealthSourceRequest, CallSettings)

public virtual HealthSource Get(GetRegionHealthSourceRequest request, CallSettings callSettings = null)

Returns the specified HealthSource resource in the given region.

Parameters
Name Description
request GetRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HealthSource

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
GetRegionHealthSourceRequest request = new GetRegionHealthSourceRequest
{
    Region = "",
    Project = "",
    HealthSource = "",
};
// Make the request
HealthSource response = regionHealthSourcesClient.Get(request);

Get(string, string, string, CallSettings)

public virtual HealthSource Get(string project, string region, string healthSource, CallSettings callSettings = null)

Returns the specified HealthSource resource in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource resource to return.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HealthSource

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
// Make the request
HealthSource response = regionHealthSourcesClient.Get(project, region, healthSource);

GetAsync(GetRegionHealthSourceRequest, CallSettings)

public virtual Task<HealthSource> GetAsync(GetRegionHealthSourceRequest request, CallSettings callSettings = null)

Returns the specified HealthSource resource in the given region.

Parameters
Name Description
request GetRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHealthSource

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
GetRegionHealthSourceRequest request = new GetRegionHealthSourceRequest
{
    Region = "",
    Project = "",
    HealthSource = "",
};
// Make the request
HealthSource response = await regionHealthSourcesClient.GetAsync(request);

GetAsync(GetRegionHealthSourceRequest, CancellationToken)

public virtual Task<HealthSource> GetAsync(GetRegionHealthSourceRequest request, CancellationToken cancellationToken)

Returns the specified HealthSource resource in the given region.

Parameters
Name Description
request GetRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHealthSource

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
GetRegionHealthSourceRequest request = new GetRegionHealthSourceRequest
{
    Region = "",
    Project = "",
    HealthSource = "",
};
// Make the request
HealthSource response = await regionHealthSourcesClient.GetAsync(request);

GetAsync(string, string, string, CallSettings)

public virtual Task<HealthSource> GetAsync(string project, string region, string healthSource, CallSettings callSettings = null)

Returns the specified HealthSource resource in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource resource to return.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHealthSource

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
// Make the request
HealthSource response = await regionHealthSourcesClient.GetAsync(project, region, healthSource);

GetAsync(string, string, string, CancellationToken)

public virtual Task<HealthSource> GetAsync(string project, string region, string healthSource, CancellationToken cancellationToken)

Returns the specified HealthSource resource in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource resource to return.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHealthSource

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
// Make the request
HealthSource response = await regionHealthSourcesClient.GetAsync(project, region, healthSource);

Insert(InsertRegionHealthSourceRequest, CallSettings)

public virtual Operation<Operation, Operation> Insert(InsertRegionHealthSourceRequest request, CallSettings callSettings = null)

Create a HealthSource in the specified project in the given region using the parameters that are included in the request.

Parameters
Name Description
request InsertRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
InsertRegionHealthSourceRequest request = new InsertRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSourceResource = new HealthSource(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionHealthSourcesClient.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 = regionHealthSourcesClient.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, HealthSource, CallSettings)

public virtual Operation<Operation, Operation> Insert(string project, string region, HealthSource healthSourceResource, CallSettings callSettings = null)

Create a HealthSource in the specified project in the given region using the parameters that are included in the request.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSourceResource HealthSource

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
HealthSource healthSourceResource = new HealthSource();
// Make the request
lro::Operation<Operation, Operation> response = regionHealthSourcesClient.Insert(project, region, healthSourceResource);

// 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 = regionHealthSourcesClient.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(InsertRegionHealthSourceRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionHealthSourceRequest request, CallSettings callSettings = null)

Create a HealthSource in the specified project in the given region using the parameters that are included in the request.

Parameters
Name Description
request InsertRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionHealthSourceRequest request = new InsertRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSourceResource = new HealthSource(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.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 regionHealthSourcesClient.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(InsertRegionHealthSourceRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionHealthSourceRequest request, CancellationToken cancellationToken)

Create a HealthSource in the specified project in the given region using the parameters that are included in the request.

Parameters
Name Description
request InsertRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionHealthSourceRequest request = new InsertRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSourceResource = new HealthSource(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.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 regionHealthSourcesClient.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, HealthSource, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, HealthSource healthSourceResource, CallSettings callSettings = null)

Create a HealthSource in the specified project in the given region using the parameters that are included in the request.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSourceResource HealthSource

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
HealthSource healthSourceResource = new HealthSource();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.InsertAsync(project, region, healthSourceResource);

// 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 regionHealthSourcesClient.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, HealthSource, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, HealthSource healthSourceResource, CancellationToken cancellationToken)

Create a HealthSource in the specified project in the given region using the parameters that are included in the request.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

healthSourceResource HealthSource

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
HealthSource healthSourceResource = new HealthSource();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.InsertAsync(project, region, healthSourceResource);

// 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 regionHealthSourcesClient.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(ListRegionHealthSourcesRequest, CallSettings)

public virtual PagedEnumerable<HealthSourceList, HealthSource> List(ListRegionHealthSourcesRequest request, CallSettings callSettings = null)

Lists the HealthSources for a project in the given region.

Parameters
Name Description
request ListRegionHealthSourcesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableHealthSourceListHealthSource

A pageable sequence of HealthSource resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
ListRegionHealthSourcesRequest request = new ListRegionHealthSourcesRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<HealthSourceList, HealthSource> response = regionHealthSourcesClient.List(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (HealthSource 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 (HealthSourceList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HealthSource 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<HealthSource> 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 (HealthSource 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<HealthSourceList, HealthSource> List(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the HealthSources for a project in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableHealthSourceListHealthSource

A pageable sequence of HealthSource resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<HealthSourceList, HealthSource> response = regionHealthSourcesClient.List(project, region);

// Iterate over all response items, lazily performing RPCs as required
foreach (HealthSource 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 (HealthSourceList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HealthSource 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<HealthSource> 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 (HealthSource 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(ListRegionHealthSourcesRequest, CallSettings)

public virtual PagedAsyncEnumerable<HealthSourceList, HealthSource> ListAsync(ListRegionHealthSourcesRequest request, CallSettings callSettings = null)

Lists the HealthSources for a project in the given region.

Parameters
Name Description
request ListRegionHealthSourcesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableHealthSourceListHealthSource

A pageable asynchronous sequence of HealthSource resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
ListRegionHealthSourcesRequest request = new ListRegionHealthSourcesRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<HealthSourceList, HealthSource> response = regionHealthSourcesClient.ListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (HealthSource 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 (HealthSourceList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HealthSource 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<HealthSource> 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 (HealthSource 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<HealthSourceList, HealthSource> ListAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the HealthSources for a project in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableHealthSourceListHealthSource

A pageable asynchronous sequence of HealthSource resources.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<HealthSourceList, HealthSource> response = regionHealthSourcesClient.ListAsync(project, region);

// Iterate over all response items, lazily performing RPCs as required
await foreach (HealthSource 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 (HealthSourceList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (HealthSource 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<HealthSource> 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 (HealthSource 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(PatchRegionHealthSourceRequest, CallSettings)

public virtual Operation<Operation, Operation> Patch(PatchRegionHealthSourceRequest request, CallSettings callSettings = null)

Updates the specified regional HealthSource 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 PatchRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
PatchRegionHealthSourceRequest request = new PatchRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSourceResource = new HealthSource(),
    HealthSource = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionHealthSourcesClient.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 = regionHealthSourcesClient.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, HealthSource, CallSettings)

public virtual Operation<Operation, Operation> Patch(string project, string region, string healthSource, HealthSource healthSourceResource, CallSettings callSettings = null)

Updates the specified regional HealthSource 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 string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035.

healthSourceResource HealthSource

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
HealthSource healthSourceResource = new HealthSource();
// Make the request
lro::Operation<Operation, Operation> response = regionHealthSourcesClient.Patch(project, region, healthSource, healthSourceResource);

// 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 = regionHealthSourcesClient.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(PatchRegionHealthSourceRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionHealthSourceRequest request, CallSettings callSettings = null)

Updates the specified regional HealthSource 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 PatchRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionHealthSourceRequest request = new PatchRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSourceResource = new HealthSource(),
    HealthSource = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.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 regionHealthSourcesClient.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(PatchRegionHealthSourceRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionHealthSourceRequest request, CancellationToken cancellationToken)

Updates the specified regional HealthSource 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 PatchRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionHealthSourceRequest request = new PatchRegionHealthSourceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    HealthSourceResource = new HealthSource(),
    HealthSource = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.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 regionHealthSourcesClient.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, HealthSource, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string healthSource, HealthSource healthSourceResource, CallSettings callSettings = null)

Updates the specified regional HealthSource 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 string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035.

healthSourceResource HealthSource

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
HealthSource healthSourceResource = new HealthSource();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.PatchAsync(project, region, healthSource, healthSourceResource);

// 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 regionHealthSourcesClient.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, HealthSource, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string healthSource, HealthSource healthSourceResource, CancellationToken cancellationToken)

Updates the specified regional HealthSource 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 string

Project ID for this request.

region string

Name of the region scoping this request.

healthSource string

Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035.

healthSourceResource HealthSource

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string healthSource = "";
HealthSource healthSourceResource = new HealthSource();
// Make the request
lro::Operation<Operation, Operation> response = await regionHealthSourcesClient.PatchAsync(project, region, healthSource, healthSourceResource);

// 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 regionHealthSourcesClient.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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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.

Remarks

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(TestIamPermissionsRegionHealthSourceRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionHealthSourceRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
TestIamPermissionsRegionHealthSourceRequest request = new TestIamPermissionsRegionHealthSourceRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = regionHealthSourcesClient.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 string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = regionHealthSourcesClient.TestIamPermissions(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(TestIamPermissionsRegionHealthSourceRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionHealthSourceRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionHealthSourceRequest request = new TestIamPermissionsRegionHealthSourceRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionHealthSourcesClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRegionHealthSourceRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionHealthSourceRequest request, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionHealthSourceRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionHealthSourceRequest request = new TestIamPermissionsRegionHealthSourceRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionHealthSourcesClient.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 string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionHealthSourcesClient.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 string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionHealthSourcesClient regionHealthSourcesClient = await RegionHealthSourcesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionHealthSourcesClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);