Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTriggerConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTriggerConfig

Returns a new instance of GoogleCloudIntegrationsV1alphaTriggerConfig.



8657
8658
8659
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8657

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alert_configArray<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



8597
8598
8599
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8597

def alert_config
  @alert_config
end

#cloud_scheduler_configGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaCloudSchedulerConfig

Cloud Scheduler Trigger configuration Corresponds to the JSON property cloudSchedulerConfig



8602
8603
8604
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8602

def cloud_scheduler_config
  @cloud_scheduler_config
end

#descriptionString

Optional. User-provided description intended to give additional business context about the task. Corresponds to the JSON property description

Returns:

  • (String)


8608
8609
8610
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8608

def description
  @description
end

#error_catcher_config_idString

Optional. Optional Error catcher config id of the error catch flow which will be executed when execution error happens in the task Corresponds to the JSON property errorCatcherConfigId

Returns:

  • (String)


8614
8615
8616
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8614

def error_catcher_config_id
  @error_catcher_config_id
end

#labelString

Optional. The user created label for a particular trigger. Corresponds to the JSON property label

Returns:

  • (String)


8619
8620
8621
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8619

def label
  @label
end

#next_tasks_execution_policyString

Optional. Dictates how next tasks will be executed. Corresponds to the JSON property nextTasksExecutionPolicy

Returns:

  • (String)


8624
8625
8626
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8624

def next_tasks_execution_policy
  @next_tasks_execution_policy
end

#propertiesHash<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

Returns:

  • (Hash<String,String>)


8631
8632
8633
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8631

def properties
  @properties
end

#start_tasksArray<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



8639
8640
8641
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8639

def start_tasks
  @start_tasks
end

#trigger_idString

Optional. The backend trigger ID. Corresponds to the JSON property triggerId

Returns:

  • (String)


8644
8645
8646
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8644

def trigger_id
  @trigger_id
end

#trigger_numberString

Required. A number to uniquely identify each trigger config within the integration on UI. Corresponds to the JSON property triggerNumber

Returns:

  • (String)


8650
8651
8652
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8650

def trigger_number
  @trigger_number
end

#trigger_typeString

Optional. Type of trigger Corresponds to the JSON property triggerType

Returns:

  • (String)


8655
8656
8657
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8655

def trigger_type
  @trigger_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8662

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_config_id = args[:error_catcher_config_id] if args.key?(:error_catcher_config_id)
  @label = args[:label] if args.key?(:label)
  @next_tasks_execution_policy = args[:next_tasks_execution_policy] if args.key?(:next_tasks_execution_policy)
  @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