Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldTransformation

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

The transformation to apply to the field.

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

Returns a new instance of GooglePrivacyDlpV2beta1FieldTransformation



1119
1120
1121
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1119

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

Instance Attribute Details

#conditionGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition

A condition for determing whether a transformation should be applied to a field. Corresponds to the JSON property condition



1099
1100
1101
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1099

def condition
  @condition
end

#fieldsArray<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId>

Input field(s) to apply the transformation to. [required] Corresponds to the JSON property fields



1104
1105
1106
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1104

def fields
  @fields
end

#info_type_transformationsGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeTransformations

A type of transformation that will scan unstructured text and apply various PrimitiveTransformations to each finding, where the transformation is applied to only values that were identified as a specific info_type. Corresponds to the JSON property infoTypeTransformations



1112
1113
1114
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1112

def info_type_transformations
  @info_type_transformations
end

#primitive_transformationGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrimitiveTransformation

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



1117
1118
1119
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1117

def primitive_transformation
  @primitive_transformation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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