Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaErrorCatcherConfig

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 error catch task

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaErrorCatcherConfig

Returns a new instance of GoogleCloudIntegrationsV1alphaErrorCatcherConfig.



7528
7529
7530
# File 'lib/google/apis/integrations_v1/classes.rb', line 7528

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

Instance Attribute Details

#descriptionString

Optional. User-provided description intended to give more business context about the error catcher config. Corresponds to the JSON property description

Returns:

  • (String)


7497
7498
7499
# File 'lib/google/apis/integrations_v1/classes.rb', line 7497

def description
  @description
end

#error_catcher_idString

Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow Corresponds to the JSON property errorCatcherId

Returns:

  • (String)


7504
7505
7506
# File 'lib/google/apis/integrations_v1/classes.rb', line 7504

def error_catcher_id
  @error_catcher_id
end

#error_catcher_numberString

Required. A number to uniquely identify each error catcher config within the workflow on UI. Corresponds to the JSON property errorCatcherNumber

Returns:

  • (String)


7510
7511
7512
# File 'lib/google/apis/integrations_v1/classes.rb', line 7510

def error_catcher_number
  @error_catcher_number
end

#labelString

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

Returns:

  • (String)


7515
7516
7517
# File 'lib/google/apis/integrations_v1/classes.rb', line 7515

def label
  @label
end

#positionGoogle::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCoordinate

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



7520
7521
7522
# File 'lib/google/apis/integrations_v1/classes.rb', line 7520

def position
  @position
end

#start_error_tasksArray<Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaNextTask>

Required. The set of start tasks that are to be executed for the error catch flow Corresponds to the JSON property startErrorTasks



7526
7527
7528
# File 'lib/google/apis/integrations_v1/classes.rb', line 7526

def start_error_tasks
  @start_error_tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7533
7534
7535
7536
7537
7538
7539
7540
# File 'lib/google/apis/integrations_v1/classes.rb', line 7533

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @error_catcher_id = args[:error_catcher_id] if args.key?(:error_catcher_id)
  @error_catcher_number = args[:error_catcher_number] if args.key?(:error_catcher_number)
  @label = args[:label] if args.key?(:label)
  @position = args[:position] if args.key?(:position)
  @start_error_tasks = args[:start_error_tasks] if args.key?(:start_error_tasks)
end