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.



9553
9554
9555
# File 'lib/google/apis/dlp_v2/classes.rb', line 9553

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)


9534
9535
9536
# File 'lib/google/apis/dlp_v2/classes.rb', line 9534

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)


9541
9542
9543
# File 'lib/google/apis/dlp_v2/classes.rb', line 9541

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)


9551
9552
9553
# File 'lib/google/apis/dlp_v2/classes.rb', line 9551

def structured_deidentify_template
  @structured_deidentify_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9558
9559
9560
9561
9562
# File 'lib/google/apis/dlp_v2/classes.rb', line 9558

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