/usr/lib/python2.6/site-packages/cinderclient/v1
NameSizeModeActions
contrib/-0755rm
availability_zones.py14270644editdlrm
availability_zones.pyc15960644editdlrm
client.py47230644editdlrm
client.pyc38760644editdlrm
limits.py27840644editdlrm
limits.pyc41060644editdlrm
qos_specs.py47910644editdlrm
qos_specs.pyc60460644editdlrm
quotas.py20010644editdlrm
quotas.pyc24660644editdlrm
quota_classes.py16590644editdlrm
quota_classes.pyc19580644editdlrm
services.py21860644editdlrm
services.pyc26390644editdlrm
shell.py491120644editdlrm
shell.pyc497320644editdlrm
volumes.py152900644editdlrm
volumes.pyc185440644editdlrm
volume_backups.py26070644editdlrm
volume_backups.pyc32320644editdlrm
volume_backups_restore.py15740644editdlrm
volume_backups_restore.pyc17800644editdlrm
volume_encryption_types.py35810644editdlrm
volume_encryption_types.pyc40690644editdlrm
volume_snapshots.py65150644editdlrm
volume_snapshots.pyc86490644editdlrm
volume_transfers.py32480644editdlrm
volume_transfers.pyc40140644editdlrm
volume_types.py34930644editdlrm
volume_types.pyc41510644editdlrm
__init__.py6950644editdlrm
__init__.pyc2250644editdlrm
Edit: /usr/lib/python2.6/site-packages/cinderclient/v1/volume_snapshots.pyc (8649B)
Ñò =vVc @s’dZyddklZWn#ej oddklZnXddklZddkZdeifd„ƒYZ dei fd„ƒYZ dS( s, Volume snapshot interface (1.1 extension). iÿÿÿÿ(t urlencode(tbaseNtSnapshotcBsqeZdZdZd„Zd„Zd„Zed„ƒZed„ƒZ d„Z d„Z d „Z d „Z RS( sH 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/v1/volume_snapshots.pyt__repr__#scCs|ii|ƒdS(s' Delete this snapshot. N(tmanagertdelete(R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyR&scKs|ii||dS(sS Update the display_name or display_description for this snapshot. N(Rtupdate(Rtkwargs((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyR ,scCs|iidƒS(Ns(os-extended-snapshot-attributes:progress(t_infotget(R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pytprogress2scCs|iidƒS(Ns*os-extended-snapshot-attributes:project_id(R R (R((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyt project_id6scCs|ii||ƒdS(s,Update the snapshot with the provided state.N(Rt reset_state(Rtstate((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyR:scCs|ii||ƒS(sSet metadata of this snapshot.(Rt set_metadata(Rtmetadata((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyR>scCs|ii||ƒS(s!Delete metadata of this snapshot.(Rtdelete_metadata(Rtkeys((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyRBscCs|ii||ƒS(s%Update_all metadata of this snapshot.(Rtupdate_all_metadata(RR((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyRFs(t__name__t __module__t__doc__t NAME_ATTRRRR tpropertyR RRRRR(((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyRs      tSnapshotManagercBs‰eZdZeZed 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<hh|d6|d6|d6|d6d6}|id|dƒS(sŒ Create 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 display_name: Name of the snapshot :param display_description: Description of the snapshot :rtype: :class:`Snapshot` t volume_idtforceRtdisplay_descriptiontsnapshots /snapshots(t_create(RRRRRtbody((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pytcreateQs cCs|id|dƒS(s Get a snapshot. :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/v1/volume_snapshots.pyR dsc Cs¿|djo h}nh}x2ti|ƒD]!\}}|o|||€ss?%sts/details/snapshots%s%st snapshotsN(tNonetsixt iteritemstsortedtitemsRt_list( Rtdetailedt search_optstqparamstopttvalt new_qparamst query_stringtdetail((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pytlistms     cCs|idti|ƒƒdS(s_ Delete a snapshot. :param snapshot: The :class:`Snapshot` to delete. s /snapshots/%sN(t_deleteRtgetid(RR((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyRŒscKs:|pdSh|d6}|idti|ƒ|ƒdS(s‹ Update the display_name or display_description for a snapshot. :param snapshot: The :class:`Snapshot` to update. NRs /snapshots/%s(t_updateRR:(RRR R!((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyR ”s cCs|id|h|d6ƒS(s4Update the specified volume with the provided state.sos-reset_statuststatus(t_action(RRR((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/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(RtactionRtinfoR R!turl((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyR=¥s cCs|idti|ƒ|ƒS(Nsos-update_snapshot_status(R=RR:(RRt update_dict((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/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:(RRRR!((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/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:R9(RRRR$tk((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/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:(RRRR!((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyRÄs N(RRRRtresource_classtFalseR*R"R tTrueR8RR RR=RGRRR(((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyRKs      ( RturllibRt ImportErrort urllib.parset cinderclientRR+tResourceRtManagerWithFindR(((sM/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v1/volume_snapshots.pyts .