Reference documentation and code samples for the Data Loss Prevention V2 Client class RedactImageRequest.
Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.
Generated from protobuf message google.privacy.dlp.v2.RedactImageRequest
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Parent resource name. The format of this value varies depending on whether you have specified a processing location
: + Projects scope, location specified: projects/{project_id}/locations/{location_id}
+ Projects scope, no location specified (defaults to global): projects/{project_id}
The following example parent
string specifies a parent project with the identifier example-project
, and specifies the europe-west3
location for processing data: parent=projects/example-project/locations/europe-west3
↳ location_id
string
Deprecated. This field has no effect.
↳ inspect_config
↳ image_redaction_configs
array< 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
getParent
Parent resource name.
The format of this value varies depending on whether you have specified a processing location :
- Projects scope, location specified:
projects/{project_id}/locations/{location_id}
- Projects scope, no location specified (defaults to global):
projects/{project_id}
The following exampleparent
string specifies a parent project with the identifierexample-project
, and specifies theeurope-west3
location for processing data: parent=projects/example-project/locations/europe-west3
string
setParent
Parent resource name.
The format of this value varies depending on whether you have specified a processing location :
- Projects scope, location specified:
projects/{project_id}/locations/{location_id}
- Projects scope, no location specified (defaults to global):
projects/{project_id}
The following exampleparent
string specifies a parent project with the identifierexample-project
, and specifies theeurope-west3
location for processing data: parent=projects/example-project/locations/europe-west3
var
string
$this
getLocationId
Deprecated. This field has no effect.
string
setLocationId
Deprecated. This field has no effect.
var
string
$this
getInspectConfig
Configuration for the inspector.
hasInspectConfig
clearInspectConfig
setInspectConfig
Configuration for the inspector.
$this
getImageRedactionConfigs
The configuration for specifying what content to redact from images.
setImageRedactionConfigs
The configuration for specifying what content to redact from images.
$this
getIncludeFindings
Whether the response should include findings along with the redacted image.
bool
setIncludeFindings
Whether the response should include findings along with the redacted image.
var
bool
$this
getByteItem
The content must be PNG, JPEG, SVG or BMP.
hasByteItem
clearByteItem
setByteItem
The content must be PNG, JPEG, SVG or BMP.
$this