public class ZoneOperationsClient : ClientBase<ZoneOperations.ZoneOperationsClient>
Client for ZoneOperations
Inheritance
Object > ClientBase > ClientBase<ZoneOperations.ZoneOperationsClient> > ZoneOperations.ZoneOperationsClientNamespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
ZoneOperationsClient(ChannelBase)
public ZoneOperationsClient(ChannelBase channel)
Creates a new client for ZoneOperations
Parameter | |
---|---|
Name | Description |
channel | ChannelBase 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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
Delete(DeleteZoneOperationRequest, CallOptions)
public virtual DeleteZoneOperationResponse Delete(DeleteZoneOperationRequest request, CallOptions options)
Deletes the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | DeleteZoneOperationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
DeleteZoneOperationResponse | The response received from the server. |
Delete(DeleteZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual DeleteZoneOperationResponse Delete(DeleteZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | DeleteZoneOperationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | DeleteZoneOperationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<DeleteZoneOperationResponse> | The call object. |
DeleteAsync(DeleteZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<DeleteZoneOperationResponse> DeleteAsync(DeleteZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | DeleteZoneOperationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<DeleteZoneOperationResponse> | The call object. |
Get(GetZoneOperationRequest, CallOptions)
public virtual Operation Get(GetZoneOperationRequest request, CallOptions options)
Retrieves the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | GetZoneOperationRequest 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(GetZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Get(GetZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | GetZoneOperationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(GetZoneOperationRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> GetAsync(GetZoneOperationRequest request, CallOptions options)
Retrieves the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | GetZoneOperationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
GetAsync(GetZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> GetAsync(GetZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves the specified zone-specific Operations resource.
Parameters | |
---|---|
Name | Description |
request | GetZoneOperationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | ListZoneOperationsRequest 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(ListZoneOperationsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual OperationList List(ListZoneOperationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves a list of Operation resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListZoneOperationsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(ListZoneOperationsRequest, CallOptions)
public virtual AsyncUnaryCall<OperationList> ListAsync(ListZoneOperationsRequest request, CallOptions options)
Retrieves a list of Operation resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListZoneOperationsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<OperationList> | The call object. |
ListAsync(ListZoneOperationsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<OperationList> ListAsync(ListZoneOperationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves a list of Operation resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListZoneOperationsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
ZoneOperations.ZoneOperationsClient |
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 | |
---|---|
Name | Description |
request | WaitZoneOperationRequest 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(WaitZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Wait(WaitZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, 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 | |
---|---|
Name | Description |
request | WaitZoneOperationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(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 | |
---|---|
Name | Description |
request | WaitZoneOperationRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
WaitAsync(WaitZoneOperationRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> WaitAsync(WaitZoneOperationRequest request, Metadata headers = null, DateTime? deadline = null, 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 | |
---|---|
Name | Description |
request | WaitZoneOperationRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |