Class: Google::Apis::PrivatecaV1::EncryptionSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/privateca_v1/classes.rb,
lib/google/apis/privateca_v1/representations.rb,
lib/google/apis/privateca_v1/representations.rb

Overview

The configuration used for encrypting data at rest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionSpec

Returns a new instance of EncryptionSpec.



1216
1217
1218
# File 'lib/google/apis/privateca_v1/classes.rb', line 1216

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

Instance Attribute Details

#cloud_kms_keyString

The resource name for a Cloud KMS key in the format projects/*/locations/*/ keyRings/*/cryptoKeys/*. Corresponds to the JSON property cloudKmsKey

Returns:

  • (String)


1214
1215
1216
# File 'lib/google/apis/privateca_v1/classes.rb', line 1214

def cloud_kms_key
  @cloud_kms_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1221
1222
1223
# File 'lib/google/apis/privateca_v1/classes.rb', line 1221

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