Class Rule (0.6.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 MutableSequence[google.cloud.contentwarehouse_v1.types.Action]
List of actions that are executed when the rule is satisfied.

Classes

TriggerType

TriggerType(value)

The trigger types for actions.

Values: UNKNOWN (0): Trigger for unknown action. ON_CREATE (1): Trigger for create document action. ON_UPDATE (4): Trigger for update document action. ON_CREATE_LINK (7): Trigger for create link action. ON_DELETE_LINK (8): Trigger for delete link action.