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    
Size: Mime:
ó
³EYc@s\dZddlmZddlmZdejfd„ƒYZdejfd„ƒYZdS(	s,
Volume snapshot interface (1.1 extension).
iÿÿÿÿ(tbase(tutilstSnapshotcBsqeZdZdZd„Zd„Zd„Zed„ƒZed„ƒZ	d„Z
d„Zd	„Zd
„Z
RS(sH
    A Snapshot is a point-in-time snapshot of an openstack volume.
    tdisplay_namecCsd|jS(Ns<Snapshot: %s>(tid(tself((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyt__repr__scCs|jj|ƒdS(s'
        Delete this snapshot.
        N(tmanagertdelete(R((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR!scKs|jj||dS(sS
        Update the display_name or display_description for this snapshot.
        N(Rtupdate(Rtkwargs((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR	'scCs|jjdƒS(Ns(os-extended-snapshot-attributes:progress(t_infotget(R((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pytprogress-scCs|jjdƒS(Ns*os-extended-snapshot-attributes:project_id(RR(R((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyt
project_id1scCs|jj||ƒdS(s,Update the snapshot with the provided state.N(Rtreset_state(Rtstate((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR5scCs|jj||ƒS(sSet metadata of this snapshot.(Rtset_metadata(Rtmetadata((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR9scCs|jj||ƒS(s!Delete metadata of this snapshot.(Rtdelete_metadata(Rtkeys((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR=scCs|jj||ƒS(s%Update_all metadata of this snapshot.(Rtupdate_all_metadata(RR((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyRAs(t__name__t
__module__t__doc__t	NAME_ATTRRRR	tpropertyR
RRRRR(((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyRs						tSnapshotManagercBs‰eZdZeZeddd„Zd„Ze	dd„Z
d„Zd„Zd„Z
dd„Zd„Zd	„Zd
„Zd„ZRS(
s-
    Manage :class:`Snapshot` resources.
    cCs<ii|d6|d6|d6|d6d6}|jd|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((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pytcreateLs


cCs|jd|dƒS(s
        Get a snapshot.

        :param snapshot_id: The ID of the snapshot to get.
        :rtype: :class:`Snapshot`
        s
/snapshots/%sR(t_get(Rtsnapshot_id((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR_scCsAtj|tƒ}d}|r'd}n|jd||fdƒS(sY
        Get a list of all snapshots.

        :rtype: list of :class:`Snapshot`
        ts/details/snapshots%s%st	snapshots(Rtbuild_query_paramtTruet_list(Rtdetailedtsearch_optstquery_stringtdetail((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pytlisths	cCs|jdtj|ƒƒdS(s_
        Delete a snapshot.

        :param snapshot: The :class:`Snapshot` to delete.
        s
/snapshots/%sN(t_deleteRtgetid(RR((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyRwscKs8|s
dSi|d6}|jdtj|ƒ|ƒdS(s‹
        Update the display_name or display_description for a snapshot.

        :param snapshot: The :class:`Snapshot` to update.
        NRs
/snapshots/%s(t_updateRR0(RRR
R!((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR	s
cCs|jd|i|d6ƒS(s4Update the specified volume with the provided state.sos-reset_statuststatus(t_action(RRR((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyRŒscKsLi||6}|jd||dtj|ƒ}|jjj|d|ƒS(sPerform a snapshot action.tmodify_body_for_actions/snapshots/%s/actionR!(t	run_hooksRR0tapitclienttpost(RtactionRtinfoR
R!turl((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR3s
cCs|jdtj|ƒ|ƒS(Nsos-update_snapshot_status(R3RR0(RRtupdate_dict((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pytupdate_snapshot_status—s	cCs-i|d6}|jdtj|ƒ|dƒS(sUpdate/Set a snapshots metadata.

        :param snapshot: The :class:`Snapshot`.
        :param metadata: A list of keys to be set.
        Rs/snapshots/%s/metadata(R RR0(RRRR!((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR›s
cCs;tj|ƒ}x%|D]}|jd||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(RR0R/(RRRR$tk((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR¥s
cCs*i|d6}|jdtj|ƒ|ƒS(sŽUpdate_all snapshot metadata.

        :param snapshot: The :class:`Snapshot`.
        :param metadata: A list of keys to be updated.
        Rs/snapshots/%s/metadata(R1RR0(RRRR!((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyR¯s
N(RRRRtresource_classtFalsetNoneR"RR(R.RR	RR3R=RRR(((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyRFs				
			
	
N(RtcinderclientRRtResourceRtManagerWithFindR(((sU/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volume_snapshots.pyt<module>s.