Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageRedactionConfig

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

Overview

Configuration for determing how redaction of images should occur.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta1ImageRedactionConfig

Returns a new instance of GooglePrivacyDlpV2beta1ImageRedactionConfig



1294
1295
1296
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1294

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

Instance Attribute Details

#info_typeGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType

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



1280
1281
1282
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1280

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. Corresponds to the JSON property redactAllText

Returns:

  • (Boolean)


1286
1287
1288
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1286

def redact_all_text
  @redact_all_text
end

#redaction_colorGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Color

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



1292
1293
1294
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1292

def redaction_color
  @redaction_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1299
1300
1301
1302
1303
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1299

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