3.27.0 (latest) 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.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class AutokeyClientImpl : AutokeyClient

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class AutokeyClientImpl.

Autokey client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[AutokeyClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_DefaultEndpoint) [AutokeyClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_DefaultScopes) [AutokeyClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ServiceMetadata) [AutokeyClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateAsync_System_Threading_CancellationToken_) [AutokeyClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_Create) [AutokeyClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ShutdownDefaultChannelsAsync) [AutokeyClient.CreateKeyHandleAsync(CreateKeyHandleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleAsync_Google_Cloud_Kms_V1_CreateKeyHandleRequest_System_Threading_CancellationToken_) [AutokeyClient.PollOnceCreateKeyHandle(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_PollOnceCreateKeyHandle_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.PollOnceCreateKeyHandleAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_PollOnceCreateKeyHandleAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.CreateKeyHandle(string, KeyHandle, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandle_System_String_Google_Cloud_Kms_V1_KeyHandle_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.CreateKeyHandleAsync(string, KeyHandle, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleAsync_System_String_Google_Cloud_Kms_V1_KeyHandle_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.CreateKeyHandleAsync(string, KeyHandle, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleAsync_System_String_Google_Cloud_Kms_V1_KeyHandle_System_String_System_Threading_CancellationToken_) [AutokeyClient.CreateKeyHandle(LocationName, KeyHandle, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandle_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Kms_V1_KeyHandle_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.CreateKeyHandleAsync(LocationName, KeyHandle, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Kms_V1_KeyHandle_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.CreateKeyHandleAsync(LocationName, KeyHandle, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Kms_V1_KeyHandle_System_String_System_Threading_CancellationToken_) [AutokeyClient.GetKeyHandleAsync(GetKeyHandleRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandleAsync_Google_Cloud_Kms_V1_GetKeyHandleRequest_System_Threading_CancellationToken_) [AutokeyClient.GetKeyHandle(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandle_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.GetKeyHandleAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandleAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.GetKeyHandleAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandleAsync_System_String_System_Threading_CancellationToken_) [AutokeyClient.GetKeyHandle(KeyHandleName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandle_Google_Cloud_Kms_V1_KeyHandleName_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.GetKeyHandleAsync(KeyHandleName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandleAsync_Google_Cloud_Kms_V1_KeyHandleName_Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.GetKeyHandleAsync(KeyHandleName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandleAsync_Google_Cloud_Kms_V1_KeyHandleName_System_Threading_CancellationToken_) [AutokeyClient.ListKeyHandles(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ListKeyHandles_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.ListKeyHandlesAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ListKeyHandlesAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.ListKeyHandles(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ListKeyHandles_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AutokeyClient.ListKeyHandlesAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ListKeyHandlesAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [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.Kms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)

## Assembly

Google.Cloud.Kms.V1.dll

## Remarks

Provides interfaces for using [Cloud KMS
Autokey](https://cloud.google.com/kms/help/autokey) to provision new
\[CryptoKeys\]\[google.cloud.kms.v1.CryptoKey\], ready for Customer Managed
Encryption Key (CMEK) use, on-demand. To support certain client tooling, this
feature is modeled around a \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\]
resource: creating a \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] in a resource
project and given location triggers Cloud KMS Autokey to provision a
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] in the configured key project and
the same location.

Prior to use in a given resource project,
\[UpdateAutokeyConfig\]\[google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig\]
should have been called on an ancestor folder, setting the key project where
Cloud KMS Autokey should create new
\[CryptoKeys\]\[google.cloud.kms.v1.CryptoKey\]. See documentation for additional
prerequisites. To check what key project, if any, is currently configured on
a resource project's ancestor folder, see
\[ShowEffectiveAutokeyConfig\]\[google.cloud.kms.v1.AutokeyAdmin.ShowEffectiveAutokeyConfig\].

## Constructors

### AutokeyClientImpl(AutokeyClient, AutokeySettings, ILogger)

    public AutokeyClientImpl(Autokey.AutokeyClient grpcClient, AutokeySettings settings, ILogger logger)

Constructs a client wrapper for the Autokey service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokeyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokey.AutokeyClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeySettings` The base [AutokeySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeySettings) 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

### CreateKeyHandleOperationsClient

    public override OperationsClient CreateKeyHandleOperationsClient { get; }

The long-running operations client for `CreateKeyHandle`.

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

**Overrides** [AutokeyClient.CreateKeyHandleOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleOperationsClient)

### GrpcClient

    public override Autokey.AutokeyClient GrpcClient { get; }

The underlying gRPC Autokey client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokeyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokey.AutokeyClient` |   |

**Overrides** [AutokeyClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GrpcClient)

### IAMPolicyClient

    public override IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html` |   |

**Overrides** [AutokeyClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_IAMPolicyClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

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

**Overrides** [AutokeyClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_LocationsClient)

## Methods

### CreateKeyHandle(CreateKeyHandleRequest, CallSettings)

    public override Operation<KeyHandle, CreateKeyHandleMetadata> CreateKeyHandle(CreateKeyHandleRequest request, CallSettings callSettings = null)

Creates a new \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\], triggering the
provisioning of a new \[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] for CMEK
use with the given resource type in the configured key project and the same
location. \[GetOperation\]\[google.longrunning.Operations.GetOperation\] should
be used to resolve the resulting long-running operation and get the
resulting \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] and
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest` 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.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandlehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleMetadata` | The RPC response. |

**Overrides** [AutokeyClient.CreateKeyHandle(CreateKeyHandleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandle_Google_Cloud_Kms_V1_CreateKeyHandleRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateKeyHandleAsync(CreateKeyHandleRequest, CallSettings)

    public override Task<Operation<KeyHandle, CreateKeyHandleMetadata>> CreateKeyHandleAsync(CreateKeyHandleRequest request, CallSettings callSettings = null)

Creates a new \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\], triggering the
provisioning of a new \[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] for CMEK
use with the given resource type in the configured key project and the same
location. \[GetOperation\]\[google.longrunning.Operations.GetOperation\] should
be used to resolve the resulting long-running operation and get the
resulting \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] and
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest` 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.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandlehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleMetadata` | A Task containing the RPC response. |

**Overrides** [AutokeyClient.CreateKeyHandleAsync(CreateKeyHandleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_CreateKeyHandleAsync_Google_Cloud_Kms_V1_CreateKeyHandleRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetKeyHandle(GetKeyHandleRequest, CallSettings)

    public override KeyHandle GetKeyHandle(GetKeyHandleRequest request, CallSettings callSettings = null)

Returns the \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.GetKeyHandleRequest` 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.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandle` | The RPC response. |

**Overrides** [AutokeyClient.GetKeyHandle(GetKeyHandleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandle_Google_Cloud_Kms_V1_GetKeyHandleRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetKeyHandleAsync(GetKeyHandleRequest, CallSettings)

    public override Task<KeyHandle> GetKeyHandleAsync(GetKeyHandleRequest request, CallSettings callSettings = null)

Returns the \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.GetKeyHandleRequest` 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.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandle` | A Task containing the RPC response. |

**Overrides** [AutokeyClient.GetKeyHandleAsync(GetKeyHandleRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_GetKeyHandleAsync_Google_Cloud_Kms_V1_GetKeyHandleRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListKeyHandles(ListKeyHandlesRequest, CallSettings)

    public override PagedEnumerable<ListKeyHandlesResponse, KeyHandle> ListKeyHandles(ListKeyHandlesRequest request, CallSettings callSettings = null)

Lists \[KeyHandles\]\[google.cloud.kms.v1.KeyHandle\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ListKeyHandlesRequest` 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.Kms.V1/latest/Google.Cloud.Kms.V1.ListKeyHandlesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandle` | A pageable sequence of [KeyHandle](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandle) resources. |

**Overrides** [AutokeyClient.ListKeyHandles(ListKeyHandlesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ListKeyHandles_Google_Cloud_Kms_V1_ListKeyHandlesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListKeyHandlesAsync(ListKeyHandlesRequest, CallSettings)

    public override PagedAsyncEnumerable<ListKeyHandlesResponse, KeyHandle> ListKeyHandlesAsync(ListKeyHandlesRequest request, CallSettings callSettings = null)

Lists \[KeyHandles\]\[google.cloud.kms.v1.KeyHandle\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ListKeyHandlesRequest` 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.Kms.V1/latest/Google.Cloud.Kms.V1.ListKeyHandlesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandle` | A pageable asynchronous sequence of [KeyHandle](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.KeyHandle) resources. |

**Overrides** [AutokeyClient.ListKeyHandlesAsync(ListKeyHandlesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyClient#Google_Cloud_Kms_V1_AutokeyClient_ListKeyHandlesAsync_Google_Cloud_Kms_V1_ListKeyHandlesRequest_Google_Api_Gax_Grpc_CallSettings_)