Class: Google::Privacy::Dlp::V2::FieldTransformation
- Inherits:
-
Object
- Object
- Google::Privacy::Dlp::V2::FieldTransformation
- Defined in:
- lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb
Overview
The transformation to apply to the field.
Instance Attribute Summary collapse
-
#condition ⇒ Google::Privacy::Dlp::V2::RecordCondition
Only apply the transformation if the condition evaluates to true for the given +RecordCondition+.
-
#fields ⇒ Array<Google::Privacy::Dlp::V2::FieldId>
Input field(s) to apply the transformation to.
-
#info_type_transformations ⇒ Google::Privacy::Dlp::V2::InfoTypeTransformations
Treat the contents of the field as free text, and selectively transform content that matches an +InfoType+.
-
#primitive_transformation ⇒ Google::Privacy::Dlp::V2::PrimitiveTransformation
Apply the transformation to the entire field.
Instance Attribute Details
#condition ⇒ Google::Privacy::Dlp::V2::RecordCondition
Returns Only apply the transformation if the condition evaluates to true for the given +RecordCondition+. The conditions are allowed to reference fields that are not used in the actual transformation. [optional]
Example Use Cases:
- Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range.
- Redact a field if the date of birth field is greater than 85.
1527 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1527 class FieldTransformation; end |
#fields ⇒ Array<Google::Privacy::Dlp::V2::FieldId>
Returns Input field(s) to apply the transformation to. [required]
1527 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1527 class FieldTransformation; end |
#info_type_transformations ⇒ Google::Privacy::Dlp::V2::InfoTypeTransformations
Returns Treat the contents of the field as free text, and selectively transform content that matches an +InfoType+.
1527 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1527 class FieldTransformation; end |
#primitive_transformation ⇒ Google::Privacy::Dlp::V2::PrimitiveTransformation
Returns Apply the transformation to the entire field.
1527 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1527 class FieldTransformation; end |