Class: Google::Apis::SecretmanagerV1::CustomerManagedEncryption
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::CustomerManagedEncryption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/secretmanager_v1/classes.rb,
generated/google/apis/secretmanager_v1/representations.rb,
generated/google/apis/secretmanager_v1/representations.rb
Overview
Configuration for encrypting secret payloads using customer-managed encryption keys (CMEK).
Instance Attribute Summary collapse
-
#kms_key_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomerManagedEncryption
constructor
A new instance of CustomerManagedEncryption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomerManagedEncryption
Returns a new instance of CustomerManagedEncryption.
270 271 272 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 270 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
payloads. For secrets using the UserManaged replication policy type, Cloud KMS
CryptoKeys must reside in the same location as the replica location. For
secrets using the Automatic replication policy type, Cloud KMS CryptoKeys must
reside in global
. The expected format is projects/*/locations/*/keyRings/*/
cryptoKeys/*
.
Corresponds to the JSON property kmsKeyName
268 269 270 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 268 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
275 276 277 |
# File 'generated/google/apis/secretmanager_v1/classes.rb', line 275 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |