Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmFrontendsEventbusProtoTriggerConfig
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::EnterpriseCrmFrontendsEventbusProtoTriggerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb
Overview
Configuration detail of a trigger. Next available id: 19
Instance Attribute Summary collapse
-
#alert_config ⇒ Array<Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoWorkflowAlertConfig>
An alert threshold configuration for the [trigger + client + workflow] tuple.
-
#cloud_scheduler_config ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoCloudSchedulerConfig
Cloud Scheduler Trigger configuration Corresponds to the JSON property
cloudSchedulerConfig. -
#description ⇒ String
User-provided description intended to give more business context about the task.
-
#enabled_clients ⇒ Array<String>
Required.
-
#error_catcher_id ⇒ String
Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task Corresponds to the JSON property
errorCatcherId. -
#label ⇒ String
The user created label for a particular trigger.
-
#next_tasks_execution_policy ⇒ String
Dictates how next tasks will be executed.
-
#pause_workflow_executions ⇒ Boolean
(also: #pause_workflow_executions?)
Optional.
-
#position ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoCoordinate
Represents two-dimensional positions.
-
#properties ⇒ Hash<String,String>
Configurable properties of the trigger, not to be confused with workflow parameters.
-
#start_tasks ⇒ Array<Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoNextTask>
Set of tasks numbers from where the workflow execution is started by this trigger.
-
#trigger_criteria ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoTriggerCriteria
Optional.
-
#trigger_id ⇒ String
The backend trigger ID.
-
#trigger_number ⇒ String
Required.
-
#trigger_type ⇒ String
Corresponds to the JSON property
triggerType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseCrmFrontendsEventbusProtoTriggerConfig
constructor
A new instance of EnterpriseCrmFrontendsEventbusProtoTriggerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseCrmFrontendsEventbusProtoTriggerConfig
Returns a new instance of EnterpriseCrmFrontendsEventbusProtoTriggerConfig.
4621 4622 4623 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4621 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alert_config ⇒ Array<Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoWorkflowAlertConfig>
An alert threshold configuration for the [trigger + client + workflow] tuple.
If these values are not specified in the trigger config, default values will
be populated by the system. Note that there must be exactly one alert
threshold configured per [client + trigger + workflow] when published.
Corresponds to the JSON property alertConfig
4531 4532 4533 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4531 def alert_config @alert_config end |
#cloud_scheduler_config ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoCloudSchedulerConfig
Cloud Scheduler Trigger configuration
Corresponds to the JSON property cloudSchedulerConfig
4536 4537 4538 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4536 def cloud_scheduler_config @cloud_scheduler_config end |
#description ⇒ String
User-provided description intended to give more business context about the
task.
Corresponds to the JSON property description
4542 4543 4544 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4542 def description @description end |
#enabled_clients ⇒ Array<String>
Required. The list of client ids which are enabled to execute the workflow
using this trigger. In other words, these clients have the workflow execution
privledges for this trigger. For API trigger, the client id in the incoming
request is validated against the list of enabled clients. For non-API triggers,
one workflow execution is triggered on behalf of each enabled client.
Corresponds to the JSON property enabledClients
4551 4552 4553 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4551 def enabled_clients @enabled_clients end |
#error_catcher_id ⇒ String
Optional Error catcher id of the error catch flow which will be executed when
execution error happens in the task
Corresponds to the JSON property errorCatcherId
4557 4558 4559 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4557 def error_catcher_id @error_catcher_id end |
#label ⇒ String
The user created label for a particular trigger.
Corresponds to the JSON property label
4562 4563 4564 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4562 def label @label end |
#next_tasks_execution_policy ⇒ String
Dictates how next tasks will be executed.
Corresponds to the JSON property nextTasksExecutionPolicy
4567 4568 4569 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4567 def next_tasks_execution_policy @next_tasks_execution_policy end |
#pause_workflow_executions ⇒ Boolean Also known as: pause_workflow_executions?
Optional. If set to true, any upcoming requests for this trigger config will
be paused and the executions will be resumed later when the flag is reset. The
workflow to which this trigger config belongs has to be in ACTIVE status for
the executions to be paused or resumed.
Corresponds to the JSON property pauseWorkflowExecutions
4575 4576 4577 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4575 def pause_workflow_executions @pause_workflow_executions end |
#position ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoCoordinate
Represents two-dimensional positions.
Corresponds to the JSON property position
4581 4582 4583 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4581 def position @position end |
#properties ⇒ Hash<String,String>
Configurable properties of the trigger, not to be confused with workflow
parameters. E.g. "name" is a property for API triggers and "subscription" is a
property for Cloud Pubsub triggers.
Corresponds to the JSON property properties
4588 4589 4590 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4588 def properties @properties end |
#start_tasks ⇒ Array<Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoNextTask>
Set of tasks numbers from where the workflow execution is started by this
trigger. If this is empty, then workflow is executed with default start tasks.
In the list of start tasks, none of two tasks can have direct ancestor-
descendant relationships (i.e. in a same workflow execution graph).
Corresponds to the JSON property startTasks
4596 4597 4598 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4596 def start_tasks @start_tasks end |
#trigger_criteria ⇒ Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoTriggerCriteria
Optional. When set, Eventbus will run the task specified in the
trigger_criteria and validate the result using the trigger_criteria.condition,
and only execute the workflow when result is true.
Corresponds to the JSON property triggerCriteria
4603 4604 4605 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4603 def trigger_criteria @trigger_criteria end |
#trigger_id ⇒ String
The backend trigger ID.
Corresponds to the JSON property triggerId
4608 4609 4610 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4608 def trigger_id @trigger_id end |
#trigger_number ⇒ String
Required. A number to uniquely identify each trigger config within the
workflow on UI.
Corresponds to the JSON property triggerNumber
4614 4615 4616 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4614 def trigger_number @trigger_number end |
#trigger_type ⇒ String
Corresponds to the JSON property triggerType
4619 4620 4621 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4619 def trigger_type @trigger_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4626 def update!(**args) @alert_config = args[:alert_config] if args.key?(:alert_config) @cloud_scheduler_config = args[:cloud_scheduler_config] if args.key?(:cloud_scheduler_config) @description = args[:description] if args.key?(:description) @enabled_clients = args[:enabled_clients] if args.key?(:enabled_clients) @error_catcher_id = args[:error_catcher_id] if args.key?(:error_catcher_id) @label = args[:label] if args.key?(:label) @next_tasks_execution_policy = args[:next_tasks_execution_policy] if args.key?(:next_tasks_execution_policy) @pause_workflow_executions = args[:pause_workflow_executions] if args.key?(:pause_workflow_executions) @position = args[:position] if args.key?(:position) @properties = args[:properties] if args.key?(:properties) @start_tasks = args[:start_tasks] if args.key?(:start_tasks) @trigger_criteria = args[:trigger_criteria] if args.key?(:trigger_criteria) @trigger_id = args[:trigger_id] if args.key?(:trigger_id) @trigger_number = args[:trigger_number] if args.key?(:trigger_number) @trigger_type = args[:trigger_type] if args.key?(:trigger_type) end |