# Secret Manager V1 Client - Class State (2.3.0)

2.3.0 (latest) 2.2.2 2.1.1 2.0.2 1.15.4 1.13.0 1.12.3 1.11.0 1.10.4 1.9.7 Reference documentation and code samples for the Secret Manager V1 Client class State.

The state of a
[SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion), indicating if
it can be accessed.

Protobuf type `google.cloud.secretmanager.v1.SecretVersion.State`

## Namespace

Google \\ Cloud \\ SecretManager \\ V1 \\ SecretVersion

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

Not specified. This value is unused and invalid.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### ENABLED

    Value: 1

The [SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) may be
accessed.

Generated from protobuf enum `ENABLED = 1;`

### DISABLED

    Value: 2

The [SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) may not
be accessed, but the secret data is still available and can be placed
back into the
[ENABLED](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion.State#_Google_Cloud_SecretManager_V1_SecretVersion_State__ENABLED)
state.

Generated from protobuf enum `DISABLED = 2;`

### DESTROYED

    Value: 3

The [SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) is
destroyed and the secret data is no longer stored. A version may not
leave this state once entered.

Generated from protobuf enum `DESTROYED = 3;`