Class TargetInstances.TargetInstancesClient (1.0.0)

public class TargetInstancesClient : ClientBase<TargetInstances.TargetInstancesClient>

Client for TargetInstances

Inheritance

Object > ClientBase > ClientBase<TargetInstances.TargetInstancesClient> > 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(ClientBase.ClientBaseConfiguration)

protected TargetInstancesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<TargetInstanceAggregatedList>

The call object.

AggregatedListAsync(AggregatedListTargetInstancesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
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
TypeDescription
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
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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
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
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, Nullable<DateTime>, CancellationToken)

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

Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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. Gets a list of available target instances by making a list() request.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TargetInstance>

The call object.

GetAsync(GetTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
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
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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertTargetInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
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
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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<TargetInstanceList>

The call object.

ListAsync(ListTargetInstancesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
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
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
TargetInstances.TargetInstancesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.TargetInstances.TargetInstancesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)