Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTriggerConfig
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTriggerConfig
- 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.
Instance Attribute Summary collapse
-
#alert_config ⇒ Array<Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfig>
Optional.
-
#cloud_scheduler_config ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCloudSchedulerConfig
Cloud Scheduler Trigger configuration Corresponds to the JSON property
cloudSchedulerConfig. -
#description ⇒ String
Optional.
-
#error_catcher_id ⇒ String
Optional.
-
#label ⇒ String
Optional.
-
#next_tasks_execution_policy ⇒ String
Optional.
-
#position ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCoordinate
Configuration detail of coordinate, it used for UI Corresponds to the JSON property
position. -
#properties ⇒ Hash<String,String>
Optional.
-
#start_tasks ⇒ Array<Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaNextTask>
Optional.
-
#trigger_id ⇒ String
Optional.
-
#trigger_number ⇒ String
Required.
-
#trigger_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTriggerConfig
constructor
A new instance of GoogleCloudIntegrationsV1alphaTriggerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTriggerConfig
Returns a new instance of GoogleCloudIntegrationsV1alphaTriggerConfig.
8997 8998 8999 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alert_config ⇒ Array<Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfig>
Optional. An alert threshold configuration for the [trigger + client +
integration] 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 + integration]
when published.
Corresponds to the JSON property alertConfig
8932 8933 8934 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8932 def alert_config @alert_config end |
#cloud_scheduler_config ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCloudSchedulerConfig
Cloud Scheduler Trigger configuration
Corresponds to the JSON property cloudSchedulerConfig
8937 8938 8939 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8937 def cloud_scheduler_config @cloud_scheduler_config end |
#description ⇒ String
Optional. User-provided description intended to give additional business
context about the task.
Corresponds to the JSON property description
8943 8944 8945 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8943 def description @description end |
#error_catcher_id ⇒ String
Optional. 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
8949 8950 8951 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8949 def error_catcher_id @error_catcher_id end |
#label ⇒ String
Optional. The user created label for a particular trigger.
Corresponds to the JSON property label
8954 8955 8956 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8954 def label @label end |
#next_tasks_execution_policy ⇒ String
Optional. Dictates how next tasks will be executed.
Corresponds to the JSON property nextTasksExecutionPolicy
8959 8960 8961 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8959 def next_tasks_execution_policy @next_tasks_execution_policy end |
#position ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCoordinate
Configuration detail of coordinate, it used for UI
Corresponds to the JSON property position
8964 8965 8966 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8964 def position @position end |
#properties ⇒ Hash<String,String>
Optional. Configurable properties of the trigger, not to be confused with
integration parameters. E.g. "name" is a property for API triggers and "
subscription" is a property for Pub/sub triggers.
Corresponds to the JSON property properties
8971 8972 8973 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8971 def properties @properties end |
#start_tasks ⇒ Array<Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaNextTask>
Optional. Set of tasks numbers from where the integration execution is started
by this trigger. If this is empty, then integration 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 integration execution graph).
Corresponds to the JSON property startTasks
8979 8980 8981 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8979 def start_tasks @start_tasks end |
#trigger_id ⇒ String
Optional. The backend trigger ID.
Corresponds to the JSON property triggerId
8984 8985 8986 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8984 def trigger_id @trigger_id end |
#trigger_number ⇒ String
Required. A number to uniquely identify each trigger config within the
integration on UI.
Corresponds to the JSON property triggerNumber
8990 8991 8992 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8990 def trigger_number @trigger_number end |
#trigger_type ⇒ String
Optional. Type of trigger
Corresponds to the JSON property triggerType
8995 8996 8997 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8995 def trigger_type @trigger_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9002 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) @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) @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_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 |