Class: Google::Apis::HealthcareV1beta1::DateShiftConfig
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::DateShiftConfig
- 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
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
-
#crypto_key ⇒ String
An AES 128/192/256 bit key.
-
#kms_wrapped ⇒ Google::Apis::HealthcareV1beta1::KmsWrappedCryptoKey
Include to use an existing data crypto key wrapped by KMS.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateShiftConfig
constructor
A new instance of DateShiftConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DateShiftConfig
Returns a new instance of DateShiftConfig.
1659 1660 1661 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1659 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key ⇒ String
An AES 128/192/256 bit key. The date shift is computed based on this key and
the patient ID. If the patient ID is empty for a DICOM resource, the date
shift is computed based on this key and the study instance UID. If crypto_key
is not set, then kms_wrapped is used to calculate the date shift. If neither
is set, a default key is generated for each de-identify operation. Must not be
set if kms_wrapped is set.
Corresponds to the JSON property cryptoKey
NOTE: Values are automatically base64 encoded/decoded in the client library.
1648 1649 1650 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1648 def crypto_key @crypto_key end |
#kms_wrapped ⇒ Google::Apis::HealthcareV1beta1::KmsWrappedCryptoKey
Include to use an existing data crypto key wrapped by KMS. The wrapped key
must be a 128-, 192-, or 256-bit key. The key must grant the Cloud IAM
permission cloudkms.cryptoKeyVersions.useToDecrypt
to the project's Cloud
Healthcare Service Agent service account. For more information, see Creating
a wrapped key.
Corresponds to the JSON property kmsWrapped
1657 1658 1659 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1657 def kms_wrapped @kms_wrapped end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1664 1665 1666 1667 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1664 def update!(**args) @crypto_key = args[:crypto_key] if args.key?(:crypto_key) @kms_wrapped = args[:kms_wrapped] if args.key?(:kms_wrapped) end |