Class SecretVersion (2.1.0)

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

A secret version resource in the Secret Manager API.

Attributes

NameDescription
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 .timestamp.Timestamp
Output only. The time at which the SecretVersion was created.
destroy_time .timestamp.Timestamp
Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.
state .resources.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.