Class: Google::Cloud::Dlp::V2::FieldTransformation

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

The transformation to apply to the field.

Instance Attribute Summary collapse

Instance Attribute Details

#condition::Google::Cloud::Dlp::V2::RecordCondition

Returns Only apply the transformation if the condition evaluates to true for the given RecordCondition. The conditions are allowed to reference fields that are not used in the actual transformation.

Example Use Cases:

  • Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range.
  • Redact a field if the date of birth field is greater than 85.

Returns:

  • (::Google::Cloud::Dlp::V2::RecordCondition)

    Only apply the transformation if the condition evaluates to true for the given RecordCondition. The conditions are allowed to reference fields that are not used in the actual transformation.

    Example Use Cases:

    • Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range.
    • Redact a field if the date of birth field is greater than 85.


2821
2822
2823
2824
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2821

class FieldTransformation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#fields::Array<::Google::Cloud::Dlp::V2::FieldId>

Returns 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".

Returns:

  • (::Array<::Google::Cloud::Dlp::V2::FieldId>)

    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".



2821
2822
2823
2824
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2821

class FieldTransformation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#info_type_transformations::Google::Cloud::Dlp::V2::InfoTypeTransformations

Returns Treat the contents of the field as free text, and selectively transform content that matches an InfoType.

Returns:



2821
2822
2823
2824
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2821

class FieldTransformation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#primitive_transformation::Google::Cloud::Dlp::V2::PrimitiveTransformation

Returns Apply the transformation to the entire field.

Returns:



2821
2822
2823
2824
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2821

class FieldTransformation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end