Class ZoneOperationsClientImpl (2.1.0)

public sealed class ZoneOperationsClientImpl : ZoneOperationsClient

ZoneOperations client wrapper implementation, for convenient use.

Inheritance

Object > ZoneOperationsClient > ZoneOperationsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The ZoneOperations API.

Constructors

ZoneOperationsClientImpl(ZoneOperations.ZoneOperationsClient, ZoneOperationsSettings, ILogger)

public ZoneOperationsClientImpl(ZoneOperations.ZoneOperationsClient grpcClient, ZoneOperationsSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientZoneOperations.ZoneOperationsClient

The underlying gRPC client.

settingsZoneOperationsSettings

The base ZoneOperationsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override ZoneOperations.ZoneOperationsClient GrpcClient { get; }

The underlying gRPC ZoneOperations client

Property Value
TypeDescription
ZoneOperations.ZoneOperationsClient
Overrides

Methods

Delete(DeleteZoneOperationRequest, CallSettings)

public override DeleteZoneOperationResponse Delete(DeleteZoneOperationRequest request, CallSettings callSettings = null)

Deletes the specified zone-specific Operations resource.

Parameters
NameDescription
requestDeleteZoneOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DeleteZoneOperationResponse

The RPC response.

Overrides

DeleteAsync(DeleteZoneOperationRequest, CallSettings)

public override Task<DeleteZoneOperationResponse> DeleteAsync(DeleteZoneOperationRequest request, CallSettings callSettings = null)

Deletes the specified zone-specific Operations resource.

Parameters
NameDescription
requestDeleteZoneOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeleteZoneOperationResponse>

A Task containing the RPC response.

Overrides

Get(GetZoneOperationRequest, CallSettings)

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

Retrieves the specified zone-specific Operations resource.

Parameters
NameDescription
requestGetZoneOperationRequest

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

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

Retrieves the specified zone-specific Operations resource.

Parameters
NameDescription
requestGetZoneOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Overrides

List(ListZoneOperationsRequest, CallSettings)

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

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

Parameters
NameDescription
requestListZoneOperationsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<OperationList, Operation>

A pageable sequence of Operation resources.

Overrides

ListAsync(ListZoneOperationsRequest, CallSettings)

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

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

Parameters
NameDescription
requestListZoneOperationsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<OperationList, Operation>

A pageable asynchronous sequence of Operation resources.

Overrides

Wait(WaitZoneOperationRequest, CallSettings)

public override Operation Wait(WaitZoneOperationRequest 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 waits for no more than the 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
requestWaitZoneOperationRequest

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

public override Task<Operation> WaitAsync(WaitZoneOperationRequest 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 waits for no more than the 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
requestWaitZoneOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Overrides