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 / consistencygroups.pyc
Size: Mime:
ó
³EYc@sldZddlmZddlmZddlmZdejfd„ƒYZdejfd„ƒYZ	dS(	s*Consistencygroup interface (v2 extension).iÿÿÿÿ(tbase(tutilstConsistencygroupcBs,eZdZd„Zdd„Zd„ZRS(sA Consistencygroup of volumes.cCsd|jS(Ns<Consistencygroup: %s>(tid(tself((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt__repr__stFalsecCs|jj||ƒS(sDelete this consistency group.(tmanagertdelete(Rtforce((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyRscKs|jj||S(s:Update the name or description for this consistency group.(Rtupdate(Rtkwargs((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyR
 s(t__name__t
__module__t__doc__RRR
(((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyRs	tConsistencygroupManagercBszeZdZeZdddddd„Zddddd„Zd„Ze	dd„Z
ed„Zd„Z
dd„ZRS(	s+Manage :class:`Consistencygroup` resources.cCsQii|d6|d6|d6|d6|d6|d6dd6d	6}|jd
|d	ƒS(s™Creates a consistency group.

        :param name: Name of the ConsistencyGroup
        :param description: Description of the ConsistencyGroup
        :param volume_types: Types of volume
        :param user_id: User id derived from context
        :param project_id: Project id derived from context
        :param availability_zone: Availability Zone to use
        :rtype: :class:`Consistencygroup`
       tnametdescriptiontvolume_typestuser_idt
project_idtavailability_zonetcreatingtstatustconsistencygroups/consistencygroups(t_create(RRRRRRRtbody((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pytcreate)s
c	Cs†ii|d6|d6|d6|d6|d6|d6dd6d	6}|jd
|d	ƒ|jjjdd|ƒ\}}tj|d
|ƒS(sÎCreates a consistency group from a cgsnapshot or a source CG.

        :param cgsnapshot_id: UUID of a CGSnapshot
        :param source_cgid: UUID of a source CG
        :param name: Name of the ConsistencyGroup
        :param description: Description of the ConsistencyGroup
        :param user_id: User id derived from context
        :param project_id: Project id derived from context
        :rtype: A dictionary containing Consistencygroup metadata
        RRt
cgsnapshot_idtsource_cgidRRRRsconsistencygroup-from-srctmodify_body_for_updates"/consistencygroups/create_from_srcRR(t	run_hookstapitclienttposttcommon_basetDictWithMeta(	RRRRRRRRtresp((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pytcreate_from_srcBs

cCs|jd|dƒS(sGet a consistency group.

        :param group_id: The ID of the consistency group to get.
        :rtype: :class:`Consistencygroup`
        s/consistencygroups/%sR(t_get(Rtgroup_id((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pytget^s
cCs>tj|ƒ}d}|r$d}n|jd||fdƒS(sYLists all consistency groups.

        :rtype: list of :class:`Consistencygroup`
        ts/details/consistencygroups%s%stconsistencygroups(Rtbuild_query_paramt_list(Rtdetailedtsearch_optstquery_stringtdetail((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pytlistgs	cCsqii|d6d6}|jd|dƒdtj|ƒ}|jjj|d|ƒ\}}tj||f|ƒS(soDelete a consistency group.

        :param Consistencygroup: The :class:`Consistencygroup` to delete.
        R	Rtmodify_body_for_actions/consistencygroups/%s/deleteR(RRtgetidR R!R"R#t
TupleWithMeta(RRR	RturlR%((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyRvs
!cKs4|s
dSi|d6}|jdtj|ƒ|ƒS(s‹Update the name or description for a consistency group.

        :param Consistencygroup: The :class:`Consistencygroup` to update.
        NRs/consistencygroups/%s(t_updateRR4(RRRR((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyR
s

	cKsji||6}|jd||dtj|ƒ}|jjj|d|ƒ\}}tj||f|ƒS(s.Perform a consistency group "action."
        R3s/consistencygroups/%s/actionR(RRR4R R!R"R#R5(RtactionRtinfoRRR6R%((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt_actionŽs

!N(RR
RRtresource_classtNoneRR&R)tTrueR2RRR
R:(((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyR%s			
N(
Rtcinderclient.apiclientRR#tcinderclientRtResourceRtManagerWithFindR(((sV/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt<module>s