Class Rule (0.1.0)

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

Represents the rule for a content warehouse trigger.

Attributes

NameDescription
description str
Short description of the rule and its context.
rule_id str
ID of the rule. It has to be unique across all the examples. This is managed internally.
trigger_type google.cloud.contentwarehouse_v1.types.Rule.TriggerType
Identifies the trigger type for running the policy.
condition str
Represents the conditional expression to be evaluated. Expression should evaluate to a boolean result. When the condition is true actions are executed. Example: user_role = "hsbc_role_1" AND doc.salary > 20000
actions Sequence[google.cloud.contentwarehouse_v1.types.Action]
List of actions that are executed when the rule is satisfied.

Inheritance

builtins.object > proto.message.Message > Rule

Classes

TriggerType

TriggerType(value)

API documentation for contentwarehouse_v1.types.Rule.TriggerType class.