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 AutokeyConfig : IMessage<AutokeyConfig>, IEquatable<AutokeyConfig>, IDeepCloneable<AutokeyConfig>, IBufferMessage, IMessage

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

Cloud KMS Autokey configuration for a folder.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutokeyConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutokeyConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutokeyConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

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

## Constructors

### AutokeyConfig()

    public AutokeyConfig()

### AutokeyConfig(AutokeyConfig)

    public AutokeyConfig(AutokeyConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig` |

## Properties

### AutokeyConfigName

    public AutokeyConfigName AutokeyConfigName { get; set; }

[AutokeyConfigName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfigName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig#Google_Cloud_Kms_V1_AutokeyConfig_Name) resource name property.

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

### Etag

    public string Etag { get; set; }

Optional. A checksum computed by the server based on the value of other
fields. This may be sent on update requests to ensure that the client has
an up-to-date value before proceeding. The request will be rejected with an
ABORTED error on a mismatched etag.

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

### KeyProject

    public string KeyProject { get; set; }

Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] when a
\[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] is created. On
\[UpdateAutokeyConfig\]\[google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig\],
the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
this key project. Once configured, for Cloud KMS Autokey to function
properly, this key project must have the Cloud KMS API activated and the
Cloud KMS Service Agent for this key project must be granted the
`cloudkms.admin` role (or pertinent permissions). A request with an empty
key project field will clear the configuration.

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

### KeyProjectResolutionMode

    public AutokeyConfig.Types.KeyProjectResolutionMode KeyProjectResolutionMode { get; set; }

Optional. KeyProjectResolutionMode for the AutokeyConfig.
Valid values are `DEDICATED_KEY_PROJECT`, `RESOURCE_PROJECT`, or
`DISABLED`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig.Types.KeyProjectResolutionMode` |   |

### Name

    public string Name { get; set; }

Identifier. Name of the \[AutokeyConfig\]\[google.cloud.kms.v1.AutokeyConfig\]
resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or
`projects/{PROJECT_NUMBER}/autokeyConfig`.

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

### State

    public AutokeyConfig.Types.State State { get; set; }

Output only. The state for the AutokeyConfig.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig.Types.State` |   |