Compute Engine v1 API - Class RegionOperations.RegionOperationsClient (3.0.0)

public class RegionOperations.RegionOperationsClient : ClientBase<RegionOperations.RegionOperationsClient>

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

Client for RegionOperations

Inheritance

object > ClientBase > ClientBaseRegionOperationsRegionOperationsClient > RegionOperations.RegionOperationsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionOperationsClient()

protected RegionOperationsClient()

Protected parameterless constructor to allow creation of test doubles.

RegionOperationsClient(CallInvoker)

public RegionOperationsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionOperationsClient(ChannelBase)

public RegionOperationsClient(ChannelBase channel)

Creates a new client for RegionOperations

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionOperationsClient(ClientBaseConfiguration)

protected RegionOperationsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

Delete(DeleteRegionOperationRequest, CallOptions)

public virtual DeleteRegionOperationResponse Delete(DeleteRegionOperationRequest request, CallOptions options)

Deletes the specified region-specific Operations resource.

Parameters
Name Description
request DeleteRegionOperationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
DeleteRegionOperationResponse

The response received from the server.

Delete(DeleteRegionOperationRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified region-specific Operations resource.

Parameters
Name Description
request DeleteRegionOperationRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
DeleteRegionOperationResponse

The response received from the server.

DeleteAsync(DeleteRegionOperationRequest, CallOptions)

public virtual AsyncUnaryCall<DeleteRegionOperationResponse> DeleteAsync(DeleteRegionOperationRequest request, CallOptions options)

Deletes the specified region-specific Operations resource.

Parameters
Name Description
request DeleteRegionOperationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallDeleteRegionOperationResponse

The call object.

DeleteAsync(DeleteRegionOperationRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified region-specific Operations resource.

Parameters
Name Description
request DeleteRegionOperationRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallDeleteRegionOperationResponse

The call object.

Get(GetRegionOperationRequest, CallOptions)

public virtual Operation Get(GetRegionOperationRequest request, CallOptions options)

Retrieves the specified region-specific Operations resource.

Parameters
Name Description
request GetRegionOperationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Get(GetRegionOperationRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the specified region-specific Operations resource.

Parameters
Name Description
request GetRegionOperationRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

GetAsync(GetRegionOperationRequest, CallOptions)

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

Retrieves the specified region-specific Operations resource.

Parameters
Name Description
request GetRegionOperationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GetAsync(GetRegionOperationRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the specified region-specific Operations resource.

Parameters
Name Description
request GetRegionOperationRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

List(ListRegionOperationsRequest, CallOptions)

public virtual OperationList List(ListRegionOperationsRequest request, CallOptions options)

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

Parameters
Name Description
request ListRegionOperationsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
OperationList

The response received from the server.

List(ListRegionOperationsRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListRegionOperationsRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
OperationList

The response received from the server.

ListAsync(ListRegionOperationsRequest, CallOptions)

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

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

Parameters
Name Description
request ListRegionOperationsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperationList

The call object.

ListAsync(ListRegionOperationsRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListRegionOperationsRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperationList

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionOperations.RegionOperationsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionOperationsRegionOperationsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionOperations.RegionOperationsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Wait(WaitRegionOperationRequest, CallOptions)

public virtual Operation Wait(WaitRegionOperationRequest 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 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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Wait(WaitRegionOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Wait(WaitRegionOperationRequest 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 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 to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

WaitAsync(WaitRegionOperationRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> WaitAsync(WaitRegionOperationRequest 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 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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

WaitAsync(WaitRegionOperationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> WaitAsync(WaitRegionOperationRequest 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 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 to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.