# Google Cloud Batch V1 Client - Class Action (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.7 1.0.3 0.17.0 0.16.10 0.15.0 0.14.0 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Google Cloud Batch V1 Client class Action.

Action on task failures based on different conditions.

Protobuf type `google.cloud.batch.v1.LifecyclePolicy.Action`

## Namespace

Google \\ Cloud \\ Batch \\ V1 \\ LifecyclePolicy

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ACTION_UNSPECIFIED

    Value: 0

Action unspecified.

Generated from protobuf enum `ACTION_UNSPECIFIED = 0;`

### RETRY_TASK

    Value: 1

Action that tasks in the group will be scheduled to re-execute.

Generated from protobuf enum `RETRY_TASK = 1;`

### FAIL_TASK

    Value: 2

Action that tasks in the group will be stopped immediately.

Generated from protobuf enum `FAIL_TASK = 2;`