Class: Google::Cloud::Dlp::V2::FieldTransformation
- Inherits:
-
Object
- Object
- Google::Cloud::Dlp::V2::FieldTransformation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/privacy/dlp/v2/dlp.rb
Overview
The transformation to apply to the field.
Instance Attribute Summary collapse
-
#condition ⇒ ::Google::Cloud::Dlp::V2::RecordCondition
Only apply the transformation if the condition evaluates to true for the given
RecordCondition. -
#fields ⇒ ::Array<::Google::Cloud::Dlp::V2::FieldId>
Required.
-
#info_type_transformations ⇒ ::Google::Cloud::Dlp::V2::InfoTypeTransformations
Treat the contents of the field as free text, and selectively transform content that matches an
InfoType. -
#primitive_transformation ⇒ ::Google::Cloud::Dlp::V2::PrimitiveTransformation
Apply the transformation to the entire field.
Instance Attribute Details
#condition ⇒ ::Google::Cloud::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.
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.
3023 3024 3025 3026 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 3023 class FieldTransformation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#fields ⇒ ::Array<::Google::Cloud::Dlp::V2::FieldId>
Returns Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
3023 3024 3025 3026 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 3023 class FieldTransformation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#info_type_transformations ⇒ ::Google::Cloud::Dlp::V2::InfoTypeTransformations
Returns Treat the contents of the field as free text, and selectively
transform content that matches an InfoType.
Note: The following fields are mutually exclusive: info_type_transformations, primitive_transformation. If a field in that set is populated, all other fields in the set will automatically be cleared.
3023 3024 3025 3026 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 3023 class FieldTransformation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#primitive_transformation ⇒ ::Google::Cloud::Dlp::V2::PrimitiveTransformation
Returns Apply the transformation to the entire field.
Note: The following fields are mutually exclusive: primitive_transformation, info_type_transformations. If a field in that set is populated, all other fields in the set will automatically be cleared.
3023 3024 3025 3026 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 3023 class FieldTransformation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |