Compute Engine v1 API - Class TargetInstances.TargetInstancesBase (2.5.0)

[BindServiceMethod(typeof(TargetInstances), "BindService")]
public abstract class TargetInstancesBase

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

Base class for server-side implementations of TargetInstances

Inheritance

Object > TargetInstances.TargetInstancesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AggregatedList(AggregatedListTargetInstancesRequest, ServerCallContext)

public virtual Task<TargetInstanceAggregatedList> AggregatedList(AggregatedListTargetInstancesRequest request, ServerCallContext context)

Retrieves an aggregated list of target instances.

Parameters
NameDescription
requestAggregatedListTargetInstancesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TargetInstanceAggregatedList>

The response to send back to the client (wrapped by a task).

Delete(DeleteTargetInstanceRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteTargetInstanceRequest request, ServerCallContext context)

Deletes the specified TargetInstance resource.

Parameters
NameDescription
requestDeleteTargetInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

Get(GetTargetInstanceRequest, ServerCallContext)

public virtual Task<TargetInstance> Get(GetTargetInstanceRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestGetTargetInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TargetInstance>

The response to send back to the client (wrapped by a task).

Insert(InsertTargetInstanceRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertTargetInstanceRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestInsertTargetInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

List(ListTargetInstancesRequest, ServerCallContext)

public virtual Task<TargetInstanceList> List(ListTargetInstancesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListTargetInstancesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TargetInstanceList>

The response to send back to the client (wrapped by a task).