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

[BindServiceMethod(typeof(TargetInstances), "BindService")]
public abstract class TargetInstances.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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListTargetInstancesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTargetInstanceAggregatedList

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
TaskOperation

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.

Parameters
NameDescription
requestGetTargetInstanceRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTargetInstance

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
TaskOperation

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
TaskTargetInstanceList

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

SetSecurityPolicy(SetSecurityPolicyTargetInstanceRequest, ServerCallContext)

public virtual Task<Operation> SetSecurityPolicy(SetSecurityPolicyTargetInstanceRequest request, ServerCallContext context)

Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview

Parameters
NameDescription
requestSetSecurityPolicyTargetInstanceRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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