Class: Google::Apis::HealthcareV1beta1::EncryptionSpec
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::EncryptionSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/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.
2303 2304 2305 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2303 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`
2301 2302 2303 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2301 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2308 2309 2310 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2308 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |