Class ExclusionRule (3.11.1)

ExclusionRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
dictionary google.cloud.dlp_v2.types.CustomInfoType.Dictionary
Dictionary which defines the rule. This field is a member of oneof_ type.
regex google.cloud.dlp_v2.types.CustomInfoType.Regex
Regular expression which defines the rule. This field is a member of oneof_ type.
exclude_info_types google.cloud.dlp_v2.types.ExcludeInfoTypes
Set of infoTypes for which findings would affect this rule. This field is a member of oneof_ type.
exclude_by_hotword google.cloud.dlp_v2.types.ExcludeByHotword
Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name. This field is a member of oneof_ type.
matching_type google.cloud.dlp_v2.types.MatchingType
How the rule is applied, see MatchingType documentation for details.