Class: Google::Apis::HealthcareV1::EncryptionSpec
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::EncryptionSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb
Overview
Represents a customer-managed encryption key spec that can be applied to a resource.
Instance Attribute Summary collapse
-
#kms_key_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EncryptionSpec
constructor
A new instance of EncryptionSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EncryptionSpec
Returns a new instance of EncryptionSpec.
1339 1340 1341 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1339 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
Required. The resource name of customer-managed encryption key that is used to
secure a resource and its sub-resources. Only the key in the same location as
this Dataset is allowed to be used for encryption. Format is: projects/
project/locations/
location/keyRings/
keyRing/cryptoKeys/
key`
Corresponds to the JSON property
kmsKeyName`
1337 1338 1339 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1337 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1344 1345 1346 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1344 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |