Compute Engine v1 API - Class TargetInstances.TargetInstancesClient (2.11.0)

public class TargetInstances.TargetInstancesClient : ClientBase<TargetInstances.TargetInstancesClient>

Reference documentation and code samples for the Compute Engine v1 API class TargetInstances.TargetInstancesClient.

Client for TargetInstances

Inheritance

object > ClientBase > ClientBaseTargetInstancesTargetInstancesClient > TargetInstances.TargetInstancesClient

Namespace

Google.Cloud.Compute.V1

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TargetInstancesClient(ChannelBase)

public TargetInstancesClient(ChannelBase channel)

Creates a new client for TargetInstances

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TargetInstancesClient(ClientBaseConfiguration)

protected TargetInstancesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListTargetInstancesRequest, CallOptions)

public virtual TargetInstanceAggregatedList AggregatedList(AggregatedListTargetInstancesRequest request, CallOptions options)

Retrieves an aggregated list of target instances.

Parameters
NameDescription
requestAggregatedListTargetInstancesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetInstanceAggregatedList

The response received from the server.

AggregatedList(AggregatedListTargetInstancesRequest, Metadata, DateTime?, CancellationToken)

public virtual TargetInstanceAggregatedList AggregatedList(AggregatedListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves an aggregated list of target instances.

Parameters
NameDescription
requestAggregatedListTargetInstancesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestAggregatedListTargetInstancesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTargetInstanceAggregatedList

The call object.

AggregatedListAsync(AggregatedListTargetInstancesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TargetInstanceAggregatedList> AggregatedListAsync(AggregatedListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves an aggregated list of target instances.

Parameters
NameDescription
requestAggregatedListTargetInstancesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTargetInstanceAggregatedList

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
TypeDescription
OperationsOperationsClient

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
NameDescription
requestDeleteTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteTargetInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified TargetInstance resource.

Parameters
NameDescription
requestDeleteTargetInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteTargetInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified TargetInstance resource.

Parameters
NameDescription
requestDeleteTargetInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetTargetInstanceRequest, CallOptions)

public virtual TargetInstance Get(GetTargetInstanceRequest request, CallOptions options)

Returns the specified TargetInstance resource.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetInstance

The response received from the server.

Get(GetTargetInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual TargetInstance Get(GetTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified TargetInstance resource.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TargetInstance

The response received from the server.

GetAsync(GetTargetInstanceRequest, CallOptions)

public virtual AsyncUnaryCall<TargetInstance> GetAsync(GetTargetInstanceRequest request, CallOptions options)

Returns the specified TargetInstance resource.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTargetInstance

The call object.

GetAsync(GetTargetInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TargetInstance> GetAsync(GetTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified TargetInstance resource.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTargetInstance

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
NameDescription
requestInsertTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertTargetInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a TargetInstance resource in the specified project and zone using the data included in the request.

Parameters
NameDescription
requestInsertTargetInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestInsertTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertTargetInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertTargetInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a TargetInstance resource in the specified project and zone using the data included in the request.

Parameters
NameDescription
requestInsertTargetInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

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
NameDescription
requestListTargetInstancesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetInstanceList

The response received from the server.

List(ListTargetInstancesRequest, Metadata, DateTime?, CancellationToken)

public virtual TargetInstanceList List(ListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of TargetInstance resources available to the specified project and zone.

Parameters
NameDescription
requestListTargetInstancesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListTargetInstancesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTargetInstanceList

The call object.

ListAsync(ListTargetInstancesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TargetInstanceList> ListAsync(ListTargetInstancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of TargetInstance resources available to the specified project and zone.

Parameters
NameDescription
requestListTargetInstancesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTargetInstanceList

The call object.

NewInstance(ClientBaseConfiguration)

protected override TargetInstances.TargetInstancesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TargetInstancesTargetInstancesClient
Overrides