Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cinderclient/v2/__pycache__/volume_backups_restore.cpython-39.pyc
Ðазад
a t�h� � @ s8 d Z ddlmZ G dd� dej�ZG dd� dej�ZdS )z`Volume Backups Restore interface (v2 extension). This is part of the Volume Backups interface. � )�basec @ s e Zd ZdZdd� ZdS )�VolumeBackupsRestorez8A Volume Backups Restore represents a restore operation.c C s d| j S )Nz<VolumeBackupsRestore: %s>)� volume_id)�self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cinderclient/v2/volume_backups_restore.py�__repr__ s zVolumeBackupsRestore.__repr__N)�__name__� __module__�__qualname__�__doc__r r r r r r s r c @ s e Zd ZdZeZddd�ZdS )�VolumeBackupRestoreManagerz/Manage :class:`VolumeBackupsRestore` resources.Nc C s d||d�i}| � d| |d�S )a Restore a backup to a volume. :param backup_id: The ID of the backup to restore. :param volume_id: The ID of the volume to restore the backup to. :param name : The name for new volume creation to restore. :rtype: :class:`Restore` �restore)r �namez/backups/%s/restore)�_create)r Z backup_idr r �bodyr r r r "