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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eAutokeyConfig\u003c/code\u003e class within the Google Cloud Key Management Service v1 API, specifically for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eAutokeyConfig\u003c/code\u003e class is 3.16.0, with historical versions available, including releases back to version 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAutokeyConfig\u003c/code\u003e is a class used for Cloud KMS Autokey configuration in a folder, which implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAutokeyConfig\u003c/code\u003e class includes properties like \u003ccode\u003eAutokeyConfigName\u003c/code\u003e, \u003ccode\u003eKeyProject\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eState\u003c/code\u003e, which are used to manage the Autokey settings and status.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default constructor and one that takes an existing \u003ccode\u003eAutokeyConfig\u003c/code\u003e object to clone.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Key Management Service v1 API - Class AutokeyConfig (3.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.17.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.16.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.15.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.14.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.13.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.12.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.11.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.10.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.9.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.8.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.7.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.6.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.5.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.4.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.3.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.2.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.1.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.0.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.9.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.8.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.7.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.6.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.5.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.4.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.3.0/Google.Cloud.Kms.V1.AutokeyConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.2.0/Google.Cloud.Kms.V1.AutokeyConfig) \n\n public sealed class AutokeyConfig : IMessage\u003cAutokeyConfig\u003e, IEquatable\u003cAutokeyConfig\u003e, IDeepCloneable\u003cAutokeyConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Key Management Service v1 API class AutokeyConfig.\n\nCloud KMS Autokey configuration for a folder. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutokeyConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutokeyConfig](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutokeyConfig](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Kms.V1](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Kms.V1.dll\n\nConstructors\n------------\n\n### AutokeyConfig()\n\n public AutokeyConfig()\n\n### AutokeyConfig(AutokeyConfig)\n\n public AutokeyConfig(AutokeyConfig other)\n\nProperties\n----------\n\n### AutokeyConfigName\n\n public AutokeyConfigName AutokeyConfigName { get; set; }\n\n[AutokeyConfigName](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfigName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AutokeyConfig#Google_Cloud_Kms_V1_AutokeyConfig_Name) resource name property.\n\n### Etag\n\n public string Etag { get; set; }\n\nOptional. A checksum computed by the server based on the value of other\nfields. This may be sent on update requests to ensure that the client has\nan up-to-date value before proceeding. The request will be rejected with an\nABORTED error on a mismatched etag.\n\n### KeyProject\n\n public string KeyProject { get; set; }\n\nOptional. Name of the key project, e.g. `projects/{PROJECT_ID}` or\n`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new\n\\[CryptoKey\\]\\[google.cloud.kms.v1.CryptoKey\\] when a\n\\[KeyHandle\\]\\[google.cloud.kms.v1.KeyHandle\\] is created. On\n\\[UpdateAutokeyConfig\\]\\[google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig\\],\nthe caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on\nthis key project. Once configured, for Cloud KMS Autokey to function\nproperly, this key project must have the Cloud KMS API activated and the\nCloud KMS Service Agent for this key project must be granted the\n`cloudkms.admin` role (or pertinent permissions). A request with an empty\nkey project field will clear the configuration.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Name of the \\[AutokeyConfig\\]\\[google.cloud.kms.v1.AutokeyConfig\\]\nresource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.\n\n### State\n\n public AutokeyConfig.Types.State State { get; set; }\n\nOutput only. The state for the AutokeyConfig."]]