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
more...

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.

[View source]

1777
1778
1779
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1777

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)

1775
1776
1777
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1775

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1782
1783
1784
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1782

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