Class: Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse

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

Results of redacting an image.

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

Returns a new instance of GooglePrivacyDlpV2RedactImageResponse



3777
3778
3779
# File 'generated/google/apis/dlp_v2/classes.rb', line 3777

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

Instance Attribute Details

#extracted_textString

If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image. Corresponds to the JSON property extractedText

Returns:

  • (String)


3769
3770
3771
# File 'generated/google/apis/dlp_v2/classes.rb', line 3769

def extracted_text
  @extracted_text
end

#redacted_imageString

The redacted image. The type will be the same as the original image. Corresponds to the JSON property redactedImage NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3775
3776
3777
# File 'generated/google/apis/dlp_v2/classes.rb', line 3775

def redacted_image
  @redacted_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3782
3783
3784
3785
# File 'generated/google/apis/dlp_v2/classes.rb', line 3782

def update!(**args)
  @extracted_text = args[:extracted_text] if args.key?(:extracted_text)
  @redacted_image = args[:redacted_image] if args.key?(:redacted_image)
end