0.10.4 (latest) 0.10.3 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.5 0.1.7

    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** |
| `compute_instance_backup_properties` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.ComputeInstanceBackupProperties` Output only. Compute Engine specific backup properties. This field is a member of `oneof`_ `backup_properties`. |
| `cloud_sql_instance_backup_properties` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.CloudSqlInstanceBackupProperties` Output only. Cloud SQL specific backup properties. This field is a member of `oneof`_ `backup_properties`. |
| `backup_appliance_backup_properties` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BackupApplianceBackupProperties` Output only. Backup Appliance specific backup properties. This field is a member of `oneof`_ `backup_properties`. |
| `alloy_db_backup_properties` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.AlloyDbClusterBackupProperties` Output only. AlloyDB specific backup properties. This field is a member of `oneof`_ `backup_properties`. |
| `disk_backup_properties` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.DiskBackupProperties` Output only. Disk specific backup properties. This field is a member of `oneof`_ `backup_properties`. |
| `gcp_backup_plan_info` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.Backup.GCPBackupPlanInfo` Output only. Configuration for a Google Cloud resource. This field is a member of `oneof`_ `plan_info`. |
| `gcp_resource` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BackupGcpResource` Output only. Unique identifier of the GCP resource that is being backed up. This field is a member of `oneof`_ `source_resource`. |
| `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`. |
| `backup_retention_inheritance` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BackupVault.BackupRetentionInheritance` Output only. Setting for how the enforced retention end time is inherited. This value is copied from this backup's BackupVault. This field is a member of `oneof`_ `_backup_retention_inheritance`. |
| `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` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.Backup.State` Output only. The Backup resource instance state. |
| `service_locks` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BackupLock]` Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup. |
| `backup_appliance_locks` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.BackupLock]` Optional. The list of BackupLocks taken by the accessor Backup Appliance. |
| `backup_type` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.Backup.BackupType` Output only. Type of the backup, unspecified, scheduled or ondemand. |
| `resource_size_bytes` | `int` Output only. source resource size in bytes at the time of the backup. |
| `satisfies_pzs` | `bool` Optional. Output only. Reserved for future use. This field is a member of `oneof`_ `_satisfies_pzs`. |
| `satisfies_pzi` | `bool` Optional. Output only. Reserved for future use. This field is a member of `oneof`_ `_satisfies_pzi`. |
| `kms_key_versions` | `MutableSequence[str]` Optional. Output only. The list of KMS key versions used to encrypt the backup. |
| `verification_summary` | `https://docs.cloud.google.com/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1beta.types.VerificationSummary` Output only. The restore verification status 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.