Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyContentRequest

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 de-identify 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) ⇒ GooglePrivacyDlpV2beta1DeidentifyContentRequest

Returns a new instance of GooglePrivacyDlpV2beta1DeidentifyContentRequest



1141
1142
1143
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1141

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

Instance Attribute Details

#deidentify_configGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyConfig

The configuration that controls how the data will change. Corresponds to the JSON property deidentifyConfig



1126
1127
1128
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1126

def deidentify_config
  @deidentify_config
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



1133
1134
1135
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1133

def inspect_config
  @inspect_config
end

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

The list of items to inspect. Up to 100 are allowed per request. All items will be treated as text/*. Corresponds to the JSON property items



1139
1140
1141
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1139

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1146
1147
1148
1149
1150
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1146

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