Class: Google::Apis::WorkflowexecutionsV1::Execution
- Inherits:
-
Object
- Object
- Google::Apis::WorkflowexecutionsV1::Execution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workflowexecutions_v1/classes.rb,
lib/google/apis/workflowexecutions_v1/representations.rb,
lib/google/apis/workflowexecutions_v1/representations.rb
Overview
A running instance of a Workflow.
Instance Attribute Summary collapse
-
#argument ⇒ String
Input parameters of the execution represented as a JSON string.
-
#call_log_level ⇒ String
The call logging level associated to this execution.
-
#end_time ⇒ String
Output only.
-
#error ⇒ Google::Apis::WorkflowexecutionsV1::Error
Error describes why the execution was abnormally terminated.
-
#name ⇒ String
Output only.
-
#result ⇒ String
Output only.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#status ⇒ Google::Apis::WorkflowexecutionsV1::Status
Preview: This field is covered by the > Pre-GA Offerings Terms of > the Google Cloud Terms of Service.
-
#workflow_revision_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Execution
constructor
A new instance of Execution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Execution
Returns a new instance of Execution.
137 138 139 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#argument ⇒ String
Input parameters of the execution represented as a JSON string. The size limit
is 32KB. Note: If you are using the REST API directly to run your workflow,
you must escape any JSON string value of argument. Example: '"argument":"\
"firstName\":\"FIRST\",\"lastName\":\"LAST\""'
Corresponds to the JSON property argument
80 81 82 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 80 def argument @argument end |
#call_log_level ⇒ String
The call logging level associated to this execution.
Corresponds to the JSON property callLogLevel
85 86 87 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 85 def call_log_level @call_log_level end |
#end_time ⇒ String
Output only. Marks the end of execution, successful or not.
Corresponds to the JSON property endTime
90 91 92 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 90 def end_time @end_time end |
#error ⇒ Google::Apis::WorkflowexecutionsV1::Error
Error describes why the execution was abnormally terminated.
Corresponds to the JSON property error
95 96 97 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 95 def error @error end |
#name ⇒ String
Output only. The resource name of the execution. Format: projects/project/
locations/location/workflows/workflow/executions/execution
Corresponds to the JSON property name
101 102 103 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 101 def name @name end |
#result ⇒ String
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
107 108 109 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 107 def result @result end |
#start_time ⇒ String
Output only. Marks the beginning of execution.
Corresponds to the JSON property startTime
112 113 114 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 112 def start_time @start_time end |
#state ⇒ String
Output only. Current state of the execution.
Corresponds to the JSON property state
117 118 119 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 117 def state @state end |
#status ⇒ Google::Apis::WorkflowexecutionsV1::Status
Preview: This field is covered by the > Pre-GA Offerings Terms of > the Google Cloud Terms of Service. Pre-GA features might have limited > support, and changes to pre-GA features might not be compatible with > other pre-GA versions. For more information, see the > launch stage descriptions. > This field is usable only if your project has access. See the > access request page. Represents the current status of this execution. Corresponds to the JSON property
status
130 131 132 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 130 def status @status end |
#workflow_revision_id ⇒ String
Output only. Revision of the workflow this execution is using.
Corresponds to the JSON property workflowRevisionId
135 136 137 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 135 def workflow_revision_id @workflow_revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 142 def update!(**args) @argument = args[:argument] if args.key?(:argument) @call_log_level = args[:call_log_level] if args.key?(:call_log_level) @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) @status = args[:status] if args.key?(:status) @workflow_revision_id = args[:workflow_revision_id] if args.key?(:workflow_revision_id) end |