Class: Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig
- 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 restored database.
Instance Attribute Summary collapse
-
#encryption_type ⇒ String
Required.
-
#kms_key_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreDatabaseEncryptionConfig
constructor
A new instance of RestoreDatabaseEncryptionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreDatabaseEncryptionConfig
Returns a new instance of RestoreDatabaseEncryptionConfig.
3735 3736 3737 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3735 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encryption_type ⇒ String
Required. The encryption type of the restored database.
Corresponds to the JSON property encryptionType
3725 3726 3727 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3725 def encryption_type @encryption_type end |
#kms_key_name ⇒ String
Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
database. 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
3733 3734 3735 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3733 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3740 3741 3742 3743 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3740 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 |