Google Cloud Batch V1 Client - Class ActionCondition (0.6.0)

Reference documentation and code samples for the Google Cloud Batch V1 Client class ActionCondition.

Conditions for actions to deal with task failures.

Generated from protobuf message google.cloud.batch.v1.LifecyclePolicy.ActionCondition

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ exit_codes array

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.

getExitCodes

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExitCodes

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.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this