Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTaskConfig

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

The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTaskConfig

Returns a new instance of GoogleCloudIntegrationsV1alphaTaskConfig.



8606
8607
8608
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8606

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


8532
8533
8534
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8532

def description
  @description
end

#display_nameString

Optional. User-provided label that is attached to this TaskConfig in the UI. Corresponds to the JSON property displayName

Returns:

  • (String)


8537
8538
8539
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8537

def display_name
  @display_name
end

#failure_policyGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy

Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a retry_strategy of NONE will be applied). Corresponds to the JSON property failurePolicy



8544
8545
8546
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8544

def failure_policy
  @failure_policy
end

#json_validation_optionString

Optional. If set, overrides the option configured in the Task implementation class. Corresponds to the JSON property jsonValidationOption

Returns:

  • (String)


8550
8551
8552
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8550

def json_validation_option
  @json_validation_option
end

#next_tasksArray<Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaNextTask>

Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by event_config_id. Each of these next tasks are executed only if the condition associated with them evaluates to true. Corresponds to the JSON property nextTasks



8558
8559
8560
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8558

def next_tasks
  @next_tasks
end

#next_tasks_execution_policyString

Optional. The policy dictating the execution of the next set of tasks for the current task. Corresponds to the JSON property nextTasksExecutionPolicy

Returns:

  • (String)


8564
8565
8566
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8564

def next_tasks_execution_policy
  @next_tasks_execution_policy
end

#parametersHash<String,Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaEventParameter>

Optional. The customized parameters the user can pass to this task. Corresponds to the JSON property parameters



8569
8570
8571
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8569

def parameters
  @parameters
end

#success_policyGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSuccessPolicy

Policy that dictates the behavior for the task after it completes successfully. Corresponds to the JSON property successPolicy



8574
8575
8576
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8574

def success_policy
  @success_policy
end

#synchronous_call_failure_policyGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy

Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a retry_strategy of NONE will be applied). Corresponds to the JSON property synchronousCallFailurePolicy



8581
8582
8583
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8581

def synchronous_call_failure_policy
  @synchronous_call_failure_policy
end

#taskString

Optional. The name for the task. Corresponds to the JSON property task

Returns:

  • (String)


8586
8587
8588
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8586

def task
  @task
end

#task_execution_strategyString

Optional. The policy dictating the execution strategy of this task. Corresponds to the JSON property taskExecutionStrategy

Returns:

  • (String)


8591
8592
8593
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8591

def task_execution_strategy
  @task_execution_strategy
end

#task_idString

Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks ( via field next_tasks.task_id). Corresponds to the JSON property taskId

Returns:

  • (String)


8599
8600
8601
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8599

def task_id
  @task_id
end

#task_templateString

Optional. Used to define task-template name if task is of type task-template Corresponds to the JSON property taskTemplate

Returns:

  • (String)


8604
8605
8606
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8604

def task_template
  @task_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8611

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @failure_policy = args[:failure_policy] if args.key?(:failure_policy)
  @json_validation_option = args[:json_validation_option] if args.key?(:json_validation_option)
  @next_tasks = args[:next_tasks] if args.key?(:next_tasks)
  @next_tasks_execution_policy = args[:next_tasks_execution_policy] if args.key?(:next_tasks_execution_policy)
  @parameters = args[:parameters] if args.key?(:parameters)
  @success_policy = args[:success_policy] if args.key?(:success_policy)
  @synchronous_call_failure_policy = args[:synchronous_call_failure_policy] if args.key?(:synchronous_call_failure_policy)
  @task = args[:task] if args.key?(:task)
  @task_execution_strategy = args[:task_execution_strategy] if args.key?(:task_execution_strategy)
  @task_id = args[:task_id] if args.key?(:task_id)
  @task_template = args[:task_template] if args.key?(:task_template)
end