3.16.0 (latest) 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.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.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 2.1.0 2.0.0 1.0.0

    public abstract class CmekServiceClient

Reference documentation and code samples for the Cloud Dataplex v1 API class CmekServiceClient.

CmekService client wrapper, for convenient use.

## Inheritance

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

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

[CmekServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.CmekServiceClientImpl.md.txt)

## Namespace

[Google.Cloud.Dataplex.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.md.txt)

## Assembly

Google.Cloud.Dataplex.V1.dll

## Remarks

Dataplex Universal Catalog Customer Managed Encryption Keys (CMEK) Service

## Properties

### CreateEncryptionConfigOperationsClient

    public virtual OperationsClient CreateEncryptionConfigOperationsClient { get; }

The long-running operations client for `CreateEncryptionConfig`.

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

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

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

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default CmekService scopes.

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

**Remarks** The default CmekService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/dataplex.read-write>

### DeleteEncryptionConfigOperationsClient

    public virtual OperationsClient DeleteEncryptionConfigOperationsClient { get; }

The long-running operations client for `DeleteEncryptionConfig`.

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

### GrpcClient

    public virtual CmekService.CmekServiceClient GrpcClient { get; }

The underlying gRPC CmekService client

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

### 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.md.txt) associated with this client.

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

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

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

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

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

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

### UpdateEncryptionConfigOperationsClient

    public virtual OperationsClient UpdateEncryptionConfigOperationsClient { get; }

The long-running operations client for `UpdateEncryptionConfig`.

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

## Methods

### Create()

    public static CmekServiceClient Create()

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

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

### CreateAsync(CancellationToken)

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

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskCmekServiceClient` | The task representing the created [CmekServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.CmekServiceClient.md.txt). |

### CreateEncryptionConfig(CreateEncryptionConfigRequest, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> CreateEncryptionConfig(CreateEncryptionConfigRequest request, CallSettings callSettings = null)

Create an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateEncryptionConfigRequest request = new gcdv::CreateEncryptionConfigRequest
{
    ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    EncryptionConfigId = "",
    EncryptionConfig = new gcdv::EncryptionConfig(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.CreateEncryptionConfig(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceCreateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfig(OrganizationLocationName, EncryptionConfig, string, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> CreateEncryptionConfig(OrganizationLocationName parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `OrganizationLocationName` Required. The location at which the EncryptionConfig is to be created. |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to create. |
| `encryptionConfigId` | `string` Required. The ID of the \[EncryptionConfig\]\[google.cloud.dataplex.v1.EncryptionConfig\] to create. Currently, only a value of "default" is supported. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.CreateEncryptionConfig(parent, encryptionConfig, encryptionConfigId);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceCreateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfig(string, EncryptionConfig, string, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> CreateEncryptionConfig(string parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location at which the EncryptionConfig is to be created. |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to create. |
| `encryptionConfigId` | `string` Required. The ID of the \[EncryptionConfig\]\[google.cloud.dataplex.v1.EncryptionConfig\] to create. Currently, only a value of "default" is supported. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.CreateEncryptionConfig(parent, encryptionConfig, encryptionConfigId);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceCreateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfigAsync(CreateEncryptionConfigRequest, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(CreateEncryptionConfigRequest request, CallSettings callSettings = null)

Create an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEncryptionConfigRequest request = new gcdv::CreateEncryptionConfigRequest
{
    ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    EncryptionConfigId = "",
    EncryptionConfig = new gcdv::EncryptionConfig(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfigAsync(CreateEncryptionConfigRequest, CancellationToken)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(CreateEncryptionConfigRequest request, CancellationToken cancellationToken)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateEncryptionConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEncryptionConfigRequest request = new gcdv::CreateEncryptionConfigRequest
{
    ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    EncryptionConfigId = "",
    EncryptionConfig = new gcdv::EncryptionConfig(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfigAsync(OrganizationLocationName, EncryptionConfig, string, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(OrganizationLocationName parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `OrganizationLocationName` Required. The location at which the EncryptionConfig is to be created. |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to create. |
| `encryptionConfigId` | `string` Required. The ID of the \[EncryptionConfig\]\[google.cloud.dataplex.v1.EncryptionConfig\] to create. Currently, only a value of "default" is supported. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfigAsync(OrganizationLocationName, EncryptionConfig, string, CancellationToken)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(OrganizationLocationName parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CancellationToken cancellationToken)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `OrganizationLocationName` Required. The location at which the EncryptionConfig is to be created. |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to create. |
| `encryptionConfigId` | `string` Required. The ID of the \[EncryptionConfig\]\[google.cloud.dataplex.v1.EncryptionConfig\] to create. Currently, only a value of "default" is supported. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfigAsync(string, EncryptionConfig, string, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(string parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location at which the EncryptionConfig is to be created. |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to create. |
| `encryptionConfigId` | `string` Required. The ID of the \[EncryptionConfig\]\[google.cloud.dataplex.v1.EncryptionConfig\] to create. Currently, only a value of "default" is supported. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### CreateEncryptionConfigAsync(string, EncryptionConfig, string, CancellationToken)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(string parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CancellationToken cancellationToken)

Create an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location at which the EncryptionConfig is to be created. |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to create. |
| `encryptionConfigId` | `string` Required. The ID of the \[EncryptionConfig\]\[google.cloud.dataplex.v1.EncryptionConfig\] to create. Currently, only a value of "default" is supported. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfig(DeleteEncryptionConfigRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteEncryptionConfig(DeleteEncryptionConfigRequest request, CallSettings callSettings = null)

Delete an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteEncryptionConfigRequest request = new gcdv::DeleteEncryptionConfigRequest
{
    EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
    Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = cmekServiceClient.DeleteEncryptionConfig(request);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceDeleteEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfig(EncryptionConfigName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteEncryptionConfig(EncryptionConfigName name, CallSettings callSettings = null)

Delete an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `EncryptionConfigName` Required. The name of the EncryptionConfig to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = cmekServiceClient.DeleteEncryptionConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceDeleteEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfig(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteEncryptionConfig(string name, CallSettings callSettings = null)

Delete an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the EncryptionConfig to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = cmekServiceClient.DeleteEncryptionConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceDeleteEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest request, CallSettings callSettings = null)

Delete an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEncryptionConfigRequest request = new gcdv::DeleteEncryptionConfigRequest
{
    EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
    Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest request, CancellationToken cancellationToken)

Delete an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteEncryptionConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEncryptionConfigRequest request = new gcdv::DeleteEncryptionConfigRequest
{
    EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
    Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfigAsync(EncryptionConfigName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(EncryptionConfigName name, CallSettings callSettings = null)

Delete an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `EncryptionConfigName` Required. The name of the EncryptionConfig to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfigAsync(EncryptionConfigName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(EncryptionConfigName name, CancellationToken cancellationToken)

Delete an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `EncryptionConfigName` Required. The name of the EncryptionConfig to delete. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfigAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(string name, CallSettings callSettings = null)

Delete an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the EncryptionConfig to delete. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeleteEncryptionConfigAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(string name, CancellationToken cancellationToken)

Delete an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### GetEncryptionConfig(EncryptionConfigName, CallSettings)

    public virtual EncryptionConfig GetEncryptionConfig(EncryptionConfigName name, CallSettings callSettings = null)

Get an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `EncryptionConfigName` Required. The name of the EncryptionConfig to fetch. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
gcdv::EncryptionConfig response = cmekServiceClient.GetEncryptionConfig(name);
```

### GetEncryptionConfig(GetEncryptionConfigRequest, CallSettings)

    public virtual EncryptionConfig GetEncryptionConfig(GetEncryptionConfigRequest request, CallSettings callSettings = null)

Get an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::GetEncryptionConfigRequest request = new gcdv::GetEncryptionConfigRequest
{
    EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
};
// Make the request
gcdv::EncryptionConfig response = cmekServiceClient.GetEncryptionConfig(request);
```

### GetEncryptionConfig(string, CallSettings)

    public virtual EncryptionConfig GetEncryptionConfig(string name, CallSettings callSettings = null)

Get an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the EncryptionConfig to fetch. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
gcdv::EncryptionConfig response = cmekServiceClient.GetEncryptionConfig(name);
```

### GetEncryptionConfigAsync(EncryptionConfigName, CallSettings)

    public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(EncryptionConfigName name, CallSettings callSettings = null)

Get an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `EncryptionConfigName` Required. The name of the EncryptionConfig to fetch. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
```

### GetEncryptionConfigAsync(EncryptionConfigName, CancellationToken)

    public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(EncryptionConfigName name, CancellationToken cancellationToken)

Get an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `EncryptionConfigName` Required. The name of the EncryptionConfig to fetch. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
```

### GetEncryptionConfigAsync(GetEncryptionConfigRequest, CallSettings)

    public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(GetEncryptionConfigRequest request, CallSettings callSettings = null)

Get an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetEncryptionConfigRequest request = new gcdv::GetEncryptionConfigRequest
{
    EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
};
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(request);
```

### GetEncryptionConfigAsync(GetEncryptionConfigRequest, CancellationToken)

    public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(GetEncryptionConfigRequest request, CancellationToken cancellationToken)

Get an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEncryptionConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetEncryptionConfigRequest request = new gcdv::GetEncryptionConfigRequest
{
    EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
};
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(request);
```

### GetEncryptionConfigAsync(string, CallSettings)

    public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(string name, CallSettings callSettings = null)

Get an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the EncryptionConfig to fetch. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
```

### GetEncryptionConfigAsync(string, CancellationToken)

    public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(string name, CancellationToken cancellationToken)

Get an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
```

### ListEncryptionConfigs(ListEncryptionConfigsRequest, CallSettings)

    public virtual PagedEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigs(ListEncryptionConfigsRequest request, CallSettings callSettings = null)

List EncryptionConfigs.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListEncryptionConfigsResponseEncryptionConfig` | A pageable sequence of [EncryptionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.EncryptionConfig.md.txt) resources. |

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::ListEncryptionConfigsRequest request = new gcdv::ListEncryptionConfigsRequest
{
    ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
```

### ListEncryptionConfigs(OrganizationLocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigs(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List EncryptionConfigs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `OrganizationLocationName` Required. The location for which the EncryptionConfig is to be listed. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListEncryptionConfigsResponseEncryptionConfig` | A pageable sequence of [EncryptionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.EncryptionConfig.md.txt) resources. |

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
```

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

    public virtual PagedEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List EncryptionConfigs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location for which the EncryptionConfig is to be listed. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListEncryptionConfigsResponseEncryptionConfig` | A pageable sequence of [EncryptionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.EncryptionConfig.md.txt) resources. |

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
```

### ListEncryptionConfigsAsync(ListEncryptionConfigsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigsAsync(ListEncryptionConfigsRequest request, CallSettings callSettings = null)

List EncryptionConfigs.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListEncryptionConfigsRequest request = new gcdv::ListEncryptionConfigsRequest
{
    ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
```

### ListEncryptionConfigsAsync(OrganizationLocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigsAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List EncryptionConfigs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `OrganizationLocationName` Required. The location for which the EncryptionConfig is to be listed. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
```

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

    public virtual PagedAsyncEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List EncryptionConfigs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location for which the EncryptionConfig is to be listed. |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` 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` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
```

### PollOnceCreateEncryptionConfig(string, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> PollOnceCreateEncryptionConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`CreateEncryptionConfig`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEncryptionConfigOperationMetadata` | The result of polling the operation. |

### PollOnceCreateEncryptionConfigAsync(string, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> PollOnceCreateEncryptionConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateEncryptionConfig`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEncryptionConfigOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeleteEncryptionConfig(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceDeleteEncryptionConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`DeleteEncryptionConfig`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyOperationMetadata` | The result of polling the operation. |

### PollOnceDeleteEncryptionConfigAsync(string, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteEncryptionConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DeleteEncryptionConfig`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateEncryptionConfig(string, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> PollOnceUpdateEncryptionConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`UpdateEncryptionConfig`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEncryptionConfigOperationMetadata` | The result of polling the operation. |

### PollOnceUpdateEncryptionConfigAsync(string, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> PollOnceUpdateEncryptionConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateEncryptionConfig`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEncryptionConfigOperationMetadata` | A task representing the result of polling the operation. |

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.CmekServiceClient.md.txt#Google_Cloud_Dataplex_V1_CmekServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.CmekServiceClient.md.txt#Google_Cloud_Dataplex_V1_CmekServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `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.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.CmekServiceClient.md.txt#Google_Cloud_Dataplex_V1_CmekServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.CmekServiceClient.md.txt#Google_Cloud_Dataplex_V1_CmekServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateEncryptionConfig(EncryptionConfig, FieldMask, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> UpdateEncryptionConfig(EncryptionConfig encryptionConfig, FieldMask updateMask, CallSettings callSettings = null)

Update an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to update. |
| `updateMask` | `FieldMask` Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value). |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.UpdateEncryptionConfig(encryptionConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceUpdateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### UpdateEncryptionConfig(UpdateEncryptionConfigRequest, CallSettings)

    public virtual Operation<EncryptionConfig, OperationMetadata> UpdateEncryptionConfig(UpdateEncryptionConfigRequest request, CallSettings callSettings = null)

Update an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateEncryptionConfigRequest request = new gcdv::UpdateEncryptionConfigRequest
{
    EncryptionConfig = new gcdv::EncryptionConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.UpdateEncryptionConfig(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceUpdateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### UpdateEncryptionConfigAsync(EncryptionConfig, FieldMask, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(EncryptionConfig encryptionConfig, FieldMask updateMask, CallSettings callSettings = null)

Update an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to update. |
| `updateMask` | `FieldMask` Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value). |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(encryptionConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### UpdateEncryptionConfigAsync(EncryptionConfig, FieldMask, CancellationToken)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(EncryptionConfig encryptionConfig, FieldMask updateMask, CancellationToken cancellationToken)

Update an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `encryptionConfig` | `EncryptionConfig` Required. The EncryptionConfig to update. |
| `updateMask` | `FieldMask` Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value). |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(encryptionConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest, CallSettings)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest request, CallSettings callSettings = null)

Update an EncryptionConfig.

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

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateEncryptionConfigRequest request = new gcdv::UpdateEncryptionConfigRequest
{
    EncryptionConfig = new gcdv::EncryptionConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```

### UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest, CancellationToken)

    public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest request, CancellationToken cancellationToken)

Update an EncryptionConfig.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateEncryptionConfigRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateEncryptionConfigRequest request = new gcdv::UpdateEncryptionConfigRequest
{
    EncryptionConfig = new gcdv::EncryptionConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
```