Class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldTransformation
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DlpV2::GooglePrivacyDlpV2FieldTransformation
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb 
Overview
The transformation to apply to the field.
Instance Attribute Summary collapse
- 
  
    
      #condition  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2RecordCondition 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A condition for determining whether a transformation should be applied to a field.
 - 
  
    
      #fields  ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #info_type_transformations  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeTransformations 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A type of transformation that will scan unstructured text and apply various
PrimitiveTransformations to each finding, where the transformation is applied to only values that were identified as a specific info_type. - 
  
    
      #primitive_transformation  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PrimitiveTransformation 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A rule for transforming a value.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GooglePrivacyDlpV2FieldTransformation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GooglePrivacyDlpV2FieldTransformation.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2FieldTransformation
Returns a new instance of GooglePrivacyDlpV2FieldTransformation.
      4306 4307 4308  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 4306 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#condition ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2RecordCondition
A condition for determining whether a transformation should be applied to a
field.
Corresponds to the JSON property condition
      4284 4285 4286  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 4284 def condition @condition end  | 
  
#fields ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>
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
      4292 4293 4294  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 4292 def fields @fields end  | 
  
#info_type_transformations ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeTransformations
A type of transformation that will scan unstructured text and apply various 
PrimitiveTransformations 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
      4299 4300 4301  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 4299 def info_type_transformations @info_type_transformations end  | 
  
#primitive_transformation ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PrimitiveTransformation
A rule for transforming a value.
Corresponds to the JSON property primitiveTransformation
      4304 4305 4306  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 4304 def primitive_transformation @primitive_transformation end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4311 4312 4313 4314 4315 4316  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 4311 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  |