Class Backup (0.1.4)

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

Message describing a Backup object.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
name str
Output only. Identifier. Name of the backup to create. It must have the format\ "projects/. {backup} cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.
description str
Output only. The description of the Backup instance (2048 characters or less). This field is a member of oneof_ _description.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the instance was created. This field is a member of oneof_ _create_time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the instance was updated. This field is a member of oneof_ _update_time.
labels MutableMapping[str, str]
Optional. Resource labels to represent user provided metadata. No labels currently defined.
enforced_retention_end_time google.protobuf.timestamp_pb2.Timestamp
Optional. The backup can not be deleted before this time. This field is a member of oneof_ _enforced_retention_end_time.
expire_time google.protobuf.timestamp_pb2.Timestamp
Optional. When this backup is automatically expired. This field is a member of oneof_ _expire_time.
consistency_time google.protobuf.timestamp_pb2.Timestamp
Output only. The point in time when this backup was captured from the source. This field is a member of oneof_ _consistency_time.
etag str
Optional. Server specified ETag to prevent updates from overwriting each other. This field is a member of oneof_ _etag.
state google.cloud.backupdr_v1.types.Backup.State
Output only. The Backup resource instance state.
service_locks MutableSequence[google.cloud.backupdr_v1.types.BackupLock]
Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
backup_appliance_locks MutableSequence[google.cloud.backupdr_v1.types.BackupLock]
Optional. The list of BackupLocks taken by the accessor Backup Appliance.
compute_instance_backup_properties google.cloud.backupdr_v1.types.ComputeInstanceBackupProperties
Output only. Compute Engine specific backup properties. This field is a member of oneof_ backup_properties.
backup_appliance_backup_properties google.cloud.backupdr_v1.types.BackupApplianceBackupProperties
Output only. Backup Appliance specific backup properties. This field is a member of oneof_ backup_properties.
backup_type google.cloud.backupdr_v1.types.Backup.BackupType
Output only. Type of the backup, unspecified, scheduled or ondemand.
gcp_backup_plan_info google.cloud.backupdr_v1.types.Backup.GCPBackupPlanInfo
Output only. Configuration for a Google Cloud resource. This field is a member of oneof_ plan_info.
resource_size_bytes int
Output only. source resource size in bytes at the time of the backup.

Classes

BackupType

BackupType(value)

Type of the backup, scheduled or ondemand.

GCPBackupPlanInfo

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

GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup.

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)

Holds the state of the backup resource.