Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_configsArray<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_configGoogle::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

#itemsArray<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_configsArray<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