Class: Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
- 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
-
#extracted_text ⇒ String
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.
-
#inspect_result ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectResult
All the findings for a single scanned item.
-
#redacted_image ⇒ String
The redacted image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2RedactImageResponse
constructor
A new instance of GooglePrivacyDlpV2RedactImageResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2RedactImageResponse
Returns a new instance of GooglePrivacyDlpV2RedactImageResponse.
5123 5124 5125 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#extracted_text ⇒ String
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
5110 5111 5112 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5110 def extracted_text @extracted_text end |
#inspect_result ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectResult
All the findings for a single scanned item.
Corresponds to the JSON property inspectResult
5115 5116 5117 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5115 def inspect_result @inspect_result end |
#redacted_image ⇒ String
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.
5121 5122 5123 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5121 def redacted_image @redacted_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5128 5129 5130 5131 5132 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5128 def update!(**args) @extracted_text = args[:extracted_text] if args.key?(:extracted_text) @inspect_result = args[:inspect_result] if args.key?(:inspect_result) @redacted_image = args[:redacted_image] if args.key?(:redacted_image) end |