class Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig

Encryption configuration for the restored database.

Attributes

encryption_type[RW]

Required. The encryption type of the restored database. Corresponds to the JSON property `encryptionType` @return [String]

kms_key_name[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 3389
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 3394
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