public sealed class TargetInstancesClientImpl : TargetInstancesClientReference documentation and code samples for the Compute Engine v1 API class TargetInstancesClientImpl.
TargetInstances client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The TargetInstances API.
Constructors
TargetInstancesClientImpl(TargetInstancesClient, TargetInstancesSettings, ILogger)
public TargetInstancesClientImpl(TargetInstances.TargetInstancesClient grpcClient, TargetInstancesSettings settings, ILogger logger)Constructs a client wrapper for the TargetInstances service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
TargetInstancesTargetInstancesClientThe underlying gRPC client. |
settings |
TargetInstancesSettingsThe base TargetInstancesSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override TargetInstances.TargetInstancesClient GrpcClient { get; }The underlying gRPC TargetInstances client
| Property Value | |
|---|---|
| Type | Description |
TargetInstancesTargetInstancesClient |
|
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
SetSecurityPolicyOperationsClient
public override OperationsClient SetSecurityPolicyOperationsClient { get; }The long-running operations client for SetSecurityPolicy.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
AggregatedList(AggregatedListTargetInstancesRequest, CallSettings)
public override PagedEnumerable<TargetInstanceAggregatedList, KeyValuePair<string, TargetInstancesScopedList>> AggregatedList(AggregatedListTargetInstancesRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableTargetInstanceAggregatedListKeyValuePairstringTargetInstancesScopedList |
A pageable sequence of KeyValuePair<TKey, TValue> resources. |
AggregatedListAsync(AggregatedListTargetInstancesRequest, CallSettings)
public override PagedAsyncEnumerable<TargetInstanceAggregatedList, KeyValuePair<string, TargetInstancesScopedList>> AggregatedListAsync(AggregatedListTargetInstancesRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableTargetInstanceAggregatedListKeyValuePairstringTargetInstancesScopedList |
A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
Delete(DeleteTargetInstanceRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteTargetInstanceRequest request, CallSettings callSettings = null)Deletes the specified TargetInstance resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
DeleteAsync(DeleteTargetInstanceRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteTargetInstanceRequest request, CallSettings callSettings = null)Deletes the specified TargetInstance resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
Get(GetTargetInstanceRequest, CallSettings)
public override TargetInstance Get(GetTargetInstanceRequest request, CallSettings callSettings = null)Returns the specified TargetInstance resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TargetInstance |
The RPC response. |
GetAsync(GetTargetInstanceRequest, CallSettings)
public override Task<TargetInstance> GetAsync(GetTargetInstanceRequest request, CallSettings callSettings = null)Returns the specified TargetInstance resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTargetInstance |
A Task containing the RPC response. |
Insert(InsertTargetInstanceRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertTargetInstanceRequest request, CallSettings callSettings = null)Creates a TargetInstance resource in the specified project and zone using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
InsertAsync(InsertTargetInstanceRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertTargetInstanceRequest request, CallSettings callSettings = null)Creates a TargetInstance resource in the specified project and zone using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
List(ListTargetInstancesRequest, CallSettings)
public override PagedEnumerable<TargetInstanceList, TargetInstance> List(ListTargetInstancesRequest request, CallSettings callSettings = null)Retrieves a list of TargetInstance resources available to the specified project and zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTargetInstancesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableTargetInstanceListTargetInstance |
A pageable sequence of TargetInstance resources. |
ListAsync(ListTargetInstancesRequest, CallSettings)
public override PagedAsyncEnumerable<TargetInstanceList, TargetInstance> ListAsync(ListTargetInstancesRequest request, CallSettings callSettings = null)Retrieves a list of TargetInstance resources available to the specified project and zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTargetInstancesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableTargetInstanceListTargetInstance |
A pageable asynchronous sequence of TargetInstance resources. |
SetSecurityPolicy(SetSecurityPolicyTargetInstanceRequest, CallSettings)
public override Operation<Operation, Operation> SetSecurityPolicy(SetSecurityPolicyTargetInstanceRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
SetSecurityPolicyAsync(SetSecurityPolicyTargetInstanceRequest, CallSettings)
public override Task<Operation<Operation, Operation>> SetSecurityPolicyAsync(SetSecurityPolicyTargetInstanceRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsTargetInstanceRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsTargetInstanceRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsTargetInstanceRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsTargetInstanceRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsTargetInstanceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |