Class: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate
- Defined in:
- generated/google/apis/cloudkms_v1/classes.rb,
generated/google/apis/cloudkms_v1/representations.rb,
generated/google/apis/cloudkms_v1/representations.rb
Overview
A CryptoKeyVersionTemplate specifies the properties to use when creating a new CryptoKeyVersion, either manually with CreateCryptoKeyVersion or automatically as a result of auto-rotation.
Instance Attribute Summary collapse
-
#algorithm ⇒ String
Required.
-
#protection_level ⇒ String
ProtectionLevel to use when creating a CryptoKeyVersion based on this template.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CryptoKeyVersionTemplate
constructor
A new instance of CryptoKeyVersionTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CryptoKeyVersionTemplate
Returns a new instance of CryptoKeyVersionTemplate.
532 533 534 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 532 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
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
524 525 526 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 524 def algorithm @algorithm end |
#protection_level ⇒ String
ProtectionLevel to use when creating a CryptoKeyVersion based on
this template. Immutable. Defaults to SOFTWARE.
Corresponds to the JSON property protectionLevel
530 531 532 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 530 def protection_level @protection_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
537 538 539 540 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 537 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @protection_level = args[:protection_level] if args.key?(:protection_level) end |