Class: Google::Cloud::Dlp::V2::TransformationErrorHandling
- Inherits:
-
Object
- Object
- Google::Cloud::Dlp::V2::TransformationErrorHandling
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/privacy/dlp/v2/dlp.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
.
Defined Under Namespace
Classes: LeaveUntransformed, ThrowError
Instance Attribute Summary collapse
-
#leave_untransformed ⇒ ::Google::Cloud::Dlp::V2::TransformationErrorHandling::LeaveUntransformed
Ignore errors.
-
#throw_error ⇒ ::Google::Cloud::Dlp::V2::TransformationErrorHandling::ThrowError
Throw an error.
Instance Attribute Details
#leave_untransformed ⇒ ::Google::Cloud::Dlp::V2::TransformationErrorHandling::LeaveUntransformed
Returns Ignore errors
Note: The following fields are mutually exclusive: leave_untransformed
, throw_error
. If a field in that set is populated, all other fields in the set will automatically be cleared.
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2348 class TransformationErrorHandling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Throw an error and fail the request when a transformation error occurs. class ThrowError include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # 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. class LeaveUntransformed include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#throw_error ⇒ ::Google::Cloud::Dlp::V2::TransformationErrorHandling::ThrowError
Returns Throw an error
Note: The following fields are mutually exclusive: throw_error
, leave_untransformed
. If a field in that set is populated, all other fields in the set will automatically be cleared.
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2348 class TransformationErrorHandling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Throw an error and fail the request when a transformation error occurs. class ThrowError include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # 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. class LeaveUntransformed include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |