Class GlobalOperationsClientImpl (1.0.0)

public sealed class GlobalOperationsClientImpl : GlobalOperationsClient

GlobalOperations client wrapper implementation, for convenient use.

Inheritance

Object > GlobalOperationsClient > GlobalOperationsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The GlobalOperations API.

Constructors

GlobalOperationsClientImpl(GlobalOperations.GlobalOperationsClient, GlobalOperationsSettings)

public GlobalOperationsClientImpl(GlobalOperations.GlobalOperationsClient grpcClient, GlobalOperationsSettings settings)

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

Parameters
Name Description
grpcClient GlobalOperations.GlobalOperationsClient

The underlying gRPC client.

settings GlobalOperationsSettings

The base GlobalOperationsSettings used within this client.

Properties

GrpcClient

public override GlobalOperations.GlobalOperationsClient GrpcClient { get; }

The underlying gRPC GlobalOperations client

Property Value
Type Description
GlobalOperations.GlobalOperationsClient
Overrides

Methods

AggregatedList(AggregatedListGlobalOperationsRequest, CallSettings)

public override PagedEnumerable<OperationAggregatedList, KeyValuePair<string, OperationsScopedList>> AggregatedList(AggregatedListGlobalOperationsRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of all operations.

Parameters
Name Description
request AggregatedListGlobalOperationsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<OperationAggregatedList, KeyValuePair<String, OperationsScopedList>>

A pageable sequence of KeyValuePair<TKey,TValue> resources.

Overrides

AggregatedListAsync(AggregatedListGlobalOperationsRequest, CallSettings)

public override PagedAsyncEnumerable<OperationAggregatedList, KeyValuePair<string, OperationsScopedList>> AggregatedListAsync(AggregatedListGlobalOperationsRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of all operations.

Parameters
Name Description
request AggregatedListGlobalOperationsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<OperationAggregatedList, KeyValuePair<String, OperationsScopedList>>

A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources.

Overrides

Delete(DeleteGlobalOperationRequest, CallSettings)

public override DeleteGlobalOperationResponse Delete(DeleteGlobalOperationRequest request, CallSettings callSettings = null)

Deletes the specified Operations resource.

Parameters
Name Description
request DeleteGlobalOperationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DeleteGlobalOperationResponse

The RPC response.

Overrides

DeleteAsync(DeleteGlobalOperationRequest, CallSettings)

public override Task<DeleteGlobalOperationResponse> DeleteAsync(DeleteGlobalOperationRequest request, CallSettings callSettings = null)

Deletes the specified Operations resource.

Parameters
Name Description
request DeleteGlobalOperationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DeleteGlobalOperationResponse>

A Task containing the RPC response.

Overrides

Get(GetGlobalOperationRequest, CallSettings)

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

Retrieves the specified Operations resource.

Parameters
Name Description
request GetGlobalOperationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation

The RPC response.

Overrides

GetAsync(GetGlobalOperationRequest, CallSettings)

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

Retrieves the specified Operations resource.

Parameters
Name Description
request GetGlobalOperationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation>

A Task containing the RPC response.

Overrides

List(ListGlobalOperationsRequest, CallSettings)

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

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

Parameters
Name Description
request ListGlobalOperationsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<OperationList, Operation>

A pageable sequence of Operation resources.

Overrides

ListAsync(ListGlobalOperationsRequest, CallSettings)

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

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

Parameters
Name Description
request ListGlobalOperationsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<OperationList, Operation>

A pageable asynchronous sequence of Operation resources.

Overrides

Wait(WaitGlobalOperationRequest, CallSettings)

public override Operation Wait(WaitGlobalOperationRequest 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 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 WaitGlobalOperationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation

The RPC response.

Overrides

WaitAsync(WaitGlobalOperationRequest, CallSettings)

public override Task<Operation> WaitAsync(WaitGlobalOperationRequest 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 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 WaitGlobalOperationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation>

A Task containing the RPC response.

Overrides