# Secret Manager V1BETA2 API - Module Google::Cloud::SecretManager::V1beta2::SecretVersion::State (v0.8.0)

0.8.0 (latest) 0.7.1 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Secret Manager V1BETA2 API module Google::Cloud::SecretManager::V1beta2::SecretVersion::State.

The state of a
[SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") may
be accessed.

### DISABLED

**value:** 2  
The [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion-State#Google__Cloud__SecretManager__V1beta2__SecretVersion__State__ENABLED "Google::Cloud::SecretManager::V1beta2::SecretVersion::State::ENABLED (constant)")
state.

### DESTROYED

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