Class: Google::Apis::SpannerV1::EncryptionConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::EncryptionConfig
- 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
-
#kms_key_name ⇒ String
The Cloud KMS key to be used for encrypting and decrypting the database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EncryptionConfig
constructor
A new instance of EncryptionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EncryptionConfig
Returns a new instance of EncryptionConfig.
1054 1055 1056 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1054 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
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
1052 1053 1054 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1052 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1059 1060 1061 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1059 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |