[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
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
request | AggregatedListTargetInstancesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteTargetInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTargetInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | InsertTargetInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListTargetInstancesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<TargetInstanceList> | The response to send back to the client (wrapped by a task). |