Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::AdjustByMatchingInfoTypes.
AdjustmentRule condition for matching infoTypes.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#info_types
def info_types() -> ::Array<::Google::Cloud::Dlp::V2::InfoType>-
(::Array<::Google::Cloud::Dlp::V2::InfoType>) — Sensitive Data Protection adjusts the likelihood of a finding if that
finding also matches one of these infoTypes.
For example, you can create a rule to adjust the likelihood of a
PHONE_NUMBERfinding if the string is found within a document that is classified asDOCUMENT_TYPE/HR/RESUME. To configure this, setPHONE_NUMBERinInspectionRuleSet.info_types. Add anadjustment_rulewith anadjust_by_matching_info_types.info_typesthat containsDOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of thePHONE_NUMBERfinding is adjusted, but the likelihood of theDOCUMENT_TYPE/HR/RESUMEfinding is not.
#info_types=
def info_types=(value) -> ::Array<::Google::Cloud::Dlp::V2::InfoType>-
value (::Array<::Google::Cloud::Dlp::V2::InfoType>) — Sensitive Data Protection adjusts the likelihood of a finding if that
finding also matches one of these infoTypes.
For example, you can create a rule to adjust the likelihood of a
PHONE_NUMBERfinding if the string is found within a document that is classified asDOCUMENT_TYPE/HR/RESUME. To configure this, setPHONE_NUMBERinInspectionRuleSet.info_types. Add anadjustment_rulewith anadjust_by_matching_info_types.info_typesthat containsDOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of thePHONE_NUMBERfinding is adjusted, but the likelihood of theDOCUMENT_TYPE/HR/RESUMEfinding is not.
-
(::Array<::Google::Cloud::Dlp::V2::InfoType>) — Sensitive Data Protection adjusts the likelihood of a finding if that
finding also matches one of these infoTypes.
For example, you can create a rule to adjust the likelihood of a
PHONE_NUMBERfinding if the string is found within a document that is classified asDOCUMENT_TYPE/HR/RESUME. To configure this, setPHONE_NUMBERinInspectionRuleSet.info_types. Add anadjustment_rulewith anadjust_by_matching_info_types.info_typesthat containsDOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of thePHONE_NUMBERfinding is adjusted, but the likelihood of theDOCUMENT_TYPE/HR/RESUMEfinding is not.
#matching_type
def matching_type() -> ::Google::Cloud::Dlp::V2::MatchingType-
(::Google::Cloud::Dlp::V2::MatchingType) —
How the adjustment rule is applied.
Only
MATCHING_TYPE_PARTIAL_MATCHis supported:- Partial match: adjusts the findings of infoTypes specified in the inspection rule when they have a nonempty intersection with a finding of an infoType specified in this adjustment rule.
#matching_type=
def matching_type=(value) -> ::Google::Cloud::Dlp::V2::MatchingType-
value (::Google::Cloud::Dlp::V2::MatchingType) —
How the adjustment rule is applied.
Only
MATCHING_TYPE_PARTIAL_MATCHis supported:- Partial match: adjusts the findings of infoTypes specified in the inspection rule when they have a nonempty intersection with a finding of an infoType specified in this adjustment rule.
-
(::Google::Cloud::Dlp::V2::MatchingType) —
How the adjustment rule is applied.
Only
MATCHING_TYPE_PARTIAL_MATCHis supported:- Partial match: adjusts the findings of infoTypes specified in the inspection rule when they have a nonempty intersection with a finding of an infoType specified in this adjustment rule.
#min_likelihood
def min_likelihood() -> ::Google::Cloud::Dlp::V2::Likelihood-
(::Google::Cloud::Dlp::V2::Likelihood) — Required. Minimum likelihood of the
adjust_by_matching_info_types.info_typesfinding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of theInspectionRuleSet.info_typesfinding.
#min_likelihood=
def min_likelihood=(value) -> ::Google::Cloud::Dlp::V2::Likelihood-
value (::Google::Cloud::Dlp::V2::Likelihood) — Required. Minimum likelihood of the
adjust_by_matching_info_types.info_typesfinding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of theInspectionRuleSet.info_typesfinding.
-
(::Google::Cloud::Dlp::V2::Likelihood) — Required. Minimum likelihood of the
adjust_by_matching_info_types.info_typesfinding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of theInspectionRuleSet.info_typesfinding.