Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Configuration for determining how redaction of images should occur.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2ImageRedactionConfig

Returns a new instance of GooglePrivacyDlpV2ImageRedactionConfig.



5497
5498
5499
# File 'lib/google/apis/dlp_v2/classes.rb', line 5497

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#info_typeGoogle::Apis::DlpV2::GooglePrivacyDlpV2InfoType

Type of information detected by the API. Corresponds to the JSON property infoType



5483
5484
5485
# File 'lib/google/apis/dlp_v2/classes.rb', line 5483

def info_type
  @info_type
end

#redact_all_textBoolean Also known as: redact_all_text?

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

Returns:

  • (Boolean)


5489
5490
5491
# File 'lib/google/apis/dlp_v2/classes.rb', line 5489

def redact_all_text
  @redact_all_text
end

#redaction_colorGoogle::Apis::DlpV2::GooglePrivacyDlpV2Color

Represents a color in the RGB color space. Corresponds to the JSON property redactionColor



5495
5496
5497
# File 'lib/google/apis/dlp_v2/classes.rb', line 5495

def redaction_color
  @redaction_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5502
5503
5504
5505
5506
# File 'lib/google/apis/dlp_v2/classes.rb', line 5502

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