Reference documentation and code samples for the Cloud KMS V1 Client class CryptoKeyVersionTemplate.
A CryptoKeyVersionTemplate specifies the properties to use when creating a new CryptoKeyVersion , either manually with CreateCryptoKeyVersion or automatically as a result of auto-rotation.
Generated from protobuf message google.cloud.kms.v1.CryptoKeyVersionTemplate
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ protection_level
int
ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE .
↳ algorithm
int
Required. Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT .
getProtectionLevel
ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE .
int
setProtectionLevel
ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE .
var
int
$this
getAlgorithm
Required.
Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT .
int
setAlgorithm
Required.
Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT .
var
int
$this