Compute Engine v1 API - Class ZoneOperations.ZoneOperationsClient (2.8.0)

public class ZoneOperations.ZoneOperationsClient : ClientBase<ZoneOperations.ZoneOperationsClient>

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

Client for ZoneOperations

Inheritance

object > ClientBase > ClientBaseZoneOperationsZoneOperationsClient > ZoneOperations.ZoneOperationsClient

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ZoneOperationsClient()

protected ZoneOperationsClient()

Protected parameterless constructor to allow creation of test doubles.

ZoneOperationsClient(CallInvoker)

public ZoneOperationsClient(CallInvoker callInvoker)

Creates a new client for ZoneOperations that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ZoneOperationsClient(ChannelBase)

public ZoneOperationsClient(ChannelBase channel)

Creates a new client for ZoneOperations

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ZoneOperationsClient(ClientBaseConfiguration)

protected ZoneOperationsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

Delete(DeleteZoneOperationRequest, CallOptions)

public virtual DeleteZoneOperationResponse Delete(DeleteZoneOperationRequest request, CallOptions options)

Deletes the specified zone-specific Operations resource.

Parameters
NameDescription
requestDeleteZoneOperationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
DeleteZoneOperationResponse

The response received from the server.

Delete(DeleteZoneOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual DeleteZoneOperationResponse Delete(DeleteZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified zone-specific Operations resource.

Parameters
NameDescription
requestDeleteZoneOperationRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
DeleteZoneOperationResponse

The response received from the server.

DeleteAsync(DeleteZoneOperationRequest, CallOptions)

public virtual AsyncUnaryCall<DeleteZoneOperationResponse> DeleteAsync(DeleteZoneOperationRequest request, CallOptions options)

Deletes the specified zone-specific Operations resource.

Parameters
NameDescription
requestDeleteZoneOperationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallDeleteZoneOperationResponse

The call object.

DeleteAsync(DeleteZoneOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DeleteZoneOperationResponse> DeleteAsync(DeleteZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified zone-specific Operations resource.

Parameters
NameDescription
requestDeleteZoneOperationRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallDeleteZoneOperationResponse

The call object.

Get(GetZoneOperationRequest, CallOptions)

public virtual Operation Get(GetZoneOperationRequest request, CallOptions options)

Retrieves the specified zone-specific Operations resource.

Parameters
NameDescription
requestGetZoneOperationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Get(GetZoneOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Get(GetZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified zone-specific Operations resource.

Parameters
NameDescription
requestGetZoneOperationRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

GetAsync(GetZoneOperationRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> GetAsync(GetZoneOperationRequest request, CallOptions options)

Retrieves the specified zone-specific Operations resource.

Parameters
NameDescription
requestGetZoneOperationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

GetAsync(GetZoneOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> GetAsync(GetZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified zone-specific Operations resource.

Parameters
NameDescription
requestGetZoneOperationRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

List(ListZoneOperationsRequest, CallOptions)

public virtual OperationList List(ListZoneOperationsRequest request, CallOptions options)

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

Parameters
NameDescription
requestListZoneOperationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
OperationList

The response received from the server.

List(ListZoneOperationsRequest, Metadata, DateTime?, CancellationToken)

public virtual OperationList List(ListZoneOperationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestListZoneOperationsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
OperationList

The response received from the server.

ListAsync(ListZoneOperationsRequest, CallOptions)

public virtual AsyncUnaryCall<OperationList> ListAsync(ListZoneOperationsRequest request, CallOptions options)

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

Parameters
NameDescription
requestListZoneOperationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperationList

The call object.

ListAsync(ListZoneOperationsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<OperationList> ListAsync(ListZoneOperationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestListZoneOperationsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperationList

The call object.

NewInstance(ClientBaseConfiguration)

protected override ZoneOperations.ZoneOperationsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ZoneOperationsZoneOperationsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ZoneOperations.ZoneOperationsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Wait(WaitZoneOperationRequest, CallOptions)

public virtual Operation Wait(WaitZoneOperationRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Wait(WaitZoneOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Wait(WaitZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

WaitAsync(WaitZoneOperationRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> WaitAsync(WaitZoneOperationRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

WaitAsync(WaitZoneOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> WaitAsync(WaitZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.