Google Cloud Batch V1 Client - Class ActionCondition (0.16.10)

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

Namespace

Google \ Cloud \ Batch \ V1 \ LifecyclePolicy

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var int[]
Returns
Type Description
$this