Class: Google::Privacy::Dlp::V2beta1::FieldTransformation

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

Overview

The transformation to apply to the field.

Instance Attribute Summary collapse

Instance Attribute Details

#conditionGoogle::Privacy::Dlp::V2beta1::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::V2beta1::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.


1069
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069

class FieldTransformation; end

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

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

Returns:



1069
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069

class FieldTransformation; end

#info_type_transformationsGoogle::Privacy::Dlp::V2beta1::InfoTypeTransformations

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

Returns:



1069
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069

class FieldTransformation; end

#primitive_transformationGoogle::Privacy::Dlp::V2beta1::PrimitiveTransformation

Returns Apply the transformation to the entire field.

Returns:



1069
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1069

class FieldTransformation; end