Class TransformationErrorHandling (3.7.0)

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

How to handle transformation errors during de-identification. A transformation error occurs when the requested transformation is incompatible with the data. For example, trying to de-identify an IP address using a DateShift transformation would result in a transformation error, since date info cannot be extracted from an IP address. Information about any incompatible transformations, and how they were handled, is returned in the response as part of the TransformationOverviews.

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
throw_error google.cloud.dlp_v2.types.TransformationErrorHandling.ThrowError
Throw an error This field is a member of `oneof`_ ``mode``.
leave_untransformed google.cloud.dlp_v2.types.TransformationErrorHandling.LeaveUntransformed
Ignore errors This field is a member of `oneof`_ ``mode``.

Inheritance

builtins.object > proto.message.Message > TransformationErrorHandling

Classes

LeaveUntransformed

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

Skips the data without modifying it if the requested transformation would cause an error. For example, if a DateShift transformation were applied an an IP address, this mode would leave the IP address unchanged in the response.

ThrowError

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

Throw an error and fail the request when a transformation error occurs.