Class ImageRedactionConfig (3.0.1)

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

Configuration for determining how redaction of images should occur.

Attributes

NameDescription
info_type .storage.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.
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.
redaction_color .dlp.Color
The color to use when redacting content from an image. If not specified, the default is black.