0.1.4 (latest) 0.1.3

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

A backup resource.

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. The resource name of the backup. Format: projects/{project}/backups/{backup}. |
| `kind` | `str` Output only. This is always `sql#backup`. |
| `self_link` | `str` Output only. The URI of this resource. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.Backup.SqlBackupType` Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or "FINAL". |
| `description` | `str` The description of this backup. |
| `instance` | `str` The name of the database instance. |
| `location` | `str` The storage location of the backups. The location can be multi-regional. |
| `backup_interval` | `google.type.interval_pb2.Interval` Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.Backup.SqlBackupState` Output only. The state of this backup. |
| `error` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.OperationError` Output only. Information about why the backup operation fails (for example, when the backup state fails). |
| `kms_key` | `str` Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption. |
| `kms_key_version` | `str` Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance. |
| `backup_kind` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.SqlBackupKind` Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. |
| `time_zone` | `str` Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen. |
| `ttl_days` | `int` Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created. This field is a member of `oneof`_ `expiration`. |
| `expiry_time` | `google.protobuf.timestamp_pb2.Timestamp` Backup expiration time. A UTC timestamp of when this resource expired. This field is a member of `oneof`_ `expiration`. |
| `database_version` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.SqlDatabaseVersion` Output only. The database version of the instance of at the time this backup was made. |
| `max_chargeable_bytes` | `int` Output only. The maximum chargeable bytes for the backup. This field is a member of `oneof`_ `_max_chargeable_bytes`. |
| `instance_deletion_time` | `google.protobuf.timestamp_pb2.Timestamp` Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted. |
| `instance_settings` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.DatabaseInstance` Optional. Output only. Instance setting of the source instance that's associated with this backup. |
| `backup_run` | `str` Output only. The mapping to backup run resource used for IAM validations. |
| `satisfies_pzs` | `google.protobuf.wrappers_pb2.BoolValue` Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use. |
| `satisfies_pzi` | `google.protobuf.wrappers_pb2.BoolValue` Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use. |

## Classes

### SqlBackupState

    SqlBackupState(value)

The backup's state

### SqlBackupType

    SqlBackupType(value)

The backup type.