Class: Google::Apis::HealthcareV1beta1::DateShiftConfig

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

Shift a date forward or backward in time by a random amount which is consistent for a given patient and crypto key combination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DateShiftConfig

Returns a new instance of DateShiftConfig.


470
471
472
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 470

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#crypto_keyString

An AES 128/192/256 bit key. Causes the shift to be computed based on this key and the patient ID. 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.

Returns:

  • (String)

468
469
470
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 468

def crypto_key
  @crypto_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


475
476
477
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 475

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