# Secret Manager V1beta1 API - Class Google::Cloud::SecretManager::V1beta1::SecretVersion (v0.22.0)

0.22.0 (latest) 0.21.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.1 0.14.2 0.13.0 0.12.2 0.11.0 0.10.0 0.9.0 0.8.5 Reference documentation and code samples for the Secret Manager V1beta1 API class Google::Cloud::SecretManager::V1beta1::SecretVersion.

A secret version resource in the Secret Manager API.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion "Google::Cloud::SecretManager::V1beta1::SecretVersion (class)") was created.

### #destroy_time

    def destroy_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. The time this [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion "Google::Cloud::SecretManager::V1beta1::SecretVersion (class)") was destroyed. Only present if [state](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion#Google__Cloud__SecretManager__V1beta1__SecretVersion_state_instance_ "Google::Cloud::SecretManager::V1beta1::SecretVersion#state (method)") is [DESTROYED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion-State#Google__Cloud__SecretManager__V1beta1__SecretVersion__State__DESTROYED "Google::Cloud::SecretManager::V1beta1::SecretVersion::State::DESTROYED (constant)").

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The resource name of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion "Google::Cloud::SecretManager::V1beta1::SecretVersion (class)") in the format `projects/*/secrets/*/versions/*`.


  [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion "Google::Cloud::SecretManager::V1beta1::SecretVersion (class)") IDs in a
  [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-Secret "Google::Cloud::SecretManager::V1beta1::Secret (class)") start at 1 and are
  incremented for each subsequent version of the secret.

### #state

    def state() -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion::State

**Returns**

- ([::Google::Cloud::SecretManager::V1beta1::SecretVersion::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion-State)) --- Output only. The current state of the [SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretVersion "Google::Cloud::SecretManager::V1beta1::SecretVersion (class)").