Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTaskConfig
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaTaskConfig
- 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
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Optional.
-
#error_catcher_config_id ⇒ String
Optional.
-
#external_task_type ⇒ String
Optional.
-
#failure_policy ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy
Policy that defines the task retry logic and failure type.
-
#json_validation_option ⇒ String
Optional.
-
#next_tasks ⇒ Array<Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaNextTask>
Optional.
-
#next_tasks_execution_policy ⇒ String
Optional.
-
#parameters ⇒ Hash<String,Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaEventParameter>
Optional.
-
#success_policy ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSuccessPolicy
Policy that dictates the behavior for the task after it completes successfully.
-
#synchronous_call_failure_policy ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy
Policy that defines the task retry logic and failure type.
-
#task ⇒ String
Optional.
-
#task_execution_strategy ⇒ String
Optional.
-
#task_id ⇒ String
Required.
-
#task_template ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTaskConfig
constructor
A new instance of GoogleCloudIntegrationsV1alphaTaskConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTaskConfig
Returns a new instance of GoogleCloudIntegrationsV1alphaTaskConfig.
8531 8532 8533 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. User-provided description intended to give additional business
context about the task.
Corresponds to the JSON property description
8446 8447 8448 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8446 def description @description end |
#display_name ⇒ String
Optional. User-provided label that is attached to this TaskConfig in the UI.
Corresponds to the JSON property displayName
8451 8452 8453 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8451 def display_name @display_name end |
#error_catcher_config_id ⇒ String
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
8457 8458 8459 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8457 def error_catcher_config_id @error_catcher_config_id end |
#external_task_type ⇒ String
Optional. External task type of the task
Corresponds to the JSON property externalTaskType
8462 8463 8464 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8462 def external_task_type @external_task_type end |
#failure_policy ⇒ Google::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
8469 8470 8471 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8469 def failure_policy @failure_policy end |
#json_validation_option ⇒ String
Optional. If set, overrides the option configured in the Task implementation
class.
Corresponds to the JSON property jsonValidationOption
8475 8476 8477 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8475 def json_validation_option @json_validation_option end |
#next_tasks ⇒ Array<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
8483 8484 8485 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8483 def next_tasks @next_tasks end |
#next_tasks_execution_policy ⇒ String
Optional. The policy dictating the execution of the next set of tasks for the
current task.
Corresponds to the JSON property nextTasksExecutionPolicy
8489 8490 8491 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8489 def next_tasks_execution_policy @next_tasks_execution_policy end |
#parameters ⇒ Hash<String,Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaEventParameter>
Optional. The customized parameters the user can pass to this task.
Corresponds to the JSON property parameters
8494 8495 8496 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8494 def parameters @parameters end |
#success_policy ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSuccessPolicy
Policy that dictates the behavior for the task after it completes successfully.
Corresponds to the JSON property successPolicy
8499 8500 8501 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8499 def success_policy @success_policy end |
#synchronous_call_failure_policy ⇒ Google::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
8506 8507 8508 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8506 def synchronous_call_failure_policy @synchronous_call_failure_policy end |
#task ⇒ String
Optional. The name for the task.
Corresponds to the JSON property task
8511 8512 8513 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8511 def task @task end |
#task_execution_strategy ⇒ String
Optional. The policy dictating the execution strategy of this task.
Corresponds to the JSON property taskExecutionStrategy
8516 8517 8518 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8516 def task_execution_strategy @task_execution_strategy end |
#task_id ⇒ String
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
8524 8525 8526 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8524 def task_id @task_id end |
#task_template ⇒ String
Optional. Used to define task-template name if task is of type task-template
Corresponds to the JSON property taskTemplate
8529 8530 8531 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8529 def task_template @task_template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8536 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @error_catcher_config_id = args[:error_catcher_config_id] if args.key?(:error_catcher_config_id) @external_task_type = args[:external_task_type] if args.key?(:external_task_type) @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 |