Class: Google::Apis::WorkflowexecutionsV1beta::Execution

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/workflowexecutions_v1beta/classes.rb,
generated/google/apis/workflowexecutions_v1beta/representations.rb,
generated/google/apis/workflowexecutions_v1beta/representations.rb

Overview

A running instance of a Workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Execution

Returns a new instance of Execution.



111
112
113
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 111

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

Instance Attribute Details

#argumentString

Input parameters of the execution represented as a JSON string. The size limit is 32KB. Corresponds to the JSON property argument

Returns:

  • (String)


72
73
74
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 72

def argument
  @argument
end

#end_timeString

Output only. Marks the end of execution, successful or not. Corresponds to the JSON property endTime

Returns:

  • (String)


77
78
79
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 77

def end_time
  @end_time
end

#errorGoogle::Apis::WorkflowexecutionsV1beta::Error

Error describes why the execution was abnormally terminated. Corresponds to the JSON property error



82
83
84
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 82

def error
  @error
end

#nameString

Output only. The resource name of the execution. Format: projects/project/ locations/location/workflows/workflow/executions/execution Corresponds to the JSON property name

Returns:

  • (String)


88
89
90
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 88

def name
  @name
end

#resultString

Output only. Output of the execution represented as a JSON string. The value can only be present if the execution's state is SUCCEEDED. Corresponds to the JSON property result

Returns:

  • (String)


94
95
96
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 94

def result
  @result
end

#start_timeString

Output only. Marks the beginning of execution. Corresponds to the JSON property startTime

Returns:

  • (String)


99
100
101
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 99

def start_time
  @start_time
end

#stateString

Output only. Current state of the execution. Corresponds to the JSON property state

Returns:

  • (String)


104
105
106
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 104

def state
  @state
end

#workflow_revision_idString

Output only. Revision of the workflow this execution is using. Corresponds to the JSON property workflowRevisionId

Returns:

  • (String)


109
110
111
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 109

def workflow_revision_id
  @workflow_revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



116
117
118
119
120
121
122
123
124
125
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 116

def update!(**args)
  @argument = args[:argument] if args.key?(:argument)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error = args[:error] if args.key?(:error)
  @name = args[:name] if args.key?(:name)
  @result = args[:result] if args.key?(:result)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @workflow_revision_id = args[:workflow_revision_id] if args.key?(:workflow_revision_id)
end