Class: Google::Apis::SpannerV1::EncryptionConfig

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 a Cloud Spanner database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionConfig

Returns a new instance of EncryptionConfig.



1184
1185
1186
# File 'lib/google/apis/spanner_v1/classes.rb', line 1184

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kms_key_nameString

The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form projects//locations//keyRings//cryptoKeys/. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


1182
1183
1184
# File 'lib/google/apis/spanner_v1/classes.rb', line 1182

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1189
1190
1191
# File 'lib/google/apis/spanner_v1/classes.rb', line 1189

def update!(**args)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end