Class: Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest

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

Overview

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

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) ⇒ GooglePrivacyDlpV2RedactImageRequest

Returns a new instance of GooglePrivacyDlpV2RedactImageRequest.



5272
5273
5274
# File 'generated/google/apis/dlp_v2/classes.rb', line 5272

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

Instance Attribute Details

#byte_itemGoogle::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem

Container for bytes to inspect or redact. Corresponds to the JSON property byteItem



5244
5245
5246
# File 'generated/google/apis/dlp_v2/classes.rb', line 5244

def byte_item
  @byte_item
end

#image_redaction_configsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig>

The configuration for specifying what content to redact from images. Corresponds to the JSON property imageRedactionConfigs



5249
5250
5251
# File 'generated/google/apis/dlp_v2/classes.rb', line 5249

def image_redaction_configs
  @image_redaction_configs
end

#include_findingsBoolean Also known as: include_findings?

Whether the response should include findings along with the redacted image. Corresponds to the JSON property includeFindings

Returns:

  • (Boolean)


5255
5256
5257
# File 'generated/google/apis/dlp_v2/classes.rb', line 5255

def include_findings
  @include_findings
end

#inspect_configGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig

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



5263
5264
5265
# File 'generated/google/apis/dlp_v2/classes.rb', line 5263

def inspect_config
  @inspect_config
end

#location_idString

The geographic location to process the request. Reserved for future extensions. Location is restricted to 'global', 'us', 'asia', and 'europe'. Corresponds to the JSON property locationId

Returns:

  • (String)


5270
5271
5272
# File 'generated/google/apis/dlp_v2/classes.rb', line 5270

def location_id
  @location_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5277
5278
5279
5280
5281
5282
5283
# File 'generated/google/apis/dlp_v2/classes.rb', line 5277

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