Class ImageRedactionConfig (3.19.0)

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

Configuration for determining how redaction of images should occur.

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

Name Description
info_type google.cloud.dlp_v2.types.InfoType
Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig. This field is a member of oneof_ target.
redact_all_text bool
If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided. This field is a member of oneof_ target.
redaction_color google.cloud.dlp_v2.types.Color
The color to use when redacting content from an image. If not specified, the default is black.