Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTriggerConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/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.



11344
11345
11346
# File 'lib/google/apis/integrations_v1/classes.rb', line 11344

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

Instance Attribute Details

#alert_configArray<Google::Apis::IntegrationsV1::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



11260
11261
11262
# File 'lib/google/apis/integrations_v1/classes.rb', line 11260

def alert_config
  @alert_config
end

#cloud_scheduler_configGoogle::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCloudSchedulerConfig

Cloud Scheduler Trigger configuration Corresponds to the JSON property cloudSchedulerConfig



11265
11266
11267
# File 'lib/google/apis/integrations_v1/classes.rb', line 11265

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)


11271
11272
11273
# File 'lib/google/apis/integrations_v1/classes.rb', line 11271

def description
  @description
end

#error_catcher_idString

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

Returns:

  • (String)


11277
11278
11279
# File 'lib/google/apis/integrations_v1/classes.rb', line 11277

def error_catcher_id
  @error_catcher_id
end

#input_variablesGoogle::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTriggerConfigVariables

Variables names mapped to api trigger. Corresponds to the JSON property inputVariables



11282
11283
11284
# File 'lib/google/apis/integrations_v1/classes.rb', line 11282

def input_variables
  @input_variables
end

#labelString

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

Returns:

  • (String)


11287
11288
11289
# File 'lib/google/apis/integrations_v1/classes.rb', line 11287

def label
  @label
end

#next_tasks_execution_policyString

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

Returns:

  • (String)


11292
11293
11294
# File 'lib/google/apis/integrations_v1/classes.rb', line 11292

def next_tasks_execution_policy
  @next_tasks_execution_policy
end

#output_variablesGoogle::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTriggerConfigVariables

Variables names mapped to api trigger. Corresponds to the JSON property outputVariables



11297
11298
11299
# File 'lib/google/apis/integrations_v1/classes.rb', line 11297

def output_variables
  @output_variables
end

#positionGoogle::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCoordinate

Configuration detail of coordinate, it used for UI Corresponds to the JSON property position



11302
11303
11304
# File 'lib/google/apis/integrations_v1/classes.rb', line 11302

def position
  @position
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>)


11309
11310
11311
# File 'lib/google/apis/integrations_v1/classes.rb', line 11309

def properties
  @properties
end

#start_tasksArray<Google::Apis::IntegrationsV1::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



11317
11318
11319
# File 'lib/google/apis/integrations_v1/classes.rb', line 11317

def start_tasks
  @start_tasks
end

#triggerString

Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. Corresponds to the JSON property trigger

Returns:

  • (String)


11323
11324
11325
# File 'lib/google/apis/integrations_v1/classes.rb', line 11323

def trigger
  @trigger
end

#trigger_idString

Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value "Trigger name": TRIGGER_NAME Corresponds to the JSON property triggerId

Returns:

  • (String)


11331
11332
11333
# File 'lib/google/apis/integrations_v1/classes.rb', line 11331

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)


11337
11338
11339
# File 'lib/google/apis/integrations_v1/classes.rb', line 11337

def trigger_number
  @trigger_number
end

#trigger_typeString

Optional. Type of trigger Corresponds to the JSON property triggerType

Returns:

  • (String)


11342
11343
11344
# File 'lib/google/apis/integrations_v1/classes.rb', line 11342

def trigger_type
  @trigger_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
# File 'lib/google/apis/integrations_v1/classes.rb', line 11349

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