Compute Engine v1 API - Class RegionOperations.RegionOperationsBase (2.15.0)

[BindServiceMethod(typeof(RegionOperations), "BindService")]
public abstract class RegionOperations.RegionOperationsBase

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

Base class for server-side implementations of RegionOperations

Inheritance

object > RegionOperations.RegionOperationsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Delete(DeleteRegionOperationRequest, ServerCallContext)

public virtual Task<DeleteRegionOperationResponse> Delete(DeleteRegionOperationRequest request, ServerCallContext context)

Deletes the specified region-specific Operations resource.

Parameters
NameDescription
requestDeleteRegionOperationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDeleteRegionOperationResponse

The response to send back to the client (wrapped by a task).

Get(GetRegionOperationRequest, ServerCallContext)

public virtual Task<Operation> Get(GetRegionOperationRequest request, ServerCallContext context)

Retrieves the specified region-specific Operations resource.

Parameters
NameDescription
requestGetRegionOperationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

List(ListRegionOperationsRequest, ServerCallContext)

public virtual Task<OperationList> List(ListRegionOperationsRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListRegionOperationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperationList

The response to send back to the client (wrapped by a task).

Wait(WaitRegionOperationRequest, ServerCallContext)

public virtual Task<Operation> Wait(WaitRegionOperationRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).