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 EkmServiceClientImpl : EkmServiceClient

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

EkmService client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[EkmServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_DefaultEndpoint) [EkmServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_DefaultScopes) [EkmServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ServiceMetadata) [EkmServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateAsync_System_Threading_CancellationToken_) [EkmServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_Create) [EkmServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ShutdownDefaultChannelsAsync) [EkmServiceClient.ListEkmConnections(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ListEkmConnections_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.ListEkmConnectionsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ListEkmConnectionsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.ListEkmConnections(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ListEkmConnections_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.ListEkmConnectionsAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ListEkmConnectionsAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConnectionAsync(GetEkmConnectionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnectionAsync_Google_Cloud_Kms_V1_GetEkmConnectionRequest_System_Threading_CancellationToken_) [EkmServiceClient.GetEkmConnection(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnection_System_String_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConnectionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnectionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConnectionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnectionAsync_System_String_System_Threading_CancellationToken_) [EkmServiceClient.GetEkmConnection(EkmConnectionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnection_Google_Cloud_Kms_V1_EkmConnectionName_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConnectionAsync(EkmConnectionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnectionAsync_Google_Cloud_Kms_V1_EkmConnectionName_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConnectionAsync(EkmConnectionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnectionAsync_Google_Cloud_Kms_V1_EkmConnectionName_System_Threading_CancellationToken_) [EkmServiceClient.CreateEkmConnectionAsync(CreateEkmConnectionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnectionAsync_Google_Cloud_Kms_V1_CreateEkmConnectionRequest_System_Threading_CancellationToken_) [EkmServiceClient.CreateEkmConnection(string, string, EkmConnection, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnection_System_String_System_String_Google_Cloud_Kms_V1_EkmConnection_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.CreateEkmConnectionAsync(string, string, EkmConnection, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnectionAsync_System_String_System_String_Google_Cloud_Kms_V1_EkmConnection_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.CreateEkmConnectionAsync(string, string, EkmConnection, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnectionAsync_System_String_System_String_Google_Cloud_Kms_V1_EkmConnection_System_Threading_CancellationToken_) [EkmServiceClient.CreateEkmConnection(LocationName, string, EkmConnection, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnection_Google_Api_Gax_ResourceNames_LocationName_System_String_Google_Cloud_Kms_V1_EkmConnection_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.CreateEkmConnectionAsync(LocationName, string, EkmConnection, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnectionAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_Google_Cloud_Kms_V1_EkmConnection_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.CreateEkmConnectionAsync(LocationName, string, EkmConnection, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnectionAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_Google_Cloud_Kms_V1_EkmConnection_System_Threading_CancellationToken_) [EkmServiceClient.UpdateEkmConnectionAsync(UpdateEkmConnectionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConnectionAsync_Google_Cloud_Kms_V1_UpdateEkmConnectionRequest_System_Threading_CancellationToken_) [EkmServiceClient.UpdateEkmConnection(EkmConnection, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConnection_Google_Cloud_Kms_V1_EkmConnection_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.UpdateEkmConnectionAsync(EkmConnection, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConnectionAsync_Google_Cloud_Kms_V1_EkmConnection_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.UpdateEkmConnectionAsync(EkmConnection, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConnectionAsync_Google_Cloud_Kms_V1_EkmConnection_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [EkmServiceClient.GetEkmConfigAsync(GetEkmConfigRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfigAsync_Google_Cloud_Kms_V1_GetEkmConfigRequest_System_Threading_CancellationToken_) [EkmServiceClient.GetEkmConfig(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfig_System_String_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConfigAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfigAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConfigAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfigAsync_System_String_System_Threading_CancellationToken_) [EkmServiceClient.GetEkmConfig(EkmConfigName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfig_Google_Cloud_Kms_V1_EkmConfigName_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConfigAsync(EkmConfigName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfigAsync_Google_Cloud_Kms_V1_EkmConfigName_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.GetEkmConfigAsync(EkmConfigName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfigAsync_Google_Cloud_Kms_V1_EkmConfigName_System_Threading_CancellationToken_) [EkmServiceClient.UpdateEkmConfigAsync(UpdateEkmConfigRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConfigAsync_Google_Cloud_Kms_V1_UpdateEkmConfigRequest_System_Threading_CancellationToken_) [EkmServiceClient.UpdateEkmConfig(EkmConfig, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConfig_Google_Cloud_Kms_V1_EkmConfig_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.UpdateEkmConfigAsync(EkmConfig, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConfigAsync_Google_Cloud_Kms_V1_EkmConfig_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.UpdateEkmConfigAsync(EkmConfig, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConfigAsync_Google_Cloud_Kms_V1_EkmConfig_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [EkmServiceClient.VerifyConnectivityAsync(VerifyConnectivityRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivityAsync_Google_Cloud_Kms_V1_VerifyConnectivityRequest_System_Threading_CancellationToken_) [EkmServiceClient.VerifyConnectivity(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivity_System_String_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.VerifyConnectivityAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivityAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.VerifyConnectivityAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivityAsync_System_String_System_Threading_CancellationToken_) [EkmServiceClient.VerifyConnectivity(EkmConnectionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivity_Google_Cloud_Kms_V1_EkmConnectionName_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.VerifyConnectivityAsync(EkmConnectionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivityAsync_Google_Cloud_Kms_V1_EkmConnectionName_Google_Api_Gax_Grpc_CallSettings_) [EkmServiceClient.VerifyConnectivityAsync(EkmConnectionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivityAsync_Google_Cloud_Kms_V1_EkmConnectionName_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.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

Google Cloud Key Management EKM Service

Manages external cryptographic keys and operations using those keys.
Implements a REST model with the following objects:

- \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\]

## Constructors

### EkmServiceClientImpl(EkmServiceClient, EkmServiceSettings, ILogger)

    public EkmServiceClientImpl(EkmService.EkmServiceClient grpcClient, EkmServiceSettings settings, ILogger logger)

Constructs a client wrapper for the EkmService 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.EkmServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmService.EkmServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceSettings` The base [EkmServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceSettings) 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 EkmService.EkmServiceClient GrpcClient { get; }

The underlying gRPC EkmService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmService.EkmServiceClient` |   |

**Overrides** [EkmServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_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** [EkmServiceClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_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** [EkmServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_LocationsClient)

## Methods

### CreateEkmConnection(CreateEkmConnectionRequest, CallSettings)

    public override EkmConnection CreateEkmConnection(CreateEkmConnectionRequest request, CallSettings callSettings = null)

Creates a new \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] in a given
Project and Location.

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

**Overrides** [EkmServiceClient.CreateEkmConnection(CreateEkmConnectionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnection_Google_Cloud_Kms_V1_CreateEkmConnectionRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateEkmConnectionAsync(CreateEkmConnectionRequest, CallSettings)

    public override Task<EkmConnection> CreateEkmConnectionAsync(CreateEkmConnectionRequest request, CallSettings callSettings = null)

Creates a new \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] in a given
Project and Location.

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

**Overrides** [EkmServiceClient.CreateEkmConnectionAsync(CreateEkmConnectionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_CreateEkmConnectionAsync_Google_Cloud_Kms_V1_CreateEkmConnectionRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEkmConfig(GetEkmConfigRequest, CallSettings)

    public override EkmConfig GetEkmConfig(GetEkmConfigRequest request, CallSettings callSettings = null)

Returns the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] singleton resource
for a given project and location.

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

**Overrides** [EkmServiceClient.GetEkmConfig(GetEkmConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfig_Google_Cloud_Kms_V1_GetEkmConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEkmConfigAsync(GetEkmConfigRequest, CallSettings)

    public override Task<EkmConfig> GetEkmConfigAsync(GetEkmConfigRequest request, CallSettings callSettings = null)

Returns the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] singleton resource
for a given project and location.

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

**Overrides** [EkmServiceClient.GetEkmConfigAsync(GetEkmConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConfigAsync_Google_Cloud_Kms_V1_GetEkmConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEkmConnection(GetEkmConnectionRequest, CallSettings)

    public override EkmConnection GetEkmConnection(GetEkmConnectionRequest request, CallSettings callSettings = null)

Returns metadata for a given
\[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\].

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

**Overrides** [EkmServiceClient.GetEkmConnection(GetEkmConnectionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnection_Google_Cloud_Kms_V1_GetEkmConnectionRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEkmConnectionAsync(GetEkmConnectionRequest, CallSettings)

    public override Task<EkmConnection> GetEkmConnectionAsync(GetEkmConnectionRequest request, CallSettings callSettings = null)

Returns metadata for a given
\[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\].

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

**Overrides** [EkmServiceClient.GetEkmConnectionAsync(GetEkmConnectionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_GetEkmConnectionAsync_Google_Cloud_Kms_V1_GetEkmConnectionRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListEkmConnections(ListEkmConnectionsRequest, CallSettings)

    public override PagedEnumerable<ListEkmConnectionsResponse, EkmConnection> ListEkmConnections(ListEkmConnectionsRequest request, CallSettings callSettings = null)

Lists \[EkmConnections\]\[google.cloud.kms.v1.EkmConnection\].

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

**Overrides** [EkmServiceClient.ListEkmConnections(ListEkmConnectionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ListEkmConnections_Google_Cloud_Kms_V1_ListEkmConnectionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListEkmConnectionsAsync(ListEkmConnectionsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListEkmConnectionsResponse, EkmConnection> ListEkmConnectionsAsync(ListEkmConnectionsRequest request, CallSettings callSettings = null)

Lists \[EkmConnections\]\[google.cloud.kms.v1.EkmConnection\].

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

**Overrides** [EkmServiceClient.ListEkmConnectionsAsync(ListEkmConnectionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_ListEkmConnectionsAsync_Google_Cloud_Kms_V1_ListEkmConnectionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateEkmConfig(UpdateEkmConfigRequest, CallSettings)

    public override EkmConfig UpdateEkmConfig(UpdateEkmConfigRequest request, CallSettings callSettings = null)

Updates the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] singleton resource
for a given project and location.

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

**Overrides** [EkmServiceClient.UpdateEkmConfig(UpdateEkmConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConfig_Google_Cloud_Kms_V1_UpdateEkmConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateEkmConfigAsync(UpdateEkmConfigRequest, CallSettings)

    public override Task<EkmConfig> UpdateEkmConfigAsync(UpdateEkmConfigRequest request, CallSettings callSettings = null)

Updates the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] singleton resource
for a given project and location.

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

**Overrides** [EkmServiceClient.UpdateEkmConfigAsync(UpdateEkmConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConfigAsync_Google_Cloud_Kms_V1_UpdateEkmConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateEkmConnection(UpdateEkmConnectionRequest, CallSettings)

    public override EkmConnection UpdateEkmConnection(UpdateEkmConnectionRequest request, CallSettings callSettings = null)

Updates an \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\]'s metadata.

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

**Overrides** [EkmServiceClient.UpdateEkmConnection(UpdateEkmConnectionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConnection_Google_Cloud_Kms_V1_UpdateEkmConnectionRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateEkmConnectionAsync(UpdateEkmConnectionRequest, CallSettings)

    public override Task<EkmConnection> UpdateEkmConnectionAsync(UpdateEkmConnectionRequest request, CallSettings callSettings = null)

Updates an \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\]'s metadata.

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

**Overrides** [EkmServiceClient.UpdateEkmConnectionAsync(UpdateEkmConnectionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_UpdateEkmConnectionAsync_Google_Cloud_Kms_V1_UpdateEkmConnectionRequest_Google_Api_Gax_Grpc_CallSettings_)

### VerifyConnectivity(VerifyConnectivityRequest, CallSettings)

    public override VerifyConnectivityResponse VerifyConnectivity(VerifyConnectivityRequest request, CallSettings callSettings = null)

Verifies that Cloud KMS can successfully connect to the external key
manager specified by an \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\].
If there is an error connecting to the EKM, this method returns a
FAILED_PRECONDITION status containing structured information as described
at <https://cloud.google.com/kms/docs/reference/ekm_errors>.

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

**Overrides** [EkmServiceClient.VerifyConnectivity(VerifyConnectivityRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivity_Google_Cloud_Kms_V1_VerifyConnectivityRequest_Google_Api_Gax_Grpc_CallSettings_)

### VerifyConnectivityAsync(VerifyConnectivityRequest, CallSettings)

    public override Task<VerifyConnectivityResponse> VerifyConnectivityAsync(VerifyConnectivityRequest request, CallSettings callSettings = null)

Verifies that Cloud KMS can successfully connect to the external key
manager specified by an \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\].
If there is an error connecting to the EKM, this method returns a
FAILED_PRECONDITION status containing structured information as described
at <https://cloud.google.com/kms/docs/reference/ekm_errors>.

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

**Overrides** [EkmServiceClient.VerifyConnectivityAsync(VerifyConnectivityRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient#Google_Cloud_Kms_V1_EkmServiceClient_VerifyConnectivityAsync_Google_Cloud_Kms_V1_VerifyConnectivityRequest_Google_Api_Gax_Grpc_CallSettings_)