Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDescription

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 flattened description of a PrimitiveTransformation or RecordSuppression.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2TransformationDescription

Returns a new instance of GooglePrivacyDlpV2TransformationDescription.



8794
8795
8796
# File 'lib/google/apis/dlp_v2/classes.rb', line 8794

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

Instance Attribute Details

#conditionString

A human-readable string representation of the RecordCondition corresponding to this transformation. Set if a RecordCondition was used to determine whether or not to apply this transformation. Examples: * (age_field > 85) * ( age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field exists) Corresponds to the JSON property condition

Returns:

  • (String)


8775
8776
8777
# File 'lib/google/apis/dlp_v2/classes.rb', line 8775

def condition
  @condition
end

#descriptionString

A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the PrimitiveTransformation protocol buffer message for any other type of transformation. Corresponds to the JSON property description

Returns:

  • (String)


8782
8783
8784
# File 'lib/google/apis/dlp_v2/classes.rb', line 8782

def description
  @description
end

#info_typeGoogle::Apis::DlpV2::GooglePrivacyDlpV2InfoType

Type of information detected by the API. Corresponds to the JSON property infoType



8787
8788
8789
# File 'lib/google/apis/dlp_v2/classes.rb', line 8787

def info_type
  @info_type
end

#typeString

The transformation type. Corresponds to the JSON property type

Returns:

  • (String)


8792
8793
8794
# File 'lib/google/apis/dlp_v2/classes.rb', line 8792

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8799
8800
8801
8802
8803
8804
# File 'lib/google/apis/dlp_v2/classes.rb', line 8799

def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @description = args[:description] if args.key?(:description)
  @info_type = args[:info_type] if args.key?(:info_type)
  @type = args[:type] if args.key?(:type)
end