public class TargetInstancesClient : ClientBase<TargetInstances.TargetInstancesClient>
Client for TargetInstances
Inheritance
Object > ClientBase > ClientBase<TargetInstances.TargetInstancesClient> > TargetInstances.TargetInstancesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
TargetInstancesClient()
protected TargetInstancesClient()
Protected parameterless constructor to allow creation of test doubles.
TargetInstancesClient(CallInvoker)
public TargetInstancesClient(CallInvoker callInvoker)
Creates a new client for TargetInstances that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
TargetInstancesClient(ChannelBase)
public TargetInstancesClient(ChannelBase channel)
Creates a new client for TargetInstances
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
TargetInstancesClient(ClientBase.ClientBaseConfiguration)
protected TargetInstancesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
AggregatedList(AggregatedListTargetInstancesRequest, CallOptions)
public virtual TargetInstanceAggregatedList AggregatedList(AggregatedListTargetInstancesRequest request, CallOptions options)
Retrieves an aggregated list of target instances.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetInstancesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TargetInstanceAggregatedList | The response received from the server. |
AggregatedList(AggregatedListTargetInstancesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TargetInstanceAggregatedList AggregatedList(AggregatedListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves an aggregated list of target instances.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetInstancesRequest 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 |
TargetInstanceAggregatedList | The response received from the server. |
AggregatedListAsync(AggregatedListTargetInstancesRequest, CallOptions)
public virtual AsyncUnaryCall<TargetInstanceAggregatedList> AggregatedListAsync(AggregatedListTargetInstancesRequest request, CallOptions options)
Retrieves an aggregated list of target instances.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetInstancesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TargetInstanceAggregatedList> | The call object. |
AggregatedListAsync(AggregatedListTargetInstancesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TargetInstanceAggregatedList> AggregatedListAsync(AggregatedListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves an aggregated list of target instances.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetInstancesRequest 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<TargetInstanceAggregatedList> | The call object. |
CreateOperationsClientForZoneOperations()
public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to ZoneOperations.
Returns | |
---|---|
Type | Description |
Operations.OperationsClient | A new Operations client for the same target as this client. |
Delete(DeleteTargetInstanceRequest, CallOptions)
public virtual Operation Delete(DeleteTargetInstanceRequest request, CallOptions options)
Deletes the specified TargetInstance resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Delete(DeleteTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Delete(DeleteTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified TargetInstance resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetInstanceRequest 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. |
DeleteAsync(DeleteTargetInstanceRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteTargetInstanceRequest request, CallOptions options)
Deletes the specified TargetInstance resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
DeleteAsync(DeleteTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified TargetInstance resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetInstanceRequest 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. |
Get(GetTargetInstanceRequest, CallOptions)
public virtual TargetInstance Get(GetTargetInstanceRequest request, CallOptions options)
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetTargetInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TargetInstance | The response received from the server. |
Get(GetTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TargetInstance Get(GetTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetTargetInstanceRequest 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 |
TargetInstance | The response received from the server. |
GetAsync(GetTargetInstanceRequest, CallOptions)
public virtual AsyncUnaryCall<TargetInstance> GetAsync(GetTargetInstanceRequest request, CallOptions options)
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetTargetInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TargetInstance> | The call object. |
GetAsync(GetTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TargetInstance> GetAsync(GetTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetTargetInstanceRequest 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<TargetInstance> | The call object. |
Insert(InsertTargetInstanceRequest, CallOptions)
public virtual Operation Insert(InsertTargetInstanceRequest request, CallOptions options)
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Insert(InsertTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Insert(InsertTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetInstanceRequest 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. |
InsertAsync(InsertTargetInstanceRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertTargetInstanceRequest request, CallOptions options)
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
InsertAsync(InsertTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetInstanceRequest 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(ListTargetInstancesRequest, CallOptions)
public virtual TargetInstanceList List(ListTargetInstancesRequest request, CallOptions options)
Retrieves a list of TargetInstance resources available to the specified project and zone.
Parameters | |
---|---|
Name | Description |
request | ListTargetInstancesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TargetInstanceList | The response received from the server. |
List(ListTargetInstancesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TargetInstanceList List(ListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves a list of TargetInstance resources available to the specified project and zone.
Parameters | |
---|---|
Name | Description |
request | ListTargetInstancesRequest 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 |
TargetInstanceList | The response received from the server. |
ListAsync(ListTargetInstancesRequest, CallOptions)
public virtual AsyncUnaryCall<TargetInstanceList> ListAsync(ListTargetInstancesRequest request, CallOptions options)
Retrieves a list of TargetInstance resources available to the specified project and zone.
Parameters | |
---|---|
Name | Description |
request | ListTargetInstancesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TargetInstanceList> | The call object. |
ListAsync(ListTargetInstancesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TargetInstanceList> ListAsync(ListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves a list of TargetInstance resources available to the specified project and zone.
Parameters | |
---|---|
Name | Description |
request | ListTargetInstancesRequest 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<TargetInstanceList> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override TargetInstances.TargetInstancesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TargetInstances.TargetInstancesClient |