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 static class Autokey

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

Provides interfaces for using [Cloud KMS
Autokey](https://cloud.google.com/kms/help/autokey) to provision new
\[CryptoKeys\]\[google.cloud.kms.v1.CryptoKey\], ready for Customer Managed
Encryption Key (CMEK) use, on-demand. To support certain client tooling, this
feature is modeled around a \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\]
resource: creating a \[KeyHandle\]\[google.cloud.kms.v1.KeyHandle\] in a resource
project and given location triggers Cloud KMS Autokey to provision a
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] in the configured key project and
the same location.

Prior to use in a given resource project,
\[UpdateAutokeyConfig\]\[google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig\]
should have been called on an ancestor folder, setting the key project where
Cloud KMS Autokey should create new
\[CryptoKeys\]\[google.cloud.kms.v1.CryptoKey\]. See documentation for additional
prerequisites. To check what key project, if any, is currently configured on
a resource project's ancestor folder, see
\[ShowEffectiveAutokeyConfig\]\[google.cloud.kms.v1.AutokeyAdmin.ShowEffectiveAutokeyConfig\].

## Inheritance

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

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

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

## Methods

### BindService(AutokeyBase)

    public static ServerServiceDefinition BindService(Autokey.AutokeyBase serviceImpl)

Creates service definition that can be registered with a server

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `serviceImpl` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokeyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokey.AutokeyBase` An object implementing the server-side handling logic. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerServiceDefinition.html` |   |

### BindService(ServiceBinderBase, AutokeyBase)

    public static void BindService(ServiceBinderBase serviceBinder, Autokey.AutokeyBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceBinder` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServiceBinderBase.html` Service methods will be bound by calling `AddMethod` on this object. |
| `serviceImpl` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokeyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.Autokey.AutokeyBase` An object implementing the server-side handling logic. |