# Google Cloud OsConfig V1 Client - Class State (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class State.

Enumeration of the various states a patch job passes through as it
executes.

Protobuf type `google.cloud.osconfig.v1.PatchJob.State`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ PatchJob

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

State must be specified.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### STARTED

    Value: 1

The patch job was successfully initiated.

Generated from protobuf enum `STARTED = 1;`

### INSTANCE_LOOKUP

    Value: 2

The patch job is looking up instances to run the patch on.

Generated from protobuf enum `INSTANCE_LOOKUP = 2;`

### PATCHING

    Value: 3

Instances are being patched.

Generated from protobuf enum `PATCHING = 3;`

### SUCCEEDED

    Value: 4

Patch job completed successfully.

Generated from protobuf enum `SUCCEEDED = 4;`

### COMPLETED_WITH_ERRORS

    Value: 5

Patch job completed but there were errors.

Generated from protobuf enum `COMPLETED_WITH_ERRORS = 5;`

### CANCELED

    Value: 6

The patch job was canceled.

Generated from protobuf enum `CANCELED = 6;`

### TIMED_OUT

    Value: 7

The patch job timed out.

Generated from protobuf enum `TIMED_OUT = 7;`