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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/secretmanager_v1/classes.rb,
lib/google/apis/secretmanager_v1/representations.rb,
lib/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.



300
301
302
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 300

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)


298
299
300
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 298

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



305
306
307
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 305

def update!(**args)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end