Class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeTransformation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

A transformation to apply to text that is identified as a specific info_type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2InfoTypeTransformation

Returns a new instance of GooglePrivacyDlpV2InfoTypeTransformation



2089
2090
2091
# File 'generated/google/apis/dlp_v2/classes.rb', line 2089

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#info_typesArray<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType>

InfoTypes to apply the transformation to. Empty list will match all available infoTypes for this transformation. Corresponds to the JSON property infoTypes



2082
2083
2084
# File 'generated/google/apis/dlp_v2/classes.rb', line 2082

def info_types
  @info_types
end

#primitive_transformationGoogle::Apis::DlpV2::GooglePrivacyDlpV2PrimitiveTransformation

A rule for transforming a value. Corresponds to the JSON property primitiveTransformation



2087
2088
2089
# File 'generated/google/apis/dlp_v2/classes.rb', line 2087

def primitive_transformation
  @primitive_transformation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2094
2095
2096
2097
# File 'generated/google/apis/dlp_v2/classes.rb', line 2094

def update!(**args)
  @info_types = args[:info_types] if args.key?(:info_types)
  @primitive_transformation = args[:primitive_transformation] if args.key?(:primitive_transformation)
end