Class: Google::Apis::BatchV1::ActionCondition
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::ActionCondition
- 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
Conditions for actions to deal with task failures.
Instance Attribute Summary collapse
-
#exit_codes ⇒ Array<Fixnum>
Exit codes of a task execution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionCondition
constructor
A new instance of ActionCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActionCondition
Returns a new instance of ActionCondition.
79 80 81 |
# File 'lib/google/apis/batch_v1/classes.rb', line 79 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exit_codes ⇒ Array<Fixnum>
Exit codes of a task execution. If there are more than 1 exit codes, when task
executes with any of the exit code in the list, the condition is met and the
action will be executed.
Corresponds to the JSON property exitCodes
77 78 79 |
# File 'lib/google/apis/batch_v1/classes.rb', line 77 def exit_codes @exit_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
84 85 86 |
# File 'lib/google/apis/batch_v1/classes.rb', line 84 def update!(**args) @exit_codes = args[:exit_codes] if args.key?(:exit_codes) end |