Class: Google::Privacy::Dlp::V2beta1::FieldTransformation
- Inherits:
-
Object
- Object
- Google::Privacy::Dlp::V2beta1::FieldTransformation
- Defined in:
- lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb
Overview
The transformation to apply to the field.
Instance Attribute Summary collapse
-
#condition ⇒ Google::Privacy::Dlp::V2beta1::RecordCondition
Only apply the transformation if the condition evaluates to true for the given +RecordCondition+.
-
#fields ⇒ Array<Google::Privacy::Dlp::V2beta1::FieldId>
Input field(s) to apply the transformation to.
-
#info_type_transformations ⇒ Google::Privacy::Dlp::V2beta1::InfoTypeTransformations
Treat the contents of the field as free text, and selectively transform content that matches an +InfoType+.
-
#primitive_transformation ⇒ Google::Privacy::Dlp::V2beta1::PrimitiveTransformation
Apply the transformation to the entire field.
Instance Attribute Details
#condition ⇒ Google::Privacy::Dlp::V2beta1::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.
1069 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069 class FieldTransformation; end |
#fields ⇒ Array<Google::Privacy::Dlp::V2beta1::FieldId>
Returns Input field(s) to apply the transformation to. [required]
1069 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069 class FieldTransformation; end |
#info_type_transformations ⇒ Google::Privacy::Dlp::V2beta1::InfoTypeTransformations
Returns Treat the contents of the field as free text, and selectively transform content that matches an +InfoType+.
1069 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069 class FieldTransformation; end |
#primitive_transformation ⇒ Google::Privacy::Dlp::V2beta1::PrimitiveTransformation
Returns Apply the transformation to the entire field.
1069 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069 class FieldTransformation; end |