Class Backup (2.33.0)

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

A Backup of a Secret. Backups are regional resources.

Attributes

Name Description
name str
Identifier. Resource name of the backup. Format: projects/{project}/locations/{location}/backups/{backup}
source_secret str
Required. Immutable. Resource name of the Secret that this backup is for. The source Secret can be in a different region than the Backup. This field is immutable after creation. Formats: - projects/{project}/locations/{location}/secrets/{secret} (for regional secrets) - projects/{project}/secrets/{secret} (for global secrets)
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time at which the backup resource was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time at which the backup resource was last updated.
source_secret_create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Creation time of the source Secret at the moment the backup was initiated.
version_count int
Output only. Number of non-destroyed secret versions contained in this backup.
labels MutableMapping[str, str]
Optional. Labels with user-defined metadata.
state google.cloud.secretmanager_v1.types.Backup.State
Output only. Current state of the Backup.
etag str
Optional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.

Classes

LabelsEntry

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

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

State

State(value)

Enum representing the state of the Backup.