Class: Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest
- 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
Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.
Instance Attribute Summary collapse
-
#byte_item ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem
Container for bytes to inspect or redact.
-
#image_redaction_configs ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig>
The configuration for specifying what content to redact from images.
-
#include_findings ⇒ Boolean
(also: #include_findings?)
Whether the response should include findings along with the redacted image.
-
#inspect_config ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig
Configuration description of the scanning process.
-
#location_id ⇒ String
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2RedactImageRequest
constructor
A new instance of GooglePrivacyDlpV2RedactImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2RedactImageRequest
Returns a new instance of GooglePrivacyDlpV2RedactImageRequest.
8040 8041 8042 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8040 def initialize(**args) update!(**args) end |
Instance Attribute Details
#byte_item ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem
Container for bytes to inspect or redact.
Corresponds to the JSON property byteItem
8016 8017 8018 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8016 def byte_item @byte_item end |
#image_redaction_configs ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig>
The configuration for specifying what content to redact from images.
Corresponds to the JSON property imageRedactionConfigs
8021 8022 8023 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8021 def image_redaction_configs @image_redaction_configs end |
#include_findings ⇒ Boolean Also known as: include_findings?
Whether the response should include findings along with the redacted image.
Corresponds to the JSON property includeFindings
8026 8027 8028 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8026 def include_findings @include_findings end |
#inspect_config ⇒ Google::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
8033 8034 8035 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8033 def inspect_config @inspect_config end |
#location_id ⇒ String
Deprecated. This field has no effect.
Corresponds to the JSON property locationId
8038 8039 8040 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8038 def location_id @location_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8045 8046 8047 8048 8049 8050 8051 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8045 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 |