/usr/lib/python2.6/site-packages/cinderclient/v2
NameSizeModeActions
contrib/-0755rm
availability_zones.py14270644editdlrm
availability_zones.pyc15960644editdlrm
capabilities.py12480644editdlrm
capabilities.pyc14810644editdlrm
cgsnapshots.py40040644editdlrm
cgsnapshots.pyc47790644editdlrm
client.py52680644editdlrm
client.pyc43340644editdlrm
consistencygroups.py60430644editdlrm
consistencygroups.pyc62410644editdlrm
limits.py27750644editdlrm
limits.pyc40970644editdlrm
pools.py22040644editdlrm
pools.pyc17030644editdlrm
qos_specs.py47890644editdlrm
qos_specs.pyc60440644editdlrm
quotas.py19180644editdlrm
quotas.pyc23830644editdlrm
quota_classes.py15710644editdlrm
quota_classes.pyc18700644editdlrm
services.py21860644editdlrm
services.pyc26390644editdlrm
shell.py829170644editdlrm
shell.pyc759990644editdlrm
volumes.py257360644editdlrm
volumes.pyc285530644editdlrm
volume_backups.py40510644editdlrm
volume_backups.pyc49900644editdlrm
volume_backups_restore.py15740644editdlrm
volume_backups_restore.pyc17800644editdlrm
volume_encryption_types.py37030644editdlrm
volume_encryption_types.pyc41430644editdlrm
volume_snapshots.py65760644editdlrm
volume_snapshots.pyc86400644editdlrm
volume_transfers.py32480644editdlrm
volume_transfers.pyc40140644editdlrm
volume_types.py48080644editdlrm
volume_types.pyc56250644editdlrm
volume_type_access.py18880644editdlrm
volume_type_access.pyc25310644editdlrm
__init__.py6940644editdlrm
__init__.pyc2250644editdlrm
Edit: /usr/lib/python2.6/site-packages/cinderclient/v2/volume_snapshots.pyc (8640B)
Ñò =vVc @s’dZddkZyddklZWn#ej oddklZnXddklZdeifd„ƒYZ dei fd„ƒYZ dS( s*Volume snapshot interface (1.1 extension).iÿÿÿÿN(t urlencode(tbasetSnapshotcBsqeZdZdZd„Zd„Zd„Zed„ƒZed„ƒZ d„Z d„Z d „Z d „Z RS( s>A Snapshot is a point-in-time snapshot of an openstack volume.t display_namecCs d|iS(Ns(tid(tself((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyt__repr__scCs|ii|ƒdS(sDelete this snapshot.N(tmanagertdelete(R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR"scKs|ii||dS(s1Update the name or description for this snapshot.N(Rtupdate(Rtkwargs((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR &scCs|iidƒS(Ns(os-extended-snapshot-attributes:progress(t_infotget(R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pytprogress*scCs|iidƒS(Ns*os-extended-snapshot-attributes:project_id(R R (R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyt project_id.scCs|ii||ƒdS(s,Update the snapshot with the provided state.N(Rt reset_state(Rtstate((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR2scCs|ii||ƒS(sSet metadata of this snapshot.(Rt set_metadata(Rtmetadata((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR6scCs|ii||ƒS(s!Delete metadata of this snapshot.(Rtdelete_metadata(Rtkeys((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR:scCs|ii||ƒS(s%Update_all metadata of this snapshot.(Rtupdate_all_metadata(RR((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR>s(t__name__t __module__t__doc__t NAME_ATTRRRR tpropertyR RRRRR(((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyRs      tSnapshotManagercBsŒeZdZeZed d d d„Zd„Ze d d„Z d„Z d„Z d„Z d d„Zd„Zd „Zd „Zd „ZRS( s#Manage :class:`Snapshot` resources.cCs`|djo h}n|}hh|d6|d6|d6|d6|d6d6}|id|dƒS( s¦Creates a snapshot of the given volume. :param volume_id: The ID of the volume to snapshot. :param force: If force is True, create a snapshot even if the volume is attached to an instance. Default is False. :param name: Name of the snapshot :param description: Description of the snapshot :param metadata: Metadata of the snapshot :rtype: :class:`Snapshot` t volume_idtforcetnamet descriptionRtsnapshots /snapshotsN(tNonet_create(RRRRRRtsnapshot_metadatatbody((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pytcreateGs   cCs|id|dƒS(s~Shows snapshot details. :param snapshot_id: The ID of the snapshot to get. :rtype: :class:`Snapshot` s /snapshots/%sR (t_get(Rt snapshot_id((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR asc Cs¿|djo h}nh}x2ti|ƒD]!\}}|o|||zss?%sts/details/snapshots%s%st snapshotsN(R!tsixt iteritemstsortedtitemsRt_list( Rtdetailedt search_optstqparamstopttvalt new_qparamst query_stringtdetail((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pytlistis     cCs|idti|ƒƒdS(sVDelete a snapshot. :param snapshot: The :class:`Snapshot` to delete. s /snapshots/%sN(t_deleteRtgetid(RR ((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR†scKs:|pdSh|d6}|idti|ƒ|ƒdS(srUpdate the name or description for a snapshot. :param snapshot: The :class:`Snapshot` to update. NR s /snapshots/%s(t_updateRR<(RR R R$((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR s cCs|id|h|d6ƒS(s6Update the specified snapshot with the provided state.sos-reset_statuststatus(t_action(RR R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR™scKsLh||6}|id||dti|ƒ}|iii|d|ƒS(sPerform a snapshot action.tmodify_body_for_actions/snapshots/%s/actionR$(t run_hooksRR<tapitclienttpost(RtactionR tinfoR R$turl((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR?s cCs|idti|ƒ|ƒS(Nsos-update_snapshot_status(R?RR<(RR t update_dict((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pytupdate_snapshot_status¤s cCs-h|d6}|idti|ƒ|dƒS(sUpdate/Set a snapshots metadata. :param snapshot: The :class:`Snapshot`. :param metadata: A list of keys to be set. Rs/snapshots/%s/metadata(R"RR<(RR RR$((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR¨s cCs;ti|ƒ}x%|D]}|id||fƒqWdS(sšDelete specified keys from snapshot metadata. :param snapshot: The :class:`Snapshot`. :param keys: A list of keys to be removed. s/snapshots/%s/metadata/%sN(RR<R;(RR RR'tk((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR²scCs*h|d6}|idti|ƒ|ƒS(sŽUpdate_all snapshot metadata. :param snapshot: The :class:`Snapshot`. :param metadata: A list of keys to be updated. Rs/snapshots/%s/metadata(R=RR<(RR RR$((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyR¼s N(RRRRtresource_classtFalseR!R%R tTrueR:RR RR?RIRRR(((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyRCs      ( RR-turllibRt ImportErrort urllib.parset cinderclientRtResourceRtManagerWithFindR(((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volume_snapshots.pyts (