Class: Google::Apis::BatchV1::TaskExecution
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::TaskExecution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
This Task Execution field includes detail information for task execution procedures, based on StatusEvent types.
Instance Attribute Summary collapse
-
#exit_code ⇒ Fixnum
When task is completed as the status of FAILED or SUCCEEDED, exit code is for one task execution result, default is 0 as success.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskExecution
constructor
A new instance of TaskExecution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskExecution
Returns a new instance of TaskExecution.
1817 1818 1819 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exit_code ⇒ Fixnum
When task is completed as the status of FAILED or SUCCEEDED, exit code is for
one task execution result, default is 0 as success.
Corresponds to the JSON property exitCode
1815 1816 1817 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1815 def exit_code @exit_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1822 1823 1824 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1822 def update!(**args) @exit_code = args[:exit_code] if args.key?(:exit_code) end |