[BindServiceMethod(typeof(TargetInstances), "BindService")]
public abstract class TargetInstances.TargetInstancesBaseReference 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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListTargetInstancesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DeleteTargetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetTargetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
InsertTargetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListTargetInstancesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
SetSecurityPolicyTargetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
TestIamPermissions(TestIamPermissionsTargetInstanceRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsTargetInstanceRequest request, ServerCallContext context)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsTargetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
The response to send back to the client (wrapped by a task). |