3.27.0 (latest) 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class AutokeyAdminClientImpl : AutokeyAdminClient

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

AutokeyAdmin client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[AutokeyAdminClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_DefaultEndpoint) [AutokeyAdminClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_DefaultScopes) [AutokeyAdminClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ServiceMetadata) [AutokeyAdminClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_CreateAsync_System_Threading_CancellationToken_) [AutokeyAdminClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_Create) [AutokeyAdminClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShutdownDefaultChannelsAsync) [AutokeyAdminClient.UpdateAutokeyConfigAsync(UpdateAutokeyConfigRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_UpdateAutokeyConfigAsync_Google_Cloud_Kms_V1_UpdateAutokeyConfigRequest_System_Threading_CancellationToken_) [AutokeyAdminClient.UpdateAutokeyConfig(AutokeyConfig, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_UpdateAutokeyConfig_Google_Cloud_Kms_V1_AutokeyConfig_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.UpdateAutokeyConfigAsync(AutokeyConfig, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_UpdateAutokeyConfigAsync_Google_Cloud_Kms_V1_AutokeyConfig_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.UpdateAutokeyConfigAsync(AutokeyConfig, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_UpdateAutokeyConfigAsync_Google_Cloud_Kms_V1_AutokeyConfig_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [AutokeyAdminClient.GetAutokeyConfigAsync(GetAutokeyConfigRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfigAsync_Google_Cloud_Kms_V1_GetAutokeyConfigRequest_System_Threading_CancellationToken_) [AutokeyAdminClient.GetAutokeyConfig(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfig_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.GetAutokeyConfigAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfigAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.GetAutokeyConfigAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfigAsync_System_String_System_Threading_CancellationToken_) [AutokeyAdminClient.GetAutokeyConfig(AutokeyConfigName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfig_Google_Cloud_Kms_V1_AutokeyConfigName_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.GetAutokeyConfigAsync(AutokeyConfigName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfigAsync_Google_Cloud_Kms_V1_AutokeyConfigName_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.GetAutokeyConfigAsync(AutokeyConfigName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfigAsync_Google_Cloud_Kms_V1_AutokeyConfigName_System_Threading_CancellationToken_) [AutokeyAdminClient.ShowEffectiveAutokeyConfigAsync(ShowEffectiveAutokeyConfigRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfigAsync_Google_Cloud_Kms_V1_ShowEffectiveAutokeyConfigRequest_System_Threading_CancellationToken_) [AutokeyAdminClient.ShowEffectiveAutokeyConfig(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfig_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.ShowEffectiveAutokeyConfigAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfigAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.ShowEffectiveAutokeyConfigAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfigAsync_System_String_System_Threading_CancellationToken_) [AutokeyAdminClient.ShowEffectiveAutokeyConfig(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfig_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.ShowEffectiveAutokeyConfigAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfigAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AutokeyAdminClient.ShowEffectiveAutokeyConfigAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfigAsync_Google_Api_Gax_ResourceNames_ProjectName_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Kms.V1.dll

## Remarks

Provides interfaces for managing [Cloud KMS
Autokey](https://cloud.google.com/kms/help/autokey) folder-level or
project-level configurations. A configuration is inherited by all descendent
folders and projects. A configuration at a folder or project overrides any
other configurations in its ancestry. Setting a configuration on a folder is
a prerequisite for Cloud KMS Autokey, so that users working in a descendant
project can request provisioned \[CryptoKeys\]\[google.cloud.kms.v1.CryptoKey\],
ready for Customer Managed Encryption Key (CMEK) use, on-demand when using
the dedicated key project mode. This is not required when using the delegated
key management mode for same-project keys.

## Constructors

### AutokeyAdminClientImpl(AutokeyAdminClient, AutokeyAdminSettings, ILogger)

    public AutokeyAdminClientImpl(AutokeyAdmin.AutokeyAdminClient grpcClient, AutokeyAdminSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdmin.AutokeyAdminClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminSettings` The base [AutokeyAdminSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override AutokeyAdmin.AutokeyAdminClient GrpcClient { get; }

The underlying gRPC AutokeyAdmin client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdmin.AutokeyAdminClient` |   |

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

### IAMPolicyClient

    public override IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html` |   |

**Overrides** [AutokeyAdminClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_IAMPolicyClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [AutokeyAdminClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_LocationsClient)

## Methods

### GetAutokeyConfig(GetAutokeyConfigRequest, CallSettings)

    public override AutokeyConfig GetAutokeyConfig(GetAutokeyConfigRequest request, CallSettings callSettings = null)

Returns the \[AutokeyConfig\]\[google.cloud.kms.v1.AutokeyConfig\] for a folder
or project.

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

**Overrides** [AutokeyAdminClient.GetAutokeyConfig(GetAutokeyConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfig_Google_Cloud_Kms_V1_GetAutokeyConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAutokeyConfigAsync(GetAutokeyConfigRequest, CallSettings)

    public override Task<AutokeyConfig> GetAutokeyConfigAsync(GetAutokeyConfigRequest request, CallSettings callSettings = null)

Returns the \[AutokeyConfig\]\[google.cloud.kms.v1.AutokeyConfig\] for a folder
or project.

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

**Overrides** [AutokeyAdminClient.GetAutokeyConfigAsync(GetAutokeyConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_GetAutokeyConfigAsync_Google_Cloud_Kms_V1_GetAutokeyConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### ShowEffectiveAutokeyConfig(ShowEffectiveAutokeyConfigRequest, CallSettings)

    public override ShowEffectiveAutokeyConfigResponse ShowEffectiveAutokeyConfig(ShowEffectiveAutokeyConfigRequest request, CallSettings callSettings = null)

Returns the effective Cloud KMS Autokey configuration for a given project.

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

**Overrides** [AutokeyAdminClient.ShowEffectiveAutokeyConfig(ShowEffectiveAutokeyConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfig_Google_Cloud_Kms_V1_ShowEffectiveAutokeyConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### ShowEffectiveAutokeyConfigAsync(ShowEffectiveAutokeyConfigRequest, CallSettings)

    public override Task<ShowEffectiveAutokeyConfigResponse> ShowEffectiveAutokeyConfigAsync(ShowEffectiveAutokeyConfigRequest request, CallSettings callSettings = null)

Returns the effective Cloud KMS Autokey configuration for a given project.

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

**Overrides** [AutokeyAdminClient.ShowEffectiveAutokeyConfigAsync(ShowEffectiveAutokeyConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_ShowEffectiveAutokeyConfigAsync_Google_Cloud_Kms_V1_ShowEffectiveAutokeyConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAutokeyConfig(UpdateAutokeyConfigRequest, CallSettings)

    public override AutokeyConfig UpdateAutokeyConfig(UpdateAutokeyConfigRequest request, CallSettings callSettings = null)

Updates the \[AutokeyConfig\]\[google.cloud.kms.v1.AutokeyConfig\] for a folder
or a project. The caller must have both `cloudkms.autokeyConfigs.update`
permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy`
permission on the provided key project. A
\[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] creation in the folder's
descendant projects will use this configuration to determine where to
create the resulting \[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\].

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

**Overrides** [AutokeyAdminClient.UpdateAutokeyConfig(UpdateAutokeyConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_UpdateAutokeyConfig_Google_Cloud_Kms_V1_UpdateAutokeyConfigRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAutokeyConfigAsync(UpdateAutokeyConfigRequest, CallSettings)

    public override Task<AutokeyConfig> UpdateAutokeyConfigAsync(UpdateAutokeyConfigRequest request, CallSettings callSettings = null)

Updates the \[AutokeyConfig\]\[google.cloud.kms.v1.AutokeyConfig\] for a folder
or a project. The caller must have both `cloudkms.autokeyConfigs.update`
permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy`
permission on the provided key project. A
\[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] creation in the folder's
descendant projects will use this configuration to determine where to
create the resulting \[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\].

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

**Overrides** [AutokeyAdminClient.UpdateAutokeyConfigAsync(UpdateAutokeyConfigRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyAdminClient#Google_Cloud_Kms_V1_AutokeyAdminClient_UpdateAutokeyConfigAsync_Google_Cloud_Kms_V1_UpdateAutokeyConfigRequest_Google_Api_Gax_Grpc_CallSettings_)