Class: Google::Apis::SecretmanagerV1::CustomerManagedEncryption

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

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

Returns:

  • (String)


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