# Google Cloud Maintenance Api V1beta Client - Class State (0.4.0)

0.4.0 (latest) 0.3.2 0.2.1 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Maintenance Api V1beta Client class State.

State is the state of a resource maintenance.

Protobuf type `google.cloud.maintenance.api.v1beta.ResourceMaintenance.State`

## Namespace

Google \\ Cloud \\ Maintenance \\ Api \\ V1beta \\ ResourceMaintenance

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

Unspecified state.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### SCHEDULED

    Value: 1

Scheduled for a particular window. For disruptive maintenance it should
respect maintenance policy, i.e. its available windows, exclusions and
notification period.

Generated from protobuf enum `SCHEDULED = 1;`

### RUNNING

    Value: 2

Maintenance is ongoing.

Generated from protobuf enum `RUNNING = 2;`

### CANCELLED

    Value: 3

No longer planned, typically when other maintenance (e.g. upgrade to
newer version) already happened, or the user skipped the maintenance.

Generated from protobuf enum `CANCELLED = 3;`

### SUCCEEDED

    Value: 4

Successfully completed.

Generated from protobuf enum `SUCCEEDED = 4;`