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



2624
2625
2626
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2624

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



2604
2605
2606
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2604

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



2611
2612
2613
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2611

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



2616
2617
2618
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2616

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



2622
2623
2624
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2622

def replace_configs
  @replace_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2629
2630
2631
2632
2633
2634
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2629

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