Class: Google::Privacy::Dlp::V2::FieldTransformation

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb

Overview

The transformation to apply to the field.

Instance Attribute Summary collapse

Instance Attribute Details

#conditionGoogle::Privacy::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. [optional]

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::Privacy::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. [optional]

    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.


1654
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1654

class FieldTransformation; end

#fieldsArray<Google::Privacy::Dlp::V2::FieldId>

Returns Input field(s) to apply the transformation to. [required].

Returns:



1654
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1654

class FieldTransformation; end

#info_type_transformationsGoogle::Privacy::Dlp::V2::InfoTypeTransformations

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

Returns:



1654
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1654

class FieldTransformation; end

#primitive_transformationGoogle::Privacy::Dlp::V2::PrimitiveTransformation

Returns Apply the transformation to the entire field.

Returns:



1654
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1654

class FieldTransformation; end