Compute Engine v1 API - Class RegionOperationsClientImpl (2.8.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

GoogleCloudGoogle.Cloud.ComputeV1

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
NameDescription
grpcClientRegionOperationsRegionOperationsClient

The underlying gRPC client.

settingsRegionOperationsSettings

The base RegionOperationsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override RegionOperations.RegionOperationsClient GrpcClient { get; }

The underlying gRPC RegionOperations client

Property Value
TypeDescription
RegionOperationsRegionOperationsClient
Overrides

Methods

Delete(DeleteRegionOperationRequest, CallSettings)

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

Deletes the specified region-specific Operations resource.

Parameters
NameDescription
requestDeleteRegionOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteRegionOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetRegionOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetRegionOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListRegionOperationsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListRegionOperationsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestWaitRegionOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestWaitRegionOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperation

A Task containing the RPC response.

Overrides