Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationConfig

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

User specified templates and configs for how to deidentify structured, unstructures, and image files. User must provide either a unstructured deidentify template or at least one redact image config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2TransformationConfig

Returns a new instance of GooglePrivacyDlpV2TransformationConfig.



9431
9432
9433
# File 'lib/google/apis/dlp_v2/classes.rb', line 9431

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

Instance Attribute Details

#deidentify_templateString

De-identify template. If this template is specified, it will serve as the default de-identify template. This template cannot contain record_transformations since it can be used for unstructured content such as free-form text files. If this template is not set, a default ReplaceWithInfoTypeConfig will be used to de-identify unstructured content. Corresponds to the JSON property deidentifyTemplate

Returns:

  • (String)


9412
9413
9414
# File 'lib/google/apis/dlp_v2/classes.rb', line 9412

def deidentify_template
  @deidentify_template
end

#image_redact_templateString

Image redact template. If this template is specified, it will serve as the de- identify template for images. If this template is not set, all findings in the image will be redacted with a black box. Corresponds to the JSON property imageRedactTemplate

Returns:

  • (String)


9419
9420
9421
# File 'lib/google/apis/dlp_v2/classes.rb', line 9419

def image_redact_template
  @image_redact_template
end

#structured_deidentify_templateString

Structured de-identify template. If this template is specified, it will serve as the de-identify template for structured content such as delimited files and tables. If this template is not set but the deidentify_template is set, then deidentify_template will also apply to the structured content. If neither template is set, a default ReplaceWithInfoTypeConfig will be used to de- identify structured content. Corresponds to the JSON property structuredDeidentifyTemplate

Returns:

  • (String)


9429
9430
9431
# File 'lib/google/apis/dlp_v2/classes.rb', line 9429

def structured_deidentify_template
  @structured_deidentify_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9436
9437
9438
9439
9440
# File 'lib/google/apis/dlp_v2/classes.rb', line 9436

def update!(**args)
  @deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
  @image_redact_template = args[:image_redact_template] if args.key?(:image_redact_template)
  @structured_deidentify_template = args[:structured_deidentify_template] if args.key?(:structured_deidentify_template)
end