otcextensions.sdk.dcs.v1.backup¶
The DCS Backup Class¶
The Backup
class inherits from
Resource
.
- class otcextensions.sdk.dcs.v1.backup.Backup(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- resources_key: ty.Optional[str] = 'backup_record_response'¶
Plural form of key for resource.
- base_path: str = '/instances/%(instance_id)s/backups'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- created_at¶
Time at which the backup task is created.
- description¶
Description of the DCS instance backup.
- error_code¶
Error code returned if DCS instance backup fails.
- id¶
Backup ID
- is_restorable¶
An indicator of whether restoration is supported. The value can be TRUE or FALSE.
- name: ty.Union[Body, URI]¶
Backup name
- period¶
Time segment in which DCS instance backup was performed.
- progress¶
Backup progress.
- size¶
Size of the backup file. Unit: byte.
- status¶
Backup status. * waiting: DCS instance backup is waiting to begin. * backuping: DCS instance backup is in progress. * succeed: DCS instance backup succeeded. * failed: DCS instance backup failed. * expired: The backup file has expired. * deleted: The backup file has been deleted manually.
- type¶
Backup type. * manual: manual backup. * auto: automatic backup.
- updated_at¶
Time at which DCS instance backup is completed.