1.5.0 (latest) 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ApiKeysClientImpl : ApiKeysClient

Reference documentation and code samples for the API Keys v2 API class ApiKeysClientImpl.

ApiKeys client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ApiKeysClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt) \> ApiKeysClientImpl

## Inherited Members

[ApiKeysClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DefaultEndpoint) [ApiKeysClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DefaultScopes) [ApiKeysClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ServiceMetadata) [ApiKeysClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateAsync_System_Threading_CancellationToken_) [ApiKeysClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_Create) [ApiKeysClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ShutdownDefaultChannelsAsync) [ApiKeysClient.CreateKeyAsync(CreateKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyAsync_Google_Cloud_ApiKeys_V2_CreateKeyRequest_System_Threading_CancellationToken_) [ApiKeysClient.PollOnceCreateKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceCreateKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.PollOnceCreateKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceCreateKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.CreateKey(string, Key, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKey_System_String_Google_Cloud_ApiKeys_V2_Key_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.CreateKeyAsync(string, Key, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyAsync_System_String_Google_Cloud_ApiKeys_V2_Key_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.CreateKeyAsync(string, Key, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyAsync_System_String_Google_Cloud_ApiKeys_V2_Key_System_String_System_Threading_CancellationToken_) [ApiKeysClient.CreateKey(LocationName, Key, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKey_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_ApiKeys_V2_Key_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.CreateKeyAsync(LocationName, Key, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_ApiKeys_V2_Key_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.CreateKeyAsync(LocationName, Key, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_ApiKeys_V2_Key_System_String_System_Threading_CancellationToken_) [ApiKeysClient.ListKeys(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ListKeys_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.ListKeysAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ListKeysAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.ListKeys(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ListKeys_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.ListKeysAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ListKeysAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyAsync(GetKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyAsync_Google_Cloud_ApiKeys_V2_GetKeyRequest_System_Threading_CancellationToken_) [ApiKeysClient.GetKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyAsync_System_String_System_Threading_CancellationToken_) [ApiKeysClient.GetKey(KeyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKey_Google_Cloud_ApiKeys_V2_KeyName_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyAsync(KeyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyAsync_Google_Cloud_ApiKeys_V2_KeyName_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyAsync(KeyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyAsync_Google_Cloud_ApiKeys_V2_KeyName_System_Threading_CancellationToken_) [ApiKeysClient.GetKeyStringAsync(GetKeyStringRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyStringAsync_Google_Cloud_ApiKeys_V2_GetKeyStringRequest_System_Threading_CancellationToken_) [ApiKeysClient.GetKeyString(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyString_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyStringAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyStringAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyStringAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyStringAsync_System_String_System_Threading_CancellationToken_) [ApiKeysClient.GetKeyString(KeyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyString_Google_Cloud_ApiKeys_V2_KeyName_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyStringAsync(KeyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyStringAsync_Google_Cloud_ApiKeys_V2_KeyName_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.GetKeyStringAsync(KeyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyStringAsync_Google_Cloud_ApiKeys_V2_KeyName_System_Threading_CancellationToken_) [ApiKeysClient.UpdateKeyAsync(UpdateKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKeyAsync_Google_Cloud_ApiKeys_V2_UpdateKeyRequest_System_Threading_CancellationToken_) [ApiKeysClient.PollOnceUpdateKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceUpdateKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.PollOnceUpdateKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceUpdateKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.UpdateKey(Key, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKey_Google_Cloud_ApiKeys_V2_Key_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.UpdateKeyAsync(Key, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKeyAsync_Google_Cloud_ApiKeys_V2_Key_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.UpdateKeyAsync(Key, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKeyAsync_Google_Cloud_ApiKeys_V2_Key_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [ApiKeysClient.DeleteKeyAsync(DeleteKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyAsync_Google_Cloud_ApiKeys_V2_DeleteKeyRequest_System_Threading_CancellationToken_) [ApiKeysClient.PollOnceDeleteKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceDeleteKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.PollOnceDeleteKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceDeleteKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.DeleteKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.DeleteKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.DeleteKeyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyAsync_System_String_System_Threading_CancellationToken_) [ApiKeysClient.DeleteKey(KeyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKey_Google_Cloud_ApiKeys_V2_KeyName_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.DeleteKeyAsync(KeyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyAsync_Google_Cloud_ApiKeys_V2_KeyName_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.DeleteKeyAsync(KeyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyAsync_Google_Cloud_ApiKeys_V2_KeyName_System_Threading_CancellationToken_) [ApiKeysClient.UndeleteKeyAsync(UndeleteKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UndeleteKeyAsync_Google_Cloud_ApiKeys_V2_UndeleteKeyRequest_System_Threading_CancellationToken_) [ApiKeysClient.PollOnceUndeleteKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceUndeleteKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.PollOnceUndeleteKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_PollOnceUndeleteKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ApiKeysClient.LookupKeyAsync(LookupKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_LookupKeyAsync_Google_Cloud_ApiKeys_V2_LookupKeyRequest_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.ApiKeys.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.md.txt)

## Assembly

Google.Cloud.ApiKeys.V2.dll

## Remarks

Manages the API keys associated with projects.

## Constructors

### ApiKeysClientImpl(ApiKeysClient, ApiKeysSettings, ILogger)

    public ApiKeysClientImpl(ApiKeys.ApiKeysClient grpcClient, ApiKeysSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `ApiKeysApiKeysClient` The underlying gRPC client. |
| `settings` | `ApiKeysSettings` The base [ApiKeysSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysSettings.md.txt) used within this client. |
| `logger` | `ILogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### CreateKeyOperationsClient

    public override OperationsClient CreateKeyOperationsClient { get; }

The long-running operations client for `CreateKey`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [ApiKeysClient.CreateKeyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyOperationsClient)

### DeleteKeyOperationsClient

    public override OperationsClient DeleteKeyOperationsClient { get; }

The long-running operations client for `DeleteKey`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [ApiKeysClient.DeleteKeyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyOperationsClient)

### GrpcClient

    public override ApiKeys.ApiKeysClient GrpcClient { get; }

The underlying gRPC ApiKeys client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiKeysApiKeysClient` |   |

**Overrides** [ApiKeysClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GrpcClient)

### UndeleteKeyOperationsClient

    public override OperationsClient UndeleteKeyOperationsClient { get; }

The long-running operations client for `UndeleteKey`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [ApiKeysClient.UndeleteKeyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UndeleteKeyOperationsClient)

### UpdateKeyOperationsClient

    public override OperationsClient UpdateKeyOperationsClient { get; }

The long-running operations client for `UpdateKey`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [ApiKeysClient.UpdateKeyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKeyOperationsClient)

## Methods

### CreateKey(CreateKeyRequest, CallSettings)

    public override Operation<Key, Empty> CreateKey(CreateKeyRequest request, CallSettings callSettings = null)

Creates a new API key.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationKeyEmpty` | The RPC response. |

**Overrides** [ApiKeysClient.CreateKey(CreateKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKey_Google_Cloud_ApiKeys_V2_CreateKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateKeyAsync(CreateKeyRequest, CallSettings)

    public override Task<Operation<Key, Empty>> CreateKeyAsync(CreateKeyRequest request, CallSettings callSettings = null)

Creates a new API key.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationKeyEmpty` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.CreateKeyAsync(CreateKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_CreateKeyAsync_Google_Cloud_ApiKeys_V2_CreateKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteKey(DeleteKeyRequest, CallSettings)

    public override Operation<Key, Empty> DeleteKey(DeleteKeyRequest request, CallSettings callSettings = null)

Deletes an API key. Deleted key can be retrieved within 30 days of
deletion. Afterward, key will be purged from the project.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationKeyEmpty` | The RPC response. |

**Overrides** [ApiKeysClient.DeleteKey(DeleteKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKey_Google_Cloud_ApiKeys_V2_DeleteKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteKeyAsync(DeleteKeyRequest, CallSettings)

    public override Task<Operation<Key, Empty>> DeleteKeyAsync(DeleteKeyRequest request, CallSettings callSettings = null)

Deletes an API key. Deleted key can be retrieved within 30 days of
deletion. Afterward, key will be purged from the project.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationKeyEmpty` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.DeleteKeyAsync(DeleteKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_DeleteKeyAsync_Google_Cloud_ApiKeys_V2_DeleteKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetKey(GetKeyRequest, CallSettings)

    public override Key GetKey(GetKeyRequest request, CallSettings callSettings = null)

Gets the metadata for an API key. The key string of the API key
isn't included in the response.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Key` | The RPC response. |

**Overrides** [ApiKeysClient.GetKey(GetKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKey_Google_Cloud_ApiKeys_V2_GetKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetKeyAsync(GetKeyRequest, CallSettings)

    public override Task<Key> GetKeyAsync(GetKeyRequest request, CallSettings callSettings = null)

Gets the metadata for an API key. The key string of the API key
isn't included in the response.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskKey` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.GetKeyAsync(GetKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyAsync_Google_Cloud_ApiKeys_V2_GetKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetKeyString(GetKeyStringRequest, CallSettings)

    public override GetKeyStringResponse GetKeyString(GetKeyStringRequest request, CallSettings callSettings = null)

Get the key string for an API key.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetKeyStringRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GetKeyStringResponse` | The RPC response. |

**Overrides** [ApiKeysClient.GetKeyString(GetKeyStringRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyString_Google_Cloud_ApiKeys_V2_GetKeyStringRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetKeyStringAsync(GetKeyStringRequest, CallSettings)

    public override Task<GetKeyStringResponse> GetKeyStringAsync(GetKeyStringRequest request, CallSettings callSettings = null)

Get the key string for an API key.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetKeyStringRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskGetKeyStringResponse` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.GetKeyStringAsync(GetKeyStringRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_GetKeyStringAsync_Google_Cloud_ApiKeys_V2_GetKeyStringRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListKeys(ListKeysRequest, CallSettings)

    public override PagedEnumerable<ListKeysResponse, Key> ListKeys(ListKeysRequest request, CallSettings callSettings = null)

Lists the API keys owned by a project. The key string of the API key
isn't included in the response.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListKeysRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListKeysResponseKey` | A pageable sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.Key.md.txt) resources. |

**Overrides** [ApiKeysClient.ListKeys(ListKeysRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ListKeys_Google_Cloud_ApiKeys_V2_ListKeysRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListKeysAsync(ListKeysRequest, CallSettings)

    public override PagedAsyncEnumerable<ListKeysResponse, Key> ListKeysAsync(ListKeysRequest request, CallSettings callSettings = null)

Lists the API keys owned by a project. The key string of the API key
isn't included in the response.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListKeysRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListKeysResponseKey` | A pageable asynchronous sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.Key.md.txt) resources. |

**Overrides** [ApiKeysClient.ListKeysAsync(ListKeysRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_ListKeysAsync_Google_Cloud_ApiKeys_V2_ListKeysRequest_Google_Api_Gax_Grpc_CallSettings_)

### LookupKey(LookupKeyRequest, CallSettings)

    public override LookupKeyResponse LookupKey(LookupKeyRequest request, CallSettings callSettings = null)

Find the parent project and resource name of the API
key that matches the key string in the request. If the API key has been
purged, resource name will not be set.
The service account must have the `apikeys.keys.lookup` permission
on the parent project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LookupKeyResponse` | The RPC response. |

**Overrides** [ApiKeysClient.LookupKey(LookupKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_LookupKey_Google_Cloud_ApiKeys_V2_LookupKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### LookupKeyAsync(LookupKeyRequest, CallSettings)

    public override Task<LookupKeyResponse> LookupKeyAsync(LookupKeyRequest request, CallSettings callSettings = null)

Find the parent project and resource name of the API
key that matches the key string in the request. If the API key has been
purged, resource name will not be set.
The service account must have the `apikeys.keys.lookup` permission
on the parent project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLookupKeyResponse` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.LookupKeyAsync(LookupKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_LookupKeyAsync_Google_Cloud_ApiKeys_V2_LookupKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### UndeleteKey(UndeleteKeyRequest, CallSettings)

    public override Operation<Key, Empty> UndeleteKey(UndeleteKeyRequest request, CallSettings callSettings = null)

Undeletes an API key which was deleted within 30 days.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UndeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationKeyEmpty` | The RPC response. |

**Overrides** [ApiKeysClient.UndeleteKey(UndeleteKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UndeleteKey_Google_Cloud_ApiKeys_V2_UndeleteKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### UndeleteKeyAsync(UndeleteKeyRequest, CallSettings)

    public override Task<Operation<Key, Empty>> UndeleteKeyAsync(UndeleteKeyRequest request, CallSettings callSettings = null)

Undeletes an API key which was deleted within 30 days.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UndeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationKeyEmpty` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.UndeleteKeyAsync(UndeleteKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UndeleteKeyAsync_Google_Cloud_ApiKeys_V2_UndeleteKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateKey(UpdateKeyRequest, CallSettings)

    public override Operation<Key, Empty> UpdateKey(UpdateKeyRequest request, CallSettings callSettings = null)

Patches the modifiable fields of an API key.
The key string of the API key isn't included in the response.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationKeyEmpty` | The RPC response. |

**Overrides** [ApiKeysClient.UpdateKey(UpdateKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKey_Google_Cloud_ApiKeys_V2_UpdateKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateKeyAsync(UpdateKeyRequest, CallSettings)

    public override Task<Operation<Key, Empty>> UpdateKeyAsync(UpdateKeyRequest request, CallSettings callSettings = null)

Patches the modifiable fields of an API key.
The key string of the API key isn't included in the response.

NOTE: Key is a global resource; hence the only supported value for
location is `global`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationKeyEmpty` | A Task containing the RPC response. |

**Overrides** [ApiKeysClient.UpdateKeyAsync(UpdateKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiKeysClient.md.txt#Google_Cloud_ApiKeys_V2_ApiKeysClient_UpdateKeyAsync_Google_Cloud_ApiKeys_V2_UpdateKeyRequest_Google_Api_Gax_Grpc_CallSettings_)