Class: Google::Apis::AlloydbV1alpha::EncryptionConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb

Overview

EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionConfig

Returns a new instance of EncryptionConfig.



835
836
837
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 835

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kms_key_nameString

The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[ REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


833
834
835
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 833

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



840
841
842
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 840

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