Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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_redaction_configs ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageRedactionConfig>
The configuration for specifying what content to redact from images.
-
#inspect_config ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig
Configuration description of the scanning process.
-
#items ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>
The list of items to inspect.
-
#replace_configs ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ReplaceConfig>
The strings to replace findings text findings with.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1RedactContentRequest
constructor
A new instance of GooglePrivacyDlpV2beta1RedactContentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1RedactContentRequest
Returns a new instance of GooglePrivacyDlpV2beta1RedactContentRequest
3029 3030 3031 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3029 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_redaction_configs ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageRedactionConfig>
The configuration for specifying what content to redact from images.
Corresponds to the JSON property imageRedactionConfigs
3009 3010 3011 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3009 def image_redaction_configs @image_redaction_configs end |
#inspect_config ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig
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
3016 3017 3018 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3016 def inspect_config @inspect_config end |
#items ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>
The list of items to inspect. Up to 100 are allowed per request.
Corresponds to the JSON property items
3021 3022 3023 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3021 def items @items end |
#replace_configs ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ReplaceConfig>
The strings to replace findings text findings with. Must specify at least
one of these or one ImageRedactionConfig if redacting images.
Corresponds to the JSON property replaceConfigs
3027 3028 3029 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3027 def replace_configs @replace_configs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3034 3035 3036 3037 3038 3039 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3034 def update!(**args) @image_redaction_configs = args[:image_redaction_configs] if args.key?(:image_redaction_configs) @inspect_config = args[:inspect_config] if args.key?(:inspect_config) @items = args[:items] if args.key?(:items) @replace_configs = args[:replace_configs] if args.key?(:replace_configs) end |