Class InspectionRule (3.20.0)

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

A single inspection rule to be applied to infoTypes, specified in InspectionRuleSet.

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

Name Description
hotword_rule google.cloud.dlp_v2.types.CustomInfoType.DetectionRule.HotwordRule
Hotword-based detection rule. This field is a member of oneof_ type.
exclusion_rule google.cloud.dlp_v2.types.ExclusionRule
Exclusion rule. This field is a member of oneof_ type.