Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDescription
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDescription
- 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
-
#condition ⇒ String
A human-readable string representation of the
RecordCondition
corresponding to this transformation. -
#description ⇒ String
A description of the transformation.
-
#info_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType
Type of information detected by the API.
-
#type ⇒ String
The transformation type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2TransformationDescription
constructor
A new instance of GooglePrivacyDlpV2TransformationDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#condition ⇒ String
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
9455 9456 9457 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 9455 def condition @condition end |
#description ⇒ String
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
9462 9463 9464 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 9462 def description @description end |
#info_type ⇒ Google::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 |
#type ⇒ String
The transformation type.
Corresponds to the JSON property type
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 |