Class: Google::Apis::HealthcareV1::EncryptionSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

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 propertykmsKeyName`

Returns:

  • (String)


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