Class: Google::Apis::AlloydbV1::EncryptionConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::EncryptionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/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
-
#kms_key_name ⇒ String
The fully-qualified resource name of the KMS key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EncryptionConfig
constructor
A new instance of EncryptionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EncryptionConfig
Returns a new instance of EncryptionConfig.
868 869 870 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 868 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
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
866 867 868 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 866 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
873 874 875 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 873 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |