# Google Cloud OsConfig V1 Client - Class PatchState (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 PatchState.

Patch state of an instance.

Protobuf type `google.cloud.osconfig.v1.Instance.PatchState`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ Instance

## Methods

### static::name

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

### static::value

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

## Constants

### PATCH_STATE_UNSPECIFIED

    Value: 0

Unspecified.

Generated from protobuf enum `PATCH_STATE_UNSPECIFIED = 0;`

### PENDING

    Value: 1

The instance is not yet notified.

Generated from protobuf enum `PENDING = 1;`

### INACTIVE

    Value: 2

Instance is inactive and cannot be patched.

Generated from protobuf enum `INACTIVE = 2;`

### NOTIFIED

    Value: 3

The instance is notified that it should be patched.

Generated from protobuf enum `NOTIFIED = 3;`

### STARTED

    Value: 4

The instance has started the patching process.

Generated from protobuf enum `STARTED = 4;`

### DOWNLOADING_PATCHES

    Value: 5

The instance is downloading patches.

Generated from protobuf enum `DOWNLOADING_PATCHES = 5;`

### APPLYING_PATCHES

    Value: 6

The instance is applying patches.

Generated from protobuf enum `APPLYING_PATCHES = 6;`

### REBOOTING

    Value: 7

The instance is rebooting.

Generated from protobuf enum `REBOOTING = 7;`

### SUCCEEDED

    Value: 8

The instance has completed applying patches.

Generated from protobuf enum `SUCCEEDED = 8;`

### SUCCEEDED_REBOOT_REQUIRED

    Value: 9

The instance has completed applying patches but a reboot is required.

Generated from protobuf enum `SUCCEEDED_REBOOT_REQUIRED = 9;`

### FAILED

    Value: 10

The instance has failed to apply the patch.

Generated from protobuf enum `FAILED = 10;`

### ACKED

    Value: 11

The instance acked the notification and will start shortly.

Generated from protobuf enum `ACKED = 11;`

### TIMED_OUT

    Value: 12

The instance exceeded the time out while applying the patch.

Generated from protobuf enum `TIMED_OUT = 12;`

### RUNNING_PRE_PATCH_STEP

    Value: 13

The instance is running the pre-patch step.

Generated from protobuf enum `RUNNING_PRE_PATCH_STEP = 13;`

### RUNNING_POST_PATCH_STEP

    Value: 14

The instance is running the post-patch step.

Generated from protobuf enum `RUNNING_POST_PATCH_STEP = 14;`

### NO_AGENT_DETECTED

    Value: 15

The service could not detect the presence of the agent. Check to ensure
that the agent is installed, running, and able to communicate with the
service.

Generated from protobuf enum `NO_AGENT_DETECTED = 15;`