# KMS Inventory v1 API - Class KeyDashboardServiceClientImpl (1.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/1.5.0/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/1.4.0/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/1.3.0/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/1.2.0/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/1.1.0/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/1.0.0/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClientImpl)

    public sealed class KeyDashboardServiceClientImpl : KeyDashboardServiceClient

Reference documentation and code samples for the KMS Inventory v1 API class KeyDashboardServiceClientImpl.

KeyDashboardService client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[KeyDashboardServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_DefaultEndpoint) [KeyDashboardServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_DefaultScopes) [KeyDashboardServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ServiceMetadata) [KeyDashboardServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_CreateAsync_System_Threading_CancellationToken_) [KeyDashboardServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_Create) [KeyDashboardServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ShutdownDefaultChannelsAsync) [KeyDashboardServiceClient.ListCryptoKeys(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ListCryptoKeys_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [KeyDashboardServiceClient.ListCryptoKeysAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ListCryptoKeysAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [KeyDashboardServiceClient.ListCryptoKeys(ProjectName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ListCryptoKeys_Google_Api_Gax_ResourceNames_ProjectName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [KeyDashboardServiceClient.ListCryptoKeysAsync(ProjectName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ListCryptoKeysAsync_Google_Api_Gax_ResourceNames_ProjectName_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.Inventory.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1)

## Assembly

Google.Cloud.Kms.Inventory.V1.dll

## Remarks

Provides a cross-region view of all Cloud KMS keys in a given Cloud project.

## Constructors

### KeyDashboardServiceClientImpl(KeyDashboardServiceClient, KeyDashboardServiceSettings, ILogger)

    public KeyDashboardServiceClientImpl(KeyDashboardService.KeyDashboardServiceClient grpcClient, KeyDashboardServiceSettings settings, ILogger logger)

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

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

### GrpcClient

    public override KeyDashboardService.KeyDashboardServiceClient GrpcClient { get; }

The underlying gRPC KeyDashboardService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardService.KeyDashboardServiceClient` |   |

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

## Methods

### ListCryptoKeys(ListCryptoKeysRequest, CallSettings)

    public override PagedEnumerable<ListCryptoKeysResponse, CryptoKey> ListCryptoKeys(ListCryptoKeysRequest request, CallSettings callSettings = null)

Returns cryptographic keys managed by Cloud KMS in a given Cloud project.
Note that this data is sourced from snapshots, meaning it may not
completely reflect the actual state of key metadata at call time.

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

**Overrides** [KeyDashboardServiceClient.ListCryptoKeys(ListCryptoKeysRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ListCryptoKeys_Google_Cloud_Kms_Inventory_V1_ListCryptoKeysRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListCryptoKeysAsync(ListCryptoKeysRequest, CallSettings)

    public override PagedAsyncEnumerable<ListCryptoKeysResponse, CryptoKey> ListCryptoKeysAsync(ListCryptoKeysRequest request, CallSettings callSettings = null)

Returns cryptographic keys managed by Cloud KMS in a given Cloud project.
Note that this data is sourced from snapshots, meaning it may not
completely reflect the actual state of key metadata at call time.

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

**Overrides** [KeyDashboardServiceClient.ListCryptoKeysAsync(ListCryptoKeysRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.Inventory.V1/latest/Google.Cloud.Kms.Inventory.V1.KeyDashboardServiceClient#Google_Cloud_Kms_Inventory_V1_KeyDashboardServiceClient_ListCryptoKeysAsync_Google_Cloud_Kms_Inventory_V1_ListCryptoKeysRequest_Google_Api_Gax_Grpc_CallSettings_)