public sealed class ZoneOperationsClientImpl : ZoneOperationsClientReference documentation and code samples for the Compute Engine v1 API class ZoneOperationsClientImpl.
ZoneOperations client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The ZoneOperations API.
Constructors
ZoneOperationsClientImpl(ZoneOperationsClient, ZoneOperationsSettings, ILogger)
public ZoneOperationsClientImpl(ZoneOperations.ZoneOperationsClient grpcClient, ZoneOperationsSettings settings, ILogger logger)Constructs a client wrapper for the ZoneOperations service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
ZoneOperationsZoneOperationsClientThe underlying gRPC client. |
settings |
ZoneOperationsSettingsThe base ZoneOperationsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override ZoneOperations.ZoneOperationsClient GrpcClient { get; }The underlying gRPC ZoneOperations client
| Property Value | |
|---|---|
| Type | Description |
ZoneOperationsZoneOperationsClient |
|
Methods
Delete(DeleteZoneOperationRequest, CallSettings)
public override DeleteZoneOperationResponse Delete(DeleteZoneOperationRequest request, CallSettings callSettings = null)Deletes the specified zone-specific Operations resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteZoneOperationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DeleteZoneOperationResponse |
The RPC response. |
DeleteAsync(DeleteZoneOperationRequest, CallSettings)
public override Task<DeleteZoneOperationResponse> DeleteAsync(DeleteZoneOperationRequest request, CallSettings callSettings = null)Deletes the specified zone-specific Operations resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteZoneOperationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeleteZoneOperationResponse |
A Task containing the RPC response. |
Get(GetZoneOperationRequest, CallSettings)
public override Operation Get(GetZoneOperationRequest request, CallSettings callSettings = null)Retrieves the specified zone-specific Operations resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetZoneOperationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The RPC response. |
GetAsync(GetZoneOperationRequest, CallSettings)
public override Task<Operation> GetAsync(GetZoneOperationRequest request, CallSettings callSettings = null)Retrieves the specified zone-specific Operations resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetZoneOperationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
A Task containing the RPC response. |
List(ListZoneOperationsRequest, CallSettings)
public override PagedEnumerable<OperationList, Operation> List(ListZoneOperationsRequest request, CallSettings callSettings = null)Retrieves a list of Operation resources contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListZoneOperationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableOperationListOperation |
A pageable sequence of Operation resources. |
ListAsync(ListZoneOperationsRequest, CallSettings)
public override PagedAsyncEnumerable<OperationList, Operation> ListAsync(ListZoneOperationsRequest request, CallSettings callSettings = null)Retrieves a list of Operation resources contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListZoneOperationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableOperationListOperation |
A pageable asynchronous sequence of Operation resources. |
Wait(WaitZoneOperationRequest, CallSettings)
public override Operation Wait(WaitZoneOperationRequest 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 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 | |
|---|---|
| Name | Description |
request |
WaitZoneOperationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The RPC response. |
WaitAsync(WaitZoneOperationRequest, CallSettings)
public override Task<Operation> WaitAsync(WaitZoneOperationRequest 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 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 | |
|---|---|
| Name | Description |
request |
WaitZoneOperationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
A Task containing the RPC response. |