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.



2779
2780
2781
# File 'lib/google/apis/spanner_v1/classes.rb', line 2779

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)


2769
2770
2771
# File 'lib/google/apis/spanner_v1/classes.rb', line 2769

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)


2777
2778
2779
# File 'lib/google/apis/spanner_v1/classes.rb', line 2777

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2784
2785
2786
2787
# File 'lib/google/apis/spanner_v1/classes.rb', line 2784

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