public sealed class CryptoKeyVersionTemplate : IMessage<CryptoKeyVersionTemplate>, IEquatable<CryptoKeyVersionTemplate>, IDeepCloneable<CryptoKeyVersionTemplate>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class CryptoKeyVersionTemplate.
A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate]
specifies the properties to use when creating a new
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], either manually
with
[CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]
or automatically as a result of auto-rotation.
public CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm Algorithm { get; set; }
Required.
[Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
to use when creating a
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
template.
For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
this field is omitted and
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
public ProtectionLevel ProtectionLevel { get; set; }
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
template. Immutable. Defaults to
[SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
[[["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\u003eThe provided content details the \u003ccode\u003eCryptoKeyVersionTemplate\u003c/code\u003e class within the Google Cloud Key Management Service v1 API, which is used to specify properties for creating new \u003ccode\u003eCryptoKeyVersion\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCryptoKeyVersionTemplate\u003c/code\u003e class can be used to manually create a new \u003ccode\u003eCryptoKeyVersion\u003c/code\u003e or as a part of the automatic key rotation process.\u003c/p\u003e\n"],["\u003cp\u003eThis class is implemented by inheriting from \u003ccode\u003eObject\u003c/code\u003e and implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties for \u003ccode\u003eAlgorithm\u003c/code\u003e and \u003ccode\u003eProtectionLevel\u003c/code\u003e, which define the cryptographic algorithm and the security level to be used for new \u003ccode\u003eCryptoKeyVersion\u003c/code\u003e instances respectively, and is set up using the \u003ccode\u003eCryptoKeyVersionTemplate()\u003c/code\u003e constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides access to historical versions of the \u003ccode\u003eCryptoKeyVersionTemplate\u003c/code\u003e class, from the latest version 3.16.0 to version 2.2.0, with the most recent stable version of the documentation being 3.1.0.\u003c/p\u003e\n"]]],[],null,[]]