class Google::Apis::CloudkmsV1::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.

Attributes

algorithm[RW]

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. Corresponds to the JSON property `algorithm` @return [String]

protection_level[RW]

ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE. Corresponds to the JSON property `protectionLevel` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudkms_v1/classes.rb, line 620
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudkms_v1/classes.rb, line 625
def update!(**args)
  @algorithm = args[:algorithm] if args.key?(:algorithm)
  @protection_level = args[:protection_level] if args.key?(:protection_level)
end