Compute Engine v1 API - Class RegionOperationsClientImpl (3.1.0)

public sealed class RegionOperationsClientImpl : RegionOperationsClient

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

RegionOperations client wrapper implementation, for convenient use.

Inheritance

object > RegionOperationsClient > RegionOperationsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionOperations API.

Constructors

RegionOperationsClientImpl(RegionOperationsClient, RegionOperationsSettings, ILogger)

public RegionOperationsClientImpl(RegionOperations.RegionOperationsClient grpcClient, RegionOperationsSettings settings, ILogger logger)

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

Parameters
Name Description
grpcClient RegionOperationsRegionOperationsClient

The underlying gRPC client.

settings RegionOperationsSettings

The base RegionOperationsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override RegionOperations.RegionOperationsClient GrpcClient { get; }

The underlying gRPC RegionOperations client

Property Value
Type Description
RegionOperationsRegionOperationsClient
Overrides

Methods

Delete(DeleteRegionOperationRequest, CallSettings)

public override DeleteRegionOperationResponse Delete(DeleteRegionOperationRequest request, CallSettings callSettings = null)

Deletes the specified region-specific Operations resource.

Parameters
Name Description
request DeleteRegionOperationRequest

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
DeleteRegionOperationResponse

The RPC response.

Overrides

DeleteAsync(DeleteRegionOperationRequest, CallSettings)

public override Task<DeleteRegionOperationResponse> DeleteAsync(DeleteRegionOperationRequest request, CallSettings callSettings = null)

Deletes the specified region-specific Operations resource.

Parameters
Name Description
request DeleteRegionOperationRequest

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
TaskDeleteRegionOperationResponse

A Task containing the RPC response.

Overrides

Get(GetRegionOperationRequest, CallSettings)

public override Operation Get(GetRegionOperationRequest request, CallSettings callSettings = null)

Retrieves the specified region-specific Operations resource.

Parameters
Name Description
request GetRegionOperationRequest

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
Operation

The RPC response.

Overrides

GetAsync(GetRegionOperationRequest, CallSettings)

public override Task<Operation> GetAsync(GetRegionOperationRequest request, CallSettings callSettings = null)

Retrieves the specified region-specific Operations resource.

Parameters
Name Description
request GetRegionOperationRequest

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
TaskOperation

A Task containing the RPC response.

Overrides

List(ListRegionOperationsRequest, CallSettings)

public override PagedEnumerable<OperationList, Operation> List(ListRegionOperationsRequest request, CallSettings callSettings = null)

Retrieves a list of Operation resources contained within the specified region.

Parameters
Name Description
request ListRegionOperationsRequest

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
PagedEnumerableOperationListOperation

A pageable sequence of Operation resources.

Overrides

ListAsync(ListRegionOperationsRequest, CallSettings)

public override PagedAsyncEnumerable<OperationList, Operation> ListAsync(ListRegionOperationsRequest request, CallSettings callSettings = null)

Retrieves a list of Operation resources contained within the specified region.

Parameters
Name Description
request ListRegionOperationsRequest

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
PagedAsyncEnumerableOperationListOperation

A pageable asynchronous sequence of Operation resources.

Overrides

Wait(WaitRegionOperationRequest, CallSettings)

public override Operation Wait(WaitRegionOperationRequest request, CallSettings callSettings = null)

Waits for the specified Operation resource to return as DONE or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the GET method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be DONE or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not DONE.

Parameters
Name Description
request WaitRegionOperationRequest

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
Operation

The RPC response.

Overrides

WaitAsync(WaitRegionOperationRequest, CallSettings)

public override Task<Operation> WaitAsync(WaitRegionOperationRequest request, CallSettings callSettings = null)

Waits for the specified Operation resource to return as DONE or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the GET method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be DONE or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not DONE.

Parameters
Name Description
request WaitRegionOperationRequest

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
TaskOperation

A Task containing the RPC response.

Overrides