Reference documentation and code samples for the Google Cloud Batch V1 Client class LifecyclePolicy.
LifecyclePolicy describes how to deal with task failures based on different conditions.
Generated from protobuf message google.cloud.batch.v1.LifecyclePolicy
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ action |
int
Action to execute when ActionCondition is true. |
↳ action_condition |
Google\Cloud\Batch\V1\LifecyclePolicy\ActionCondition
Conditions that decide why a task failure is dealt with a specific action. |
getAction
Action to execute when ActionCondition is true.
Generated from protobuf field .google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Returns | |
---|---|
Type | Description |
int |
setAction
Action to execute when ActionCondition is true.
Generated from protobuf field .google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getActionCondition
Conditions that decide why a task failure is dealt with a specific action.
Generated from protobuf field .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Batch\V1\LifecyclePolicy\ActionCondition|null |
hasActionCondition
clearActionCondition
setActionCondition
Conditions that decide why a task failure is dealt with a specific action.
Generated from protobuf field .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Batch\V1\LifecyclePolicy\ActionCondition
|
Returns | |
---|---|
Type | Description |
$this |