# Class SecretVersion (2.29.0)

2.29.0 (latest) 2.28.0 2.27.0 2.26.0 2.25.0 2.23.3 2.22.1 2.21.1 2.20.2 2.19.0 2.18.3 2.17.0 2.16.3 2.15.1 2.14.0 2.13.0 2.12.6 2.11.1 2.10.0 2.9.2 2.8.0 2.7.3 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.2 0.2.0 0.1.1

    SecretVersion(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A secret version resource in the Secret Manager API.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The resource name of the SecretVersion in the format `projects/*/secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time at which the SecretVersion was created. |
| `destroy_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/secretmanager/latest/google.cloud.secretmanager_v1beta1.types.SecretVersion.State` Output only. The current state of the SecretVersion. |

## Classes

### State

    State(value)

The state of a
SecretVersion,
indicating if it can be accessed.