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.



7433
7434
7435
# File 'lib/google/apis/dlp_v2/classes.rb', line 7433

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)


7414
7415
7416
# File 'lib/google/apis/dlp_v2/classes.rb', line 7414

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)


7421
7422
7423
# File 'lib/google/apis/dlp_v2/classes.rb', line 7421

def description
  @description
end

#info_typeGoogle::Apis::DlpV2::GooglePrivacyDlpV2InfoType

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



7426
7427
7428
# File 'lib/google/apis/dlp_v2/classes.rb', line 7426

def info_type
  @info_type
end

#typeString

The transformation type. Corresponds to the JSON property type

Returns:

  • (String)


7431
7432
7433
# File 'lib/google/apis/dlp_v2/classes.rb', line 7431

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7438
7439
7440
7441
7442
7443
# File 'lib/google/apis/dlp_v2/classes.rb', line 7438

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