class Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig

Configuration for determining how redaction of images should occur.

Attributes

info_type[RW]

Type of information detected by the API. Corresponds to the JSON property `infoType` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]

redact_all_text[RW]

If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided. Corresponds to the JSON property `redactAllText` @return [Boolean]

redact_all_text?[RW]

If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided. Corresponds to the JSON property `redactAllText` @return [Boolean]

redaction_color[RW]

Represents a color in the RGB color space. Corresponds to the JSON property `redactionColor` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Color]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 2924
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 2929
def update!(**args)
  @info_type = args[:info_type] if args.key?(:info_type)
  @redact_all_text = args[:redact_all_text] if args.key?(:redact_all_text)
  @redaction_color = args[:redaction_color] if args.key?(:redaction_color)
end