Class: Google::Apis::HealthcareV1beta1::EncryptionSpec

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

Instance Method Summary collapse

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_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)


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