Class: Google::Apis::HealthcareV1beta1::CryptoHashConfig
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::CryptoHashConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
Pseudonymization method that generates surrogates via cryptographic hashing.
Uses SHA-256.
Outputs a base64-encoded representation of the hashed output
(for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=
).
Instance Attribute Summary collapse
-
#crypto_key ⇒ String
An AES 128/192/256 bit key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CryptoHashConfig
constructor
A new instance of CryptoHashConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CryptoHashConfig
Returns a new instance of CryptoHashConfig.
279 280 281 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key ⇒ String
An AES 128/192/256 bit key. Causes the hash to be computed based on this
key. A default key is generated for each Deidentify operation and is used
wherever crypto_key is not specified.
Corresponds to the JSON property cryptoKey
NOTE: Values are automatically base64 encoded/decoded in the client library.
277 278 279 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 277 def crypto_key @crypto_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
284 285 286 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 284 def update!(**args) @crypto_key = args[:crypto_key] if args.key?(:crypto_key) end |