Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldTransformation
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldTransformation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
The transformation to apply to the field.
Instance Attribute Summary collapse
-
#condition ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RecordCondition
A condition for determining whether a transformation should be applied to a field.
-
#fields ⇒ Array<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId>
Input field(s) to apply the transformation to.
-
#info_type_transformations ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InfoTypeTransformations
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. -
#primitive_transformation ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2PrimitiveTransformation
A rule for transforming a value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2FieldTransformation
constructor
A new instance of GooglePrivacyDlpV2beta2FieldTransformation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2FieldTransformation
Returns a new instance of GooglePrivacyDlpV2beta2FieldTransformation
3171 3172 3173 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RecordCondition
A condition for determining whether a transformation should be applied to
a field.
Corresponds to the JSON property condition
3151 3152 3153 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3151 def condition @condition end |
#fields ⇒ Array<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId>
Input field(s) to apply the transformation to. [required]
Corresponds to the JSON property fields
3156 3157 3158 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3156 def fields @fields end |
#info_type_transformations ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InfoTypeTransformations
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
3164 3165 3166 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3164 def info_type_transformations @info_type_transformations end |
#primitive_transformation ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2PrimitiveTransformation
A rule for transforming a value.
Corresponds to the JSON property primitiveTransformation
3169 3170 3171 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3169 def primitive_transformation @primitive_transformation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3176 3177 3178 3179 3180 3181 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3176 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 |