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.
69 70 71 |
# File 'lib/google/apis/batch_v1/classes.rb', line 69 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
67 68 69 |
# File 'lib/google/apis/batch_v1/classes.rb', line 67 def exit_codes @exit_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
74 75 76 |
# File 'lib/google/apis/batch_v1/classes.rb', line 74 def update!(**args) @exit_codes = args[:exit_codes] if args.key?(:exit_codes) end |