Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationErrorHandling
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationErrorHandling
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb
Overview
How to handle transformation errors during de-identification. A
transformation error occurs when the requested transformation is incompatible
with the data. For example, trying to de-identify an IP address using a
DateShift transformation would result in a transformation error, since date
info cannot be extracted from an IP address.
Information about any incompatible transformations, and how they were
handled, is returned in the response as part of the
TransformationOverviews.
Instance Attribute Summary collapse
-
#leave_untransformed ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2LeaveUntransformed
Skips the data without modifying it if the requested transformation would cause an error.
-
#throw_error ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ThrowError
Throw an error and fail the request when a transformation error occurs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2TransformationErrorHandling
constructor
A new instance of GooglePrivacyDlpV2TransformationErrorHandling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2TransformationErrorHandling
Returns a new instance of GooglePrivacyDlpV2TransformationErrorHandling.
5768 5769 5770 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#leave_untransformed ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2LeaveUntransformed
Skips the data without modifying it if the requested transformation would
cause an error. For example, if a DateShift transformation were applied
an an IP address, this mode would leave the IP address unchanged in the
response.
Corresponds to the JSON property leaveUntransformed
5761 5762 5763 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5761 def leave_untransformed @leave_untransformed end |
#throw_error ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ThrowError
Throw an error and fail the request when a transformation error occurs.
Corresponds to the JSON property throwError
5766 5767 5768 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5766 def throw_error @throw_error end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5773 5774 5775 5776 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5773 def update!(**args) @leave_untransformed = args[:leave_untransformed] if args.key?(:leave_untransformed) @throw_error = args[:throw_error] if args.key?(:throw_error) end |