Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
contego / home / tvault / .virtenv / lib / python2.7 / site-packages / cinderclient / v2 / volume_backups.pyc
Size: Mime:
ó
³EYc@s\dZddlmZddlmZdejfd„ƒYZdejfd„ƒYZdS(s*
Volume Backups interface (v2 extension).
iÿÿÿÿ(tbasetVolumeBackupcBs5eZdZd„Zed„Zd„Zd„ZRS(s4A volume backup is a block level backup of a volume.cCsd|jS(Ns<VolumeBackup: %s>(tid(tself((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyt__repr__scCs|jj||ƒS(sDelete this volume backup.(tmanagertdelete(Rtforce((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyRscCs|jj||ƒS(N(Rtreset_state(Rtstate((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyR"scKs|jj||S(s/Update the name or description for this backup.(Rtupdate(Rtkwargs((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyR
%s(t__name__t
__module__t__doc__RtFalseRRR
(((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyRs
		tVolumeBackupManagercBsƒeZdZeZd	d	d	eed	d„Zd„Ze	d	d	d	d	d„Z
ed„Zd„Zd	d„Z
d„Zd„ZRS(
s'Manage :class:`VolumeBackup` resources.c	CsQii|d6|d6|d6|d6|d6|d6|d6d6}|jd	|dƒS(
s¦Creates a volume backup.

        :param volume_id: The ID of the volume to backup.
        :param container: The name of the backup service container.
        :param name: The name of the backup.
        :param description: The description of the backup.
        :param incremental: Incremental backup.
        :param force: If True, allows an in-use volume to be backed up.
        :rtype: :class:`VolumeBackup`
        t	volume_idt	containertnametdescriptiontincrementalRtsnapshot_idtbackups/backups(t_create(	RRRRRRRRtbody((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pytcreate.s
cCs|jd|dƒS(s†Show volume backup details.

        :param backup_id: The ID of the backup to display.
        :rtype: :class:`VolumeBackup`
        s/backups/%sR(t_get(Rt	backup_id((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pytgetEscCsId}|j|d|d|d|d|d|ƒ}|j||d|ƒS(sYGet a list of all volume backups.

        :rtype: list of :class:`VolumeBackup`
        tbackupstdetailedtsearch_optstmarkertlimittsort(t_build_list_urlt_list(RRR R!R"R#t
resource_typeturl((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pytlistMs
cCs4|r|jd|ƒS|jdtj|ƒƒSdS(s¨Delete a volume backup.

        :param backup: The :class:`VolumeBackup` to delete.
        :param force: Allow delete in state other than error or available.
        sos-force_deletes/backups/%sN(t_actiont_deleteRtgetid(RRR((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyRYscCs&|jd||ri|d6niƒS(s;Update the specified volume backup with the provided state.sos-reset_statuststatus(R)(RRR	((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyRdscKsji||6}|jd||dtj|ƒ}|jjj|d|ƒ\}}tj||f|ƒS(sPerform a volume backup action.tmodify_body_for_actions/backups/%s/actionR(t	run_hooksRR+tapitclienttposttcommon_baset
TupleWithMeta(RtactionRtinfoRRR'tresp((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyR)is

!cCs3|jjjd|ƒ\}}tj|d|ƒS(s´Export volume backup metadata record.

        :param backup_id: The ID of the backup to export.
        :rtype: A dictionary containing 'backup_url' and 'backup_service'.
        s/backups/%s/export_records
backup-record(R/R0RR2tDictWithMeta(RRR6R((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyt
export_recordqscCscii|d6|d6d6}|jd|dƒ|jjjdd|ƒ\}}tj|d|ƒS(sImport volume backup metadata record.

        :param backup_service: Backup service to use for importing the backup
        :param backup_url: Backup URL for importing the backup metadata
        :rtype: A dictionary containing volume backup metadata.
        tbackup_servicet
backup_urls
backup-recordtmodify_body_for_updates/backups/import_recordRR(R.R/R0R1R2R7(RR9R:RR6((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyt
import_record{s

!N(RR
RRtresource_classtNoneRRRtTrueR(RRR)R8R<(((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyR*s			
N(	Rtcinderclient.apiclientRR2tcinderclienttResourceRtManagerWithFindR(((sS/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/volume_backups.pyt<module>s