Class Backup (0.3.7)

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

Attributes

NameDescription
name str
Identifier. The resource name of the backup. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}.
state google.cloud.netapp_v1.types.Backup.State
Output only. The backup state.
description str
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
volume_usage_bytes int
Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.
backup_type google.cloud.netapp_v1.types.Backup.Type
Output only. Type of backup, manually created or created by a backup policy.
source_volume str
Volume full name of this backup belongs to. Format: projects/{projects_id}/locations/{location}/volumes/{volume_id}
source_snapshot str
If specified, backup will be created from the given snapshot. If not specified, there will be a new snapshot taken to initiate the backup creation. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id} This field is a member of oneof_ _source_snapshot.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the backup was created.
labels MutableMapping[str, str]
Resource labels to represent user provided metadata.
chain_storage_bytes int
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)

Classes

LabelsEntry

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

The abstract base class for a message.

Parameters
NameDescription
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)

The Backup States

Values: STATE_UNSPECIFIED (0): State not set. CREATING (1): Backup is being created. While in this state, the snapshot for the backup point-in-time may not have been created yet, and so the point-in-time may not have been fixed. UPLOADING (2): Backup is being uploaded. While in this state, none of the writes to the volume will be included in the backup. READY (3): Backup is available for use. DELETING (4): Backup is being deleted. ERROR (5): Backup is not valid and cannot be used for creating new volumes or restoring existing volumes. UPDATING (6): Backup is being updated.

Type

Type(value)

Backup types.

Values: TYPE_UNSPECIFIED (0): Unspecified backup type. MANUAL (1): Manual backup type. SCHEDULED (2): Scheduled backup type.