class Google::Apis::DlpV2::GooglePrivacyDlpV2FieldTransformation
The transformation to apply to the field.
Attributes
A condition for determining whether a transformation should be applied to a field. Corresponds to the JSON property `condition` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RecordCondition]
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of “contact.nums[ 0].type”, use “contact.nums.type”. Corresponds to the JSON property `fields` @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
A type of transformation that will scan unstructured text and apply various ` PrimitiveTransformation`s 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` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeTransformations]
A rule for transforming a value. Corresponds to the JSON property `primitiveTransformation` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PrimitiveTransformation]
Public Class Methods
# File lib/google/apis/dlp_v2/classes.rb, line 2372 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dlp_v2/classes.rb, line 2377 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