Class PolicyRule (3.40.0)

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

A single policy rule. The first rule to match from the list above controls the result.

Attributes

Name Description
conditions MutableSequence[google.cloud.dlp_v2.types.ContentPolicy.PolicyRule.PolicyCondition]
Optional. Conditions that must match for this rule to apply. All conditions must match (AND). For OR conditions, use multiple rules.
action google.cloud.dlp_v2.types.ContentPolicy.PolicyAction
Required. Action to take if this rule applies.

Classes

PolicyCondition

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

A condition that must match for this rule to apply.

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