Class: Google::Apis::HealthcareV1::InfoTypeTransformation
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::InfoTypeTransformation
- 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
Overview
A transformation to apply to text that is identified as a specific info_type.
Instance Attribute Summary collapse
-
#character_mask_config ⇒ Google::Apis::HealthcareV1::CharacterMaskConfig
Mask a string by replacing its characters with a fixed character.
-
#crypto_hash_config ⇒ Google::Apis::HealthcareV1::CryptoHashConfig
Pseudonymization method that generates surrogates via cryptographic hashing.
-
#date_shift_config ⇒ Google::Apis::HealthcareV1::DateShiftConfig
Shift a date forward or backward in time by a random amount which is consistent for a given patient and crypto key combination.
-
#info_types ⇒ Array<String>
InfoTypes to apply this transformation to.
-
#redact_config ⇒ Google::Apis::HealthcareV1::RedactConfig
Define how to redact sensitive values.
-
#replace_with_info_type_config ⇒ Google::Apis::HealthcareV1::ReplaceWithInfoTypeConfig
When using the INSPECT_AND_TRANSFORM action, each match is replaced with the name of the info_type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InfoTypeTransformation
constructor
A new instance of InfoTypeTransformation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InfoTypeTransformation
Returns a new instance of InfoTypeTransformation.
3100 3101 3102 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#character_mask_config ⇒ Google::Apis::HealthcareV1::CharacterMaskConfig
Mask a string by replacing its characters with a fixed character.
Corresponds to the JSON property characterMaskConfig
3066 3067 3068 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3066 def character_mask_config @character_mask_config end |
#crypto_hash_config ⇒ Google::Apis::HealthcareV1::CryptoHashConfig
Pseudonymization method that generates surrogates via cryptographic hashing.
Uses SHA-256. Outputs a base64-encoded representation of the hashed output (
for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=
).
Corresponds to the JSON property cryptoHashConfig
3073 3074 3075 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3073 def crypto_hash_config @crypto_hash_config end |
#date_shift_config ⇒ Google::Apis::HealthcareV1::DateShiftConfig
Shift a date forward or backward in time by a random amount which is
consistent for a given patient and crypto key combination.
Corresponds to the JSON property dateShiftConfig
3079 3080 3081 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3079 def date_shift_config @date_shift_config end |
#info_types ⇒ Array<String>
InfoTypes to apply this transformation to. If this is not specified, the
transformation applies to any info_type.
Corresponds to the JSON property infoTypes
3085 3086 3087 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3085 def info_types @info_types end |
#redact_config ⇒ Google::Apis::HealthcareV1::RedactConfig
Define how to redact sensitive values. Default behaviour is erase. For example,
"My name is Jane." becomes "My name is ."
Corresponds to the JSON property redactConfig
3091 3092 3093 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3091 def redact_config @redact_config end |
#replace_with_info_type_config ⇒ Google::Apis::HealthcareV1::ReplaceWithInfoTypeConfig
When using the INSPECT_AND_TRANSFORM action, each match is replaced with the
name of the info_type. For example, "My name is Jane" becomes "My name is [
PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
Corresponds to the JSON property replaceWithInfoTypeConfig
3098 3099 3100 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3098 def replace_with_info_type_config @replace_with_info_type_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3105 3106 3107 3108 3109 3110 3111 3112 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3105 def update!(**args) @character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config) @crypto_hash_config = args[:crypto_hash_config] if args.key?(:crypto_hash_config) @date_shift_config = args[:date_shift_config] if args.key?(:date_shift_config) @info_types = args[:info_types] if args.key?(:info_types) @redact_config = args[:redact_config] if args.key?(:redact_config) @replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config) end |