Compute Engine v1 API - Class RegionHealthSourcesClientImpl (3.26.0)

public sealed class RegionHealthSourcesClientImpl : RegionHealthSourcesClient

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

RegionHealthSources client wrapper implementation, for convenient use.

Inheritance

object > RegionHealthSourcesClient > RegionHealthSourcesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionHealthSources API.

Constructors

RegionHealthSourcesClientImpl(RegionHealthSourcesClient, RegionHealthSourcesSettings, ILogger)

public RegionHealthSourcesClientImpl(RegionHealthSources.RegionHealthSourcesClient grpcClient, RegionHealthSourcesSettings settings, ILogger logger)

Constructs a client wrapper for the RegionHealthSources service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient RegionHealthSourcesRegionHealthSourcesClient

The underlying gRPC client.

settings RegionHealthSourcesSettings

The base RegionHealthSourcesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override RegionHealthSources.RegionHealthSourcesClient GrpcClient { get; }

The underlying gRPC RegionHealthSources client

Property Value
Type Description
RegionHealthSourcesRegionHealthSourcesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListRegionHealthSourcesRequest, CallSettings)

public override 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.

Overrides

AggregatedListAsync(AggregatedListRegionHealthSourcesRequest, CallSettings)

public override 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.

Overrides

Delete(DeleteRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

DeleteAsync(DeleteRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

Get(GetRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

GetAsync(GetRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

Insert(InsertRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

InsertAsync(InsertRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

List(ListRegionHealthSourcesRequest, CallSettings)

public override 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.

Overrides

ListAsync(ListRegionHealthSourcesRequest, CallSettings)

public override 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.

Overrides

Patch(PatchRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

PatchAsync(PatchRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

TestIamPermissions(TestIamPermissionsRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides

TestIamPermissionsAsync(TestIamPermissionsRegionHealthSourceRequest, CallSettings)

public override 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.

Overrides