# Compute Engine v1 API - Class TargetInstancesClientImpl (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class TargetInstancesClientImpl : TargetInstancesClient

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

TargetInstances client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [TargetInstancesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient) \> TargetInstancesClientImpl

## Inherited Members

[TargetInstancesClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DefaultEndpoint) [TargetInstancesClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DefaultScopes) [TargetInstancesClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_ServiceMetadata) [TargetInstancesClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_CreateAsync_System_Threading_CancellationToken_) [TargetInstancesClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Create) [TargetInstancesClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_ShutdownDefaultChannelsAsync) [TargetInstancesClient.AggregatedList(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_AggregatedList_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.AggregatedListAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_AggregatedListAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.DeleteAsync(DeleteTargetInstanceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteTargetInstanceRequest_System_Threading_CancellationToken_) [TargetInstancesClient.PollOnceDelete(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_PollOnceDelete_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.PollOnceDeleteAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_PollOnceDeleteAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.Delete(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Delete_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.DeleteAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DeleteAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.DeleteAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DeleteAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [TargetInstancesClient.GetAsync(GetTargetInstanceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_GetAsync_Google_Cloud_Compute_V1_GetTargetInstanceRequest_System_Threading_CancellationToken_) [TargetInstancesClient.Get(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Get_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.GetAsync(string, string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_GetAsync_System_String_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.GetAsync(string, string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_GetAsync_System_String_System_String_System_String_System_Threading_CancellationToken_) [TargetInstancesClient.InsertAsync(InsertTargetInstanceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_InsertAsync_Google_Cloud_Compute_V1_InsertTargetInstanceRequest_System_Threading_CancellationToken_) [TargetInstancesClient.PollOnceInsert(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_PollOnceInsert_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.PollOnceInsertAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_PollOnceInsertAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.Insert(string, string, TargetInstance, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Insert_System_String_System_String_Google_Cloud_Compute_V1_TargetInstance_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.InsertAsync(string, string, TargetInstance, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_InsertAsync_System_String_System_String_Google_Cloud_Compute_V1_TargetInstance_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.InsertAsync(string, string, TargetInstance, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_InsertAsync_System_String_System_String_Google_Cloud_Compute_V1_TargetInstance_System_Threading_CancellationToken_) [TargetInstancesClient.List(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_List_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.ListAsync(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_ListAsync_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.SetSecurityPolicyAsync(SetSecurityPolicyTargetInstanceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicyAsync_Google_Cloud_Compute_V1_SetSecurityPolicyTargetInstanceRequest_System_Threading_CancellationToken_) [TargetInstancesClient.PollOnceSetSecurityPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_PollOnceSetSecurityPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.PollOnceSetSecurityPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_PollOnceSetSecurityPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.SetSecurityPolicy(string, string, string, SecurityPolicyReference, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicy_System_String_System_String_System_String_Google_Cloud_Compute_V1_SecurityPolicyReference_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.SetSecurityPolicyAsync(string, string, string, SecurityPolicyReference, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicyAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_SecurityPolicyReference_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.SetSecurityPolicyAsync(string, string, string, SecurityPolicyReference, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicyAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_SecurityPolicyReference_System_Threading_CancellationToken_) [TargetInstancesClient.TestIamPermissionsAsync(TestIamPermissionsTargetInstanceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsTargetInstanceRequest_System_Threading_CancellationToken_) [TargetInstancesClient.TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_TestIamPermissions_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_TestIamPermissionsAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [TargetInstancesClient.TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_TestIamPermissionsAsync_System_String_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstanceshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstances.TargetInstancesClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesSettings` The base [TargetInstancesSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### DeleteOperationsClient

    public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for `Delete`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [TargetInstancesClient.DeleteOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DeleteOperationsClient)

### GrpcClient

    public override TargetInstances.TargetInstancesClient GrpcClient { get; }

The underlying gRPC TargetInstances client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstanceshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstances.TargetInstancesClient` |   |

**Overrides** [TargetInstancesClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_GrpcClient)

### InsertOperationsClient

    public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for `Insert`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [TargetInstancesClient.InsertOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_InsertOperationsClient)

### SetSecurityPolicyOperationsClient

    public override OperationsClient SetSecurityPolicyOperationsClient { get; }

The long-running operations client for `SetSecurityPolicy`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [TargetInstancesClient.SetSecurityPolicyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicyOperationsClient)

## 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AggregatedListTargetInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstanceAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesScopedList` | A pageable sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Overrides** [TargetInstancesClient.AggregatedList(AggregatedListTargetInstancesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_AggregatedList_Google_Cloud_Compute_V1_AggregatedListTargetInstancesRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AggregatedListTargetInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstanceAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesScopedList` | A pageable asynchronous sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Overrides** [TargetInstancesClient.AggregatedListAsync(AggregatedListTargetInstancesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_AggregatedListAsync_Google_Cloud_Compute_V1_AggregatedListTargetInstancesRequest_Google_Api_Gax_Grpc_CallSettings_)

### Delete(DeleteTargetInstanceRequest, CallSettings)

    public override Operation<Operation, Operation> Delete(DeleteTargetInstanceRequest request, CallSettings callSettings = null)

Deletes the specified TargetInstance resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [TargetInstancesClient.Delete(DeleteTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Delete_Google_Cloud_Compute_V1_DeleteTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAsync(DeleteTargetInstanceRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteTargetInstanceRequest request, CallSettings callSettings = null)

Deletes the specified TargetInstance resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [TargetInstancesClient.DeleteAsync(DeleteTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_DeleteAsync_Google_Cloud_Compute_V1_DeleteTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### Get(GetTargetInstanceRequest, CallSettings)

    public override TargetInstance Get(GetTargetInstanceRequest request, CallSettings callSettings = null)

Returns the specified TargetInstance resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstance` | The RPC response. |

**Overrides** [TargetInstancesClient.Get(GetTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Get_Google_Cloud_Compute_V1_GetTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAsync(GetTargetInstanceRequest, CallSettings)

    public override Task<TargetInstance> GetAsync(GetTargetInstanceRequest request, CallSettings callSettings = null)

Returns the specified TargetInstance resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstance` | A Task containing the RPC response. |

**Overrides** [TargetInstancesClient.GetAsync(GetTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_GetAsync_Google_Cloud_Compute_V1_GetTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [TargetInstancesClient.Insert(InsertTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_Insert_Google_Cloud_Compute_V1_InsertTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [TargetInstancesClient.InsertAsync(InsertTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_InsertAsync_Google_Cloud_Compute_V1_InsertTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListTargetInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstanceListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstance` | A pageable sequence of [TargetInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstance) resources. |

**Overrides** [TargetInstancesClient.List(ListTargetInstancesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_List_Google_Cloud_Compute_V1_ListTargetInstancesRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListTargetInstancesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstanceListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstance` | A pageable asynchronous sequence of [TargetInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstance) resources. |

**Overrides** [TargetInstancesClient.ListAsync(ListTargetInstancesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_ListAsync_Google_Cloud_Compute_V1_ListTargetInstancesRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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, seeGoogle
Cloud Armor Overview

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetSecurityPolicyTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [TargetInstancesClient.SetSecurityPolicy(SetSecurityPolicyTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicy_Google_Cloud_Compute_V1_SetSecurityPolicyTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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, seeGoogle
Cloud Armor Overview

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetSecurityPolicyTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [TargetInstancesClient.SetSecurityPolicyAsync(SetSecurityPolicyTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_SetSecurityPolicyAsync_Google_Cloud_Compute_V1_SetSecurityPolicyTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | The RPC response. |

**Overrides** [TargetInstancesClient.TestIamPermissions(TestIamPermissionsTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_TestIamPermissions_Google_Cloud_Compute_V1_TestIamPermissionsTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsTargetInstanceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Overrides** [TargetInstancesClient.TestIamPermissionsAsync(TestIamPermissionsTargetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TargetInstancesClient#Google_Cloud_Compute_V1_TargetInstancesClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsTargetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)