Class: Google::Privacy::Dlp::V2beta1::RedactContentRequest
- Inherits:
-
Object
- Object
- Google::Privacy::Dlp::V2beta1::RedactContentRequest
- Defined in:
- lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb
Overview
Request to search for potentially sensitive info in a list of items and replace it with a default or provided content.
Defined Under Namespace
Classes: ImageRedactionConfig, ReplaceConfig
Instance Attribute Summary collapse
-
#image_redaction_configs ⇒ Array<Google::Privacy::Dlp::V2beta1::RedactContentRequest::ImageRedactionConfig>
The configuration for specifying what content to redact from images.
-
#inspect_config ⇒ Google::Privacy::Dlp::V2beta1::InspectConfig
Configuration for the inspector.
-
#items ⇒ Array<Google::Privacy::Dlp::V2beta1::ContentItem>
The list of items to inspect.
-
#replace_configs ⇒ Array<Google::Privacy::Dlp::V2beta1::RedactContentRequest::ReplaceConfig>
The strings to replace findings text findings with.
Instance Attribute Details
#image_redaction_configs ⇒ Array<Google::Privacy::Dlp::V2beta1::RedactContentRequest::ImageRedactionConfig>
Returns The configuration for specifying what content to redact from images.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 205 class RedactContentRequest # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Type of information to replace. Only one ReplaceConfig per info_type # should be provided. If ReplaceConfig does not have an info_type, the DLP # API matches it against all info_types that are found but not specified in # another ReplaceConfig. # @!attribute [rw] replace_with # @return [String] # Content replacing sensitive information of given type. Max 256 chars. class ReplaceConfig; end # Configuration for determining how redaction of images should occur. # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Only one per info_type should be provided per request. If not # specified, and redact_all_text is false, the DLP API will redact all # text that it matches against all info_types that are found, but not # specified in another ImageRedactionConfig. # @!attribute [rw] redact_all_text # @return [true, false] # If true, all text found in the image, regardless whether it matches an # info_type, is redacted. # @!attribute [rw] redaction_color # @return [Google::Privacy::Dlp::V2beta1::Color] # The color to use when redacting content from an image. If not specified, # the default is black. class ImageRedactionConfig; end end |
#inspect_config ⇒ Google::Privacy::Dlp::V2beta1::InspectConfig
Returns Configuration for the inspector.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 205 class RedactContentRequest # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Type of information to replace. Only one ReplaceConfig per info_type # should be provided. If ReplaceConfig does not have an info_type, the DLP # API matches it against all info_types that are found but not specified in # another ReplaceConfig. # @!attribute [rw] replace_with # @return [String] # Content replacing sensitive information of given type. Max 256 chars. class ReplaceConfig; end # Configuration for determining how redaction of images should occur. # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Only one per info_type should be provided per request. If not # specified, and redact_all_text is false, the DLP API will redact all # text that it matches against all info_types that are found, but not # specified in another ImageRedactionConfig. # @!attribute [rw] redact_all_text # @return [true, false] # If true, all text found in the image, regardless whether it matches an # info_type, is redacted. # @!attribute [rw] redaction_color # @return [Google::Privacy::Dlp::V2beta1::Color] # The color to use when redacting content from an image. If not specified, # the default is black. class ImageRedactionConfig; end end |
#items ⇒ Array<Google::Privacy::Dlp::V2beta1::ContentItem>
Returns The list of items to inspect. Up to 100 are allowed per request.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 205 class RedactContentRequest # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Type of information to replace. Only one ReplaceConfig per info_type # should be provided. If ReplaceConfig does not have an info_type, the DLP # API matches it against all info_types that are found but not specified in # another ReplaceConfig. # @!attribute [rw] replace_with # @return [String] # Content replacing sensitive information of given type. Max 256 chars. class ReplaceConfig; end # Configuration for determining how redaction of images should occur. # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Only one per info_type should be provided per request. If not # specified, and redact_all_text is false, the DLP API will redact all # text that it matches against all info_types that are found, but not # specified in another ImageRedactionConfig. # @!attribute [rw] redact_all_text # @return [true, false] # If true, all text found in the image, regardless whether it matches an # info_type, is redacted. # @!attribute [rw] redaction_color # @return [Google::Privacy::Dlp::V2beta1::Color] # The color to use when redacting content from an image. If not specified, # the default is black. class ImageRedactionConfig; end end |
#replace_configs ⇒ Array<Google::Privacy::Dlp::V2beta1::RedactContentRequest::ReplaceConfig>
Returns The strings to replace findings text findings with. Must specify at least one of these or one ImageRedactionConfig if redacting images.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 205 class RedactContentRequest # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Type of information to replace. Only one ReplaceConfig per info_type # should be provided. If ReplaceConfig does not have an info_type, the DLP # API matches it against all info_types that are found but not specified in # another ReplaceConfig. # @!attribute [rw] replace_with # @return [String] # Content replacing sensitive information of given type. Max 256 chars. class ReplaceConfig; end # Configuration for determining how redaction of images should occur. # @!attribute [rw] info_type # @return [Google::Privacy::Dlp::V2beta1::InfoType] # Only one per info_type should be provided per request. If not # specified, and redact_all_text is false, the DLP API will redact all # text that it matches against all info_types that are found, but not # specified in another ImageRedactionConfig. # @!attribute [rw] redact_all_text # @return [true, false] # If true, all text found in the image, regardless whether it matches an # info_type, is redacted. # @!attribute [rw] redaction_color # @return [Google::Privacy::Dlp::V2beta1::Color] # The color to use when redacting content from an image. If not specified, # the default is black. class ImageRedactionConfig; end end |