Class RedactImageRequest (3.33.0)

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

Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.

Attributes

Name Description
parent str
Parent resource name. The format of this value varies depending on whether you have `specified a processing location
location_id str
Deprecated. This field has no effect.
inspect_config google.cloud.dlp_v2.types.InspectConfig
Configuration for the inspector.
image_redaction_configs MutableSequence[google.cloud.dlp_v2.types.RedactImageRequest.ImageRedactionConfig]
The configuration for specifying what content to redact from images.
include_findings bool
Whether the response should include findings along with the redacted image.
byte_item google.cloud.dlp_v2.types.ByteContentItem
The content must be PNG, JPEG, SVG or BMP.
inspect_template str
The full resource name of the inspection template to use. Settings in the main inspect_config field override the corresponding settings in this inspection template. The merge behavior is as follows: - Singular field: The main field's value replaces the value of the corresponding field in the template. - Repeated fields: The field values are appended to the list defined in the template. - Sub-messages and groups: The fields are recursively merged.
deidentify_template str
The full resource name of the de-identification template to use. Settings in the main image_redaction_configs field override the corresponding settings in this de-identification template. The request fails if the type of the template's deidentify_config is not image_transformations.

Classes

ImageRedactionConfig

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