Class FieldTransformation (3.12.0)

FieldTransformation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The transformation to apply to the field.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
fields MutableSequence[google.cloud.dlp_v2.types.FieldId]
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".
condition google.cloud.dlp_v2.types.RecordCondition
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.
primitive_transformation google.cloud.dlp_v2.types.PrimitiveTransformation
Apply the transformation to the entire field. This field is a member of oneof_ transformation.
info_type_transformations google.cloud.dlp_v2.types.InfoTypeTransformations
Treat the contents of the field as free text, and selectively transform content that matches an InfoType. This field is a member of oneof_ transformation.