3.26.0 (latest) 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 abstract class EkmServiceClient

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

EkmService client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> EkmServiceClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

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

## 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\]

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the EkmService service, which is a host of "cloudkms.googleapis.com" and a port of
443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default EkmService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default EkmService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/cloudkms>

### GrpcClient

    public virtual 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` |   |

### IAMPolicyClient

    public virtual 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` |   |

### LocationsClient

    public virtual 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` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static EkmServiceClient Create()

Synchronously creates a [EkmServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient) using the default credentials, endpoint and settings.
To specify custom credentials or other settings, use [EkmServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient` | The created [EkmServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient). |

### CreateAsync(CancellationToken)

    public static Task<EkmServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [EkmServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [EkmServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **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.EkmServiceClient` | The task representing the created [EkmServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmServiceClient). |

### CreateEkmConnection(LocationName, string, EkmConnection, CallSettings)

    public virtual EkmConnection CreateEkmConnection(LocationName parent, string ekmConnectionId, EkmConnection ekmConnection, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location associated with the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\], in the format `projects/*/locations/*`. |
| `ekmConnectionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. An \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with initial field values. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    string ekmConnectionId = "";
    EkmConnection ekmConnection = new EkmConnection();
    // Make the request
    EkmConnection response = ekmServiceClient.CreateEkmConnection(parent, ekmConnectionId, ekmConnection);

### CreateEkmConnection(CreateEkmConnectionRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    CreateEkmConnectionRequest request = new CreateEkmConnectionRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        EkmConnectionId = "",
        EkmConnection = new EkmConnection(),
    };
    // Make the request
    EkmConnection response = ekmServiceClient.CreateEkmConnection(request);

### CreateEkmConnection(string, string, EkmConnection, CallSettings)

    public virtual EkmConnection CreateEkmConnection(string parent, string ekmConnectionId, EkmConnection ekmConnection, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location associated with the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\], in the format `projects/*/locations/*`. |
| `ekmConnectionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. An \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with initial field values. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    string ekmConnectionId = "";
    EkmConnection ekmConnection = new EkmConnection();
    // Make the request
    EkmConnection response = ekmServiceClient.CreateEkmConnection(parent, ekmConnectionId, ekmConnection);

### CreateEkmConnectionAsync(LocationName, string, EkmConnection, CallSettings)

    public virtual Task<EkmConnection> CreateEkmConnectionAsync(LocationName parent, string ekmConnectionId, EkmConnection ekmConnection, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location associated with the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\], in the format `projects/*/locations/*`. |
| `ekmConnectionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. An \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with initial field values. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    string ekmConnectionId = "";
    EkmConnection ekmConnection = new EkmConnection();
    // Make the request
    EkmConnection response = await ekmServiceClient.CreateEkmConnectionAsync(parent, ekmConnectionId, ekmConnection);

### CreateEkmConnectionAsync(LocationName, string, EkmConnection, CancellationToken)

    public virtual Task<EkmConnection> CreateEkmConnectionAsync(LocationName parent, string ekmConnectionId, EkmConnection ekmConnection, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location associated with the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\], in the format `projects/*/locations/*`. |
| `ekmConnectionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. An \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with initial field values. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    string ekmConnectionId = "";
    EkmConnection ekmConnection = new EkmConnection();
    // Make the request
    EkmConnection response = await ekmServiceClient.CreateEkmConnectionAsync(parent, ekmConnectionId, ekmConnection);

### CreateEkmConnectionAsync(CreateEkmConnectionRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateEkmConnectionRequest request = new CreateEkmConnectionRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        EkmConnectionId = "",
        EkmConnection = new EkmConnection(),
    };
    // Make the request
    EkmConnection response = await ekmServiceClient.CreateEkmConnectionAsync(request);

### CreateEkmConnectionAsync(CreateEkmConnectionRequest, CancellationToken)

    public virtual Task<EkmConnection> CreateEkmConnectionAsync(CreateEkmConnectionRequest request, CancellationToken cancellationToken)

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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateEkmConnectionRequest request = new CreateEkmConnectionRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        EkmConnectionId = "",
        EkmConnection = new EkmConnection(),
    };
    // Make the request
    EkmConnection response = await ekmServiceClient.CreateEkmConnectionAsync(request);

### CreateEkmConnectionAsync(string, string, EkmConnection, CallSettings)

    public virtual Task<EkmConnection> CreateEkmConnectionAsync(string parent, string ekmConnectionId, EkmConnection ekmConnection, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location associated with the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\], in the format `projects/*/locations/*`. |
| `ekmConnectionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. An \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with initial field values. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    string ekmConnectionId = "";
    EkmConnection ekmConnection = new EkmConnection();
    // Make the request
    EkmConnection response = await ekmServiceClient.CreateEkmConnectionAsync(parent, ekmConnectionId, ekmConnection);

### CreateEkmConnectionAsync(string, string, EkmConnection, CancellationToken)

    public virtual Task<EkmConnection> CreateEkmConnectionAsync(string parent, string ekmConnectionId, EkmConnection ekmConnection, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location associated with the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\], in the format `projects/*/locations/*`. |
| `ekmConnectionId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. An \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with initial field values. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    string ekmConnectionId = "";
    EkmConnection ekmConnection = new EkmConnection();
    // Make the request
    EkmConnection response = await ekmServiceClient.CreateEkmConnectionAsync(parent, ekmConnectionId, ekmConnection);

### GetEkmConfig(EkmConfigName, CallSettings)

    public virtual EkmConfig GetEkmConfig(EkmConfigName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConfigName` Required. The \[name\]\[google.cloud.kms.v1.EkmConfig.name\] of the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    EkmConfigName name = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    EkmConfig response = ekmServiceClient.GetEkmConfig(name);

### GetEkmConfig(GetEkmConfigRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    GetEkmConfigRequest request = new GetEkmConfigRequest
    {
        EkmConfigName = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    EkmConfig response = ekmServiceClient.GetEkmConfig(request);

### GetEkmConfig(string, CallSettings)

    public virtual EkmConfig GetEkmConfig(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConfig.name\] of the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConfig";
    // Make the request
    EkmConfig response = ekmServiceClient.GetEkmConfig(name);

### GetEkmConfigAsync(EkmConfigName, CallSettings)

    public virtual Task<EkmConfig> GetEkmConfigAsync(EkmConfigName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConfigName` Required. The \[name\]\[google.cloud.kms.v1.EkmConfig.name\] of the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConfigName name = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(name);

### GetEkmConfigAsync(EkmConfigName, CancellationToken)

    public virtual Task<EkmConfig> GetEkmConfigAsync(EkmConfigName name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConfigName` Required. The \[name\]\[google.cloud.kms.v1.EkmConfig.name\] of the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] to get. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConfigName name = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(name);

### GetEkmConfigAsync(GetEkmConfigRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetEkmConfigRequest request = new GetEkmConfigRequest
    {
        EkmConfigName = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(request);

### GetEkmConfigAsync(GetEkmConfigRequest, CancellationToken)

    public virtual Task<EkmConfig> GetEkmConfigAsync(GetEkmConfigRequest request, CancellationToken cancellationToken)

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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetEkmConfigRequest request = new GetEkmConfigRequest
    {
        EkmConfigName = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(request);

### GetEkmConfigAsync(string, CallSettings)

    public virtual Task<EkmConfig> GetEkmConfigAsync(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConfig.name\] of the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConfig";
    // Make the request
    EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(name);

### GetEkmConfigAsync(string, CancellationToken)

    public virtual Task<EkmConfig> GetEkmConfigAsync(string name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConfig.name\] of the \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] to get. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConfig";
    // Make the request
    EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(name);

### GetEkmConnection(EkmConnectionName, CallSettings)

    public virtual EkmConnection GetEkmConnection(EkmConnectionName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    EkmConnectionName name = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]");
    // Make the request
    EkmConnection response = ekmServiceClient.GetEkmConnection(name);

### GetEkmConnection(GetEkmConnectionRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    GetEkmConnectionRequest request = new GetEkmConnectionRequest
    {
        EkmConnectionName = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"),
    };
    // Make the request
    EkmConnection response = ekmServiceClient.GetEkmConnection(request);

### GetEkmConnection(string, CallSettings)

    public virtual EkmConnection GetEkmConnection(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConnections/[EKM_CONNECTION]";
    // Make the request
    EkmConnection response = ekmServiceClient.GetEkmConnection(name);

### GetEkmConnectionAsync(EkmConnectionName, CallSettings)

    public virtual Task<EkmConnection> GetEkmConnectionAsync(EkmConnectionName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConnectionName name = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]");
    // Make the request
    EkmConnection response = await ekmServiceClient.GetEkmConnectionAsync(name);

### GetEkmConnectionAsync(EkmConnectionName, CancellationToken)

    public virtual Task<EkmConnection> GetEkmConnectionAsync(EkmConnectionName name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to get. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConnectionName name = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]");
    // Make the request
    EkmConnection response = await ekmServiceClient.GetEkmConnectionAsync(name);

### GetEkmConnectionAsync(GetEkmConnectionRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetEkmConnectionRequest request = new GetEkmConnectionRequest
    {
        EkmConnectionName = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"),
    };
    // Make the request
    EkmConnection response = await ekmServiceClient.GetEkmConnectionAsync(request);

### GetEkmConnectionAsync(GetEkmConnectionRequest, CancellationToken)

    public virtual Task<EkmConnection> GetEkmConnectionAsync(GetEkmConnectionRequest request, CancellationToken cancellationToken)

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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetEkmConnectionRequest request = new GetEkmConnectionRequest
    {
        EkmConnectionName = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"),
    };
    // Make the request
    EkmConnection response = await ekmServiceClient.GetEkmConnectionAsync(request);

### GetEkmConnectionAsync(string, CallSettings)

    public virtual Task<EkmConnection> GetEkmConnectionAsync(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to get. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConnections/[EKM_CONNECTION]";
    // Make the request
    EkmConnection response = await ekmServiceClient.GetEkmConnectionAsync(name);

### GetEkmConnectionAsync(string, CancellationToken)

    public virtual Task<EkmConnection> GetEkmConnectionAsync(string name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to get. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConnections/[EKM_CONNECTION]";
    // Make the request
    EkmConnection response = await ekmServiceClient.GetEkmConnectionAsync(name);

### ListEkmConnections(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListEkmConnectionsResponse, EkmConnection> ListEkmConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location associated with the \[EkmConnections\]\[google.cloud.kms.v1.EkmConnection\] to list, in the format `projects/*/locations/*`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListEkmConnectionsResponse, EkmConnection> response = ekmServiceClient.ListEkmConnections(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (EkmConnection item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListEkmConnectionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (EkmConnection item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<EkmConnection> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (EkmConnection item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListEkmConnections(ListEkmConnectionsRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    ListEkmConnectionsRequest request = new ListEkmConnectionsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
    };
    // Make the request
    PagedEnumerable<ListEkmConnectionsResponse, EkmConnection> response = ekmServiceClient.ListEkmConnections(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (EkmConnection item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListEkmConnectionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (EkmConnection item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<EkmConnection> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (EkmConnection item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListEkmConnections(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListEkmConnectionsResponse, EkmConnection> ListEkmConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location associated with the \[EkmConnections\]\[google.cloud.kms.v1.EkmConnection\] to list, in the format `projects/*/locations/*`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListEkmConnectionsResponse, EkmConnection> response = ekmServiceClient.ListEkmConnections(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (EkmConnection item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListEkmConnectionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (EkmConnection item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<EkmConnection> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (EkmConnection item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListEkmConnectionsAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListEkmConnectionsResponse, EkmConnection> ListEkmConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location associated with the \[EkmConnections\]\[google.cloud.kms.v1.EkmConnection\] to list, in the format `projects/*/locations/*`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListEkmConnectionsResponse, EkmConnection> response = ekmServiceClient.ListEkmConnectionsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (EkmConnection item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListEkmConnectionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (EkmConnection item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<EkmConnection> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (EkmConnection item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListEkmConnectionsAsync(ListEkmConnectionsRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListEkmConnectionsRequest request = new ListEkmConnectionsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListEkmConnectionsResponse, EkmConnection> response = ekmServiceClient.ListEkmConnectionsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (EkmConnection item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListEkmConnectionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (EkmConnection item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<EkmConnection> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (EkmConnection item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListEkmConnectionsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListEkmConnectionsResponse, EkmConnection> ListEkmConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location associated with the \[EkmConnections\]\[google.cloud.kms.v1.EkmConnection\] to list, in the format `projects/*/locations/*`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListEkmConnectionsResponse, EkmConnection> response = ekmServiceClient.ListEkmConnectionsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (EkmConnection item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListEkmConnectionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (EkmConnection item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<EkmConnection> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (EkmConnection item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [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) and
[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_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [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) and
[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_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateEkmConfig(EkmConfig, FieldMask, CallSettings)

    public virtual EkmConfig UpdateEkmConfig(EkmConfig ekmConfig, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `ekmConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConfig` Required. \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] with updated values. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. List of fields to be updated in this request. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    EkmConfig ekmConfig = new EkmConfig();
    FieldMask updateMask = new FieldMask();
    // Make the request
    EkmConfig response = ekmServiceClient.UpdateEkmConfig(ekmConfig, updateMask);

### UpdateEkmConfig(UpdateEkmConfigRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    UpdateEkmConfigRequest request = new UpdateEkmConfigRequest
    {
        EkmConfig = new EkmConfig(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    EkmConfig response = ekmServiceClient.UpdateEkmConfig(request);

### UpdateEkmConfigAsync(EkmConfig, FieldMask, CallSettings)

    public virtual Task<EkmConfig> UpdateEkmConfigAsync(EkmConfig ekmConfig, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `ekmConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConfig` Required. \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] with updated values. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. List of fields to be updated in this request. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConfig ekmConfig = new EkmConfig();
    FieldMask updateMask = new FieldMask();
    // Make the request
    EkmConfig response = await ekmServiceClient.UpdateEkmConfigAsync(ekmConfig, updateMask);

### UpdateEkmConfigAsync(EkmConfig, FieldMask, CancellationToken)

    public virtual Task<EkmConfig> UpdateEkmConfigAsync(EkmConfig ekmConfig, FieldMask updateMask, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `ekmConfig` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConfig` Required. \[EkmConfig\]\[google.cloud.kms.v1.EkmConfig\] with updated values. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. List of fields to be updated in this request. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConfig ekmConfig = new EkmConfig();
    FieldMask updateMask = new FieldMask();
    // Make the request
    EkmConfig response = await ekmServiceClient.UpdateEkmConfigAsync(ekmConfig, updateMask);

### UpdateEkmConfigAsync(UpdateEkmConfigRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateEkmConfigRequest request = new UpdateEkmConfigRequest
    {
        EkmConfig = new EkmConfig(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    EkmConfig response = await ekmServiceClient.UpdateEkmConfigAsync(request);

### UpdateEkmConfigAsync(UpdateEkmConfigRequest, CancellationToken)

    public virtual Task<EkmConfig> UpdateEkmConfigAsync(UpdateEkmConfigRequest request, CancellationToken cancellationToken)

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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateEkmConfigRequest request = new UpdateEkmConfigRequest
    {
        EkmConfig = new EkmConfig(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    EkmConfig response = await ekmServiceClient.UpdateEkmConfigAsync(request);

### UpdateEkmConnection(EkmConnection, FieldMask, CallSettings)

    public virtual EkmConnection UpdateEkmConnection(EkmConnection ekmConnection, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with updated values. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. List of fields to be updated in this request. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    EkmConnection ekmConnection = new EkmConnection();
    FieldMask updateMask = new FieldMask();
    // Make the request
    EkmConnection response = ekmServiceClient.UpdateEkmConnection(ekmConnection, updateMask);

### UpdateEkmConnection(UpdateEkmConnectionRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    UpdateEkmConnectionRequest request = new UpdateEkmConnectionRequest
    {
        EkmConnection = new EkmConnection(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    EkmConnection response = ekmServiceClient.UpdateEkmConnection(request);

### UpdateEkmConnectionAsync(EkmConnection, FieldMask, CallSettings)

    public virtual Task<EkmConnection> UpdateEkmConnectionAsync(EkmConnection ekmConnection, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with updated values. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. List of fields to be updated in this request. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConnection ekmConnection = new EkmConnection();
    FieldMask updateMask = new FieldMask();
    // Make the request
    EkmConnection response = await ekmServiceClient.UpdateEkmConnectionAsync(ekmConnection, updateMask);

### UpdateEkmConnectionAsync(EkmConnection, FieldMask, CancellationToken)

    public virtual Task<EkmConnection> UpdateEkmConnectionAsync(EkmConnection ekmConnection, FieldMask updateMask, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `ekmConnection` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnection` Required. \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] with updated values. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. List of fields to be updated in this request. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConnection ekmConnection = new EkmConnection();
    FieldMask updateMask = new FieldMask();
    // Make the request
    EkmConnection response = await ekmServiceClient.UpdateEkmConnectionAsync(ekmConnection, updateMask);

### UpdateEkmConnectionAsync(UpdateEkmConnectionRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateEkmConnectionRequest request = new UpdateEkmConnectionRequest
    {
        EkmConnection = new EkmConnection(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    EkmConnection response = await ekmServiceClient.UpdateEkmConnectionAsync(request);

### UpdateEkmConnectionAsync(UpdateEkmConnectionRequest, CancellationToken)

    public virtual Task<EkmConnection> UpdateEkmConnectionAsync(UpdateEkmConnectionRequest request, CancellationToken cancellationToken)

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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateEkmConnectionRequest request = new UpdateEkmConnectionRequest
    {
        EkmConnection = new EkmConnection(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    EkmConnection response = await ekmServiceClient.UpdateEkmConnectionAsync(request);

### VerifyConnectivity(EkmConnectionName, CallSettings)

    public virtual VerifyConnectivityResponse VerifyConnectivity(EkmConnectionName name, 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** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to verify. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    EkmConnectionName name = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]");
    // Make the request
    VerifyConnectivityResponse response = ekmServiceClient.VerifyConnectivity(name);

### VerifyConnectivity(VerifyConnectivityRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    VerifyConnectivityRequest request = new VerifyConnectivityRequest
    {
        EkmConnectionName = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"),
    };
    // Make the request
    VerifyConnectivityResponse response = ekmServiceClient.VerifyConnectivity(request);

### VerifyConnectivity(string, CallSettings)

    public virtual VerifyConnectivityResponse VerifyConnectivity(string name, 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** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to verify. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = EkmServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConnections/[EKM_CONNECTION]";
    // Make the request
    VerifyConnectivityResponse response = ekmServiceClient.VerifyConnectivity(name);

### VerifyConnectivityAsync(EkmConnectionName, CallSettings)

    public virtual Task<VerifyConnectivityResponse> VerifyConnectivityAsync(EkmConnectionName name, 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** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to verify. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConnectionName name = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]");
    // Make the request
    VerifyConnectivityResponse response = await ekmServiceClient.VerifyConnectivityAsync(name);

### VerifyConnectivityAsync(EkmConnectionName, CancellationToken)

    public virtual Task<VerifyConnectivityResponse> VerifyConnectivityAsync(EkmConnectionName name, CancellationToken cancellationToken)

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** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to verify. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    EkmConnectionName name = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]");
    // Make the request
    VerifyConnectivityResponse response = await ekmServiceClient.VerifyConnectivityAsync(name);

### VerifyConnectivityAsync(VerifyConnectivityRequest, CallSettings)

    public virtual 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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    VerifyConnectivityRequest request = new VerifyConnectivityRequest
    {
        EkmConnectionName = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"),
    };
    // Make the request
    VerifyConnectivityResponse response = await ekmServiceClient.VerifyConnectivityAsync(request);

### VerifyConnectivityAsync(VerifyConnectivityRequest, CancellationToken)

    public virtual Task<VerifyConnectivityResponse> VerifyConnectivityAsync(VerifyConnectivityRequest request, CancellationToken cancellationToken)

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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    VerifyConnectivityRequest request = new VerifyConnectivityRequest
    {
        EkmConnectionName = EkmConnectionName.FromProjectLocationEkmConnection("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"),
    };
    // Make the request
    VerifyConnectivityResponse response = await ekmServiceClient.VerifyConnectivityAsync(request);

### VerifyConnectivityAsync(string, CallSettings)

    public virtual Task<VerifyConnectivityResponse> VerifyConnectivityAsync(string name, 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** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to verify. |
| `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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConnections/[EKM_CONNECTION]";
    // Make the request
    VerifyConnectivityResponse response = await ekmServiceClient.VerifyConnectivityAsync(name);

### VerifyConnectivityAsync(string, CancellationToken)

    public virtual Task<VerifyConnectivityResponse> VerifyConnectivityAsync(string name, CancellationToken cancellationToken)

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** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[name\]\[google.cloud.kms.v1.EkmConnection.name\] of the \[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] to verify. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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. |

**Example**

    // Create client
    EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConnections/[EKM_CONNECTION]";
    // Make the request
    VerifyConnectivityResponse response = await ekmServiceClient.VerifyConnectivityAsync(name);