Class ZoneOperations.ZoneOperationsClient (1.2.0)

public class ZoneOperationsClient : ClientBase<ZoneOperations.ZoneOperationsClient>

Client for ZoneOperations

Inheritance

Object > ClientBase > ClientBase<ZoneOperations.ZoneOperationsClient> > ZoneOperations.ZoneOperationsClient

Namespace

Google.Cloud.Compute.V1

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(ClientBase.ClientBaseConfiguration)

protected ZoneOperationsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<DeleteZoneOperationResponse>

The call object.

DeleteAsync(DeleteZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<DeleteZoneOperationResponse>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

GetAsync(GetZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<OperationList>

The call object.

ListAsync(ListZoneOperationsRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<OperationList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
ZoneOperations.ZoneOperationsClient
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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

WaitAsync(WaitZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.