Class SecretVersion (2.16.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 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 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.

Values: STATE_UNSPECIFIED (0): Not specified. This value is unused and invalid. ENABLED (1): The SecretVersion may be accessed. DISABLED (2): The SecretVersion may not be accessed, but the secret data is still available and can be placed back into the ENABLED state. DESTROYED (3): The SecretVersion is destroyed and the secret data is no longer stored. A version may not leave this state once entered.