Google Cloud Batch V1 Client - Class ActionCondition (0.2.2)

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.

Generated from protobuf field repeated int32 exit_codes = 1;

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.

Generated from protobuf field repeated int32 exit_codes = 1;

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this