Class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKeyVersionTemplate
- Inherits:
-
Object
- Object
- Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKeyVersionTemplate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/kmsinventory_v1/classes.rb,
lib/google/apis/kmsinventory_v1/representations.rb,
lib/google/apis/kmsinventory_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) ⇒ GoogleCloudKmsV1CryptoKeyVersionTemplate
constructor
A new instance of GoogleCloudKmsV1CryptoKeyVersionTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudKmsV1CryptoKeyVersionTemplate
Returns a new instance of GoogleCloudKmsV1CryptoKeyVersionTemplate.
478 479 480 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 478 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
470 471 472 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 470 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
476 477 478 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 476 def protection_level @protection_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
483 484 485 486 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 483 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @protection_level = args[:protection_level] if args.key?(:protection_level) end |