Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Request to search for potentially sensitive info in a list of items and replace it with a default or provided content.
Instance Attribute Summary collapse
-
#image_data ⇒ String
The bytes of the image to redact.
-
#image_redaction_configs ⇒ Array<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ImageRedactionConfig>
The configuration for specifying what content to redact from images.
-
#image_type ⇒ String
Type of the content, as defined in Content-Type HTTP header.
-
#inspect_config ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectConfig
Configuration description of the scanning process.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2RedactImageRequest
constructor
A new instance of GooglePrivacyDlpV2beta2RedactImageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2RedactImageRequest
Returns a new instance of GooglePrivacyDlpV2beta2RedactImageRequest
5267 5268 5269 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_data ⇒ String
The bytes of the image to redact.
Corresponds to the JSON property imageData
NOTE: Values are automatically base64 encoded/decoded in the client library.
5247 5248 5249 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5247 def image_data @image_data end |
#image_redaction_configs ⇒ Array<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ImageRedactionConfig>
The configuration for specifying what content to redact from images.
Corresponds to the JSON property imageRedactionConfigs
5252 5253 5254 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5252 def image_redaction_configs @image_redaction_configs end |
#image_type ⇒ String
Type of the content, as defined in Content-Type HTTP header.
Supported types are: PNG, JPEG, SVG, & BMP.
Corresponds to the JSON property imageType
5258 5259 5260 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5258 def image_type @image_type end |
#inspect_config ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectConfig
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
5265 5266 5267 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5265 def inspect_config @inspect_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5272 5273 5274 5275 5276 5277 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5272 def update!(**args) @image_data = args[:image_data] if args.key?(:image_data) @image_redaction_configs = args[:image_redaction_configs] if args.key?(:image_redaction_configs) @image_type = args[:image_type] if args.key?(:image_type) @inspect_config = args[:inspect_config] if args.key?(:inspect_config) end |