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.



9474
9475
9476
# File 'lib/google/apis/dlp_v2/classes.rb', line 9474

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)


9455
9456
9457
# File 'lib/google/apis/dlp_v2/classes.rb', line 9455

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)


9462
9463
9464
# File 'lib/google/apis/dlp_v2/classes.rb', line 9462

def description
  @description
end

#info_typeGoogle::Apis::DlpV2::GooglePrivacyDlpV2InfoType

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



9467
9468
9469
# File 'lib/google/apis/dlp_v2/classes.rb', line 9467

def info_type
  @info_type
end

#typeString

The transformation type. Corresponds to the JSON property type

Returns:

  • (String)


9472
9473
9474
# File 'lib/google/apis/dlp_v2/classes.rb', line 9472

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9479
9480
9481
9482
9483
9484
# File 'lib/google/apis/dlp_v2/classes.rb', line 9479

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