Class: Google::Apis::SpannerV1::CopyBackupEncryptionConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::CopyBackupEncryptionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
Encryption configuration for the copied backup.
Instance Attribute Summary collapse
-
#encryption_type ⇒ String
Required.
-
#kms_key_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CopyBackupEncryptionConfig
constructor
A new instance of CopyBackupEncryptionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CopyBackupEncryptionConfig
Returns a new instance of CopyBackupEncryptionConfig.
890 891 892 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encryption_type ⇒ String
Required. The encryption type of the backup.
Corresponds to the JSON property encryptionType
881 882 883 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 881 def encryption_type @encryption_type end |
#kms_key_name ⇒ String
Optional. The Cloud KMS key that will be used to protect the backup. This
field should be set only when encryption_type is CUSTOMER_MANAGED_ENCRYPTION
.
Values are of the form projects//locations//keyRings//cryptoKeys/
.
Corresponds to the JSON property kmsKeyName
888 889 890 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 888 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
895 896 897 898 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 895 def update!(**args) @encryption_type = args[:encryption_type] if args.key?(:encryption_type) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |