Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeTransformation

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

A transformation to apply to text that is identified as a specific info_type.

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

Returns a new instance of GooglePrivacyDlpV2beta1InfoTypeTransformation



1630
1631
1632
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1630

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

Instance Attribute Details

#info_typesArray<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType>

Info types to apply the transformation to. Empty list will match all available info types for this transformation. Corresponds to the JSON property infoTypes



1623
1624
1625
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1623

def info_types
  @info_types
end

#primitive_transformationGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrimitiveTransformation

A rule for transforming a value. Corresponds to the JSON property primitiveTransformation



1628
1629
1630
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1628

def primitive_transformation
  @primitive_transformation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1635
1636
1637
1638
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1635

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