View Source GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule (google_api_content_warehouse v0.5.0)

Represents the rule for a content warehouse trigger.

Attributes

  • actions (type: list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action.t), default: nil) - List of actions that are executed when the rule is satisfied.
  • condition (type: String.t, default: nil) - 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
  • description (type: String.t, default: nil) - Short description of the rule and its context.
  • ruleId (type: String.t, default: nil) - ID of the rule. It has to be unique across all the examples. This is managed internally.
  • triggerType (type: String.t, default: nil) - Identifies the trigger type for running the policy.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule{
  actions:
    [
      GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action.t()
    ]
    | nil,
  condition: String.t() | nil,
  description: String.t() | nil,
  ruleId: String.t() | nil,
  triggerType: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.