# Secret Manager V1 API - Module Google::Cloud::SecretManager::V1::SecretVersion::State (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.21.0 0.20.0 0.19.2 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Secret Manager V1 API module Google::Cloud::SecretManager::V1::SecretVersion::State.

The state of a
[SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)"), indicating if
it can be accessed.

## Constants

### STATE_UNSPECIFIED

**value:** 0  
Not specified. This value is unused and invalid.

### ENABLED

**value:** 1  
The [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") may be
accessed.

### DISABLED

**value:** 2  
The [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") may not
be accessed, but the secret data is still available and can be placed
back into the
[ENABLED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion-State#Google__Cloud__SecretManager__V1__SecretVersion__State__ENABLED "Google::Cloud::SecretManager::V1::SecretVersion::State::ENABLED (constant)")
state.

### DESTROYED

**value:** 3  
The [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") is
destroyed and the secret data is no longer stored. A version may not
leave this state once entered.