class Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest

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

Attributes

byte_item[RW]

Container for bytes to inspect or redact. Corresponds to the JSON property `byteItem` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem]

image_redaction_configs[RW]

The configuration for specifying what content to redact from images. Corresponds to the JSON property `imageRedactionConfigs` @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig>]

include_findings[RW]

Whether the response should include findings along with the redacted image. Corresponds to the JSON property `includeFindings` @return [Boolean]

include_findings?[RW]

Whether the response should include findings along with the redacted image. Corresponds to the JSON property `includeFindings` @return [Boolean]

inspect_config[RW]

Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used. Corresponds to the JSON property `inspectConfig` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig]

location_id[RW]

Deprecated. This field has no effect. Corresponds to the JSON property `locationId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 5100
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dlp_v2/classes.rb, line 5105
def update!(**args)
  @byte_item = args[:byte_item] if args.key?(:byte_item)
  @image_redaction_configs = args[:image_redaction_configs] if args.key?(:image_redaction_configs)
  @include_findings = args[:include_findings] if args.key?(:include_findings)
  @inspect_config = args[:inspect_config] if args.key?(:inspect_config)
  @location_id = args[:location_id] if args.key?(:location_id)
end