Class: Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

Required. The encryption type of the restored database. Corresponds to the JSON property encryptionType

Returns:

  • (String)


3725
3726
3727
# File 'lib/google/apis/spanner_v1/classes.rb', line 3725

def encryption_type
  @encryption_type
end

#kms_key_nameString

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

Returns:

  • (String)


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