Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectContentRequest

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.

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) ⇒ GooglePrivacyDlpV2beta1InspectContentRequest

Returns a new instance of GooglePrivacyDlpV2beta1InspectContentRequest



1531
1532
1533
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1531

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#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



1522
1523
1524
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1522

def inspect_config
  @inspect_config
end

#itemsArray<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>

The list of items to inspect. Items in a single request are considered "related" unless inspect_config.independent_inputs is true. Up to 100 are allowed per request. Corresponds to the JSON property items



1529
1530
1531
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1529

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1536
1537
1538
1539
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1536

def update!(**args)
  @inspect_config = args[:inspect_config] if args.key?(:inspect_config)
  @items = args[:items] if args.key?(:items)
end