Class: Google::Apis::DlpV2::GooglePrivacyDlpV2RecordTransformations

Inherits:
Object
  • Object
show all
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

A type of transformation that is applied over structured data such as a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2RecordTransformations

Returns a new instance of GooglePrivacyDlpV2RecordTransformations.



5036
5037
5038
# File 'lib/google/apis/dlp_v2/classes.rb', line 5036

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

Instance Attribute Details

#field_transformationsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldTransformation>

Transform the record by applying various field transformations. Corresponds to the JSON property fieldTransformations



5028
5029
5030
# File 'lib/google/apis/dlp_v2/classes.rb', line 5028

def field_transformations
  @field_transformations
end

#record_suppressionsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2RecordSuppression>

Configuration defining which records get suppressed entirely. Records that match any suppression rule are omitted from the output. Corresponds to the JSON property recordSuppressions



5034
5035
5036
# File 'lib/google/apis/dlp_v2/classes.rb', line 5034

def record_suppressions
  @record_suppressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5041
5042
5043
5044
# File 'lib/google/apis/dlp_v2/classes.rb', line 5041

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