Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Request to de-identify a ContentItem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DeidentifyContentRequest

Returns a new instance of GooglePrivacyDlpV2DeidentifyContentRequest.



2484
2485
2486
# File 'lib/google/apis/dlp_v2/classes.rb', line 2484

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

Instance Attribute Details

#deidentify_configGoogle::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig

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



2449
2450
2451
# File 'lib/google/apis/dlp_v2/classes.rb', line 2449

def deidentify_config
  @deidentify_config
end

#deidentify_template_nameString

Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged. Corresponds to the JSON property deidentifyTemplateName

Returns:

  • (String)


2457
2458
2459
# File 'lib/google/apis/dlp_v2/classes.rb', line 2457

def deidentify_template_name
  @deidentify_template_name
end

#inspect_configGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig

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



2463
2464
2465
# File 'lib/google/apis/dlp_v2/classes.rb', line 2463

def inspect_config
  @inspect_config
end

#inspect_template_nameString

Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged. Corresponds to the JSON property inspectTemplateName

Returns:

  • (String)


2471
2472
2473
# File 'lib/google/apis/dlp_v2/classes.rb', line 2471

def inspect_template_name
  @inspect_template_name
end

#itemGoogle::Apis::DlpV2::GooglePrivacyDlpV2ContentItem

The item to de-identify. Will be treated as text. This value must be of type Table if your deidentify_config is a RecordTransformations object. Corresponds to the JSON property item



2477
2478
2479
# File 'lib/google/apis/dlp_v2/classes.rb', line 2477

def item
  @item
end

#location_idString

Deprecated. This field has no effect. Corresponds to the JSON property locationId

Returns:

  • (String)


2482
2483
2484
# File 'lib/google/apis/dlp_v2/classes.rb', line 2482

def location_id
  @location_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2489
2490
2491
2492
2493
2494
2495
2496
# File 'lib/google/apis/dlp_v2/classes.rb', line 2489

def update!(**args)
  @deidentify_config = args[:deidentify_config] if args.key?(:deidentify_config)
  @deidentify_template_name = args[:deidentify_template_name] if args.key?(:deidentify_template_name)
  @inspect_config = args[:inspect_config] if args.key?(:inspect_config)
  @inspect_template_name = args[:inspect_template_name] if args.key?(:inspect_template_name)
  @item = args[:item] if args.key?(:item)
  @location_id = args[:location_id] if args.key?(:location_id)
end