/usr/lib/python2.6/site-packages/cinderclient/v2
Edit: /usr/lib/python2.6/site-packages/cinderclient/v2/consistencygroups.pyc (6241B)
Ñò
=vVc @ s’ d Z d d k Z y d d k l Z Wn# e j
o d d k l Z n Xd d k l Z d e i f d „ ƒ YZ d e i
f d „ ƒ YZ d S( s* Consistencygroup interface (v2 extension).iÿÿÿÿN( t urlencode( t baset Consistencygroupc B s, e Z d Z d „ Z d d „ Z d „ Z RS( s A Consistencygroup of volumes.c C s d | i S( Ns
( t id( t self( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyt __repr__ s t Falsec C s | i i | | ƒ d S( s Delete this consistencygroup.N( t managert delete( R t force( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyR s c K s | i i | | d S( s9 Update the name or description for this consistencygroup.N( R t update( R t kwargs( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyR
$ s ( t __name__t
__module__t __doc__R R R
( ( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyR s t ConsistencygroupManagerc B sz e Z d Z e Z d d d d d d „ Z d d d d d „ Z d „ Z e d d „ Z
e d „ Z d „ Z
d d „ Z RS( s+ Manage :class:`Consistencygroup` resources.c C sQ h h | d 6| d 6| d 6| d 6| d 6| d 6d d 6d 6} | i d
| d ƒ S( s˜ Creates a consistencygroup.
: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`
t namet descriptiont volume_typest user_idt
project_idt availability_zonet creatingt statust consistencygroups /consistencygroups( t _create( R R R R R R R t body( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyt create- s
c C sz h h | d 6| d 6| d 6| d 6| d 6| d 6d d 6d 6} | i d
| d ƒ | i i i d d | ƒ\ } } | d
S( sµ Creates a consistencygroup 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: :class:`Consistencygroup`
R R t
cgsnapshot_idt source_cgidR R R R s consistencygroup-from-srct modify_body_for_updates" /consistencygroups/create_from_srcR R ( t run_hookst apit clientt post( R R R R R R R R t resp( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyt create_from_srcF s
c C s | i d | d ƒ S( s‹ Get a consistencygroup.
:param group_id: The ID of the consistencygroup to get.
:rtype: :class:`Consistencygroup`
s /consistencygroups/%sR ( t _get( R t group_id( ( sN /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/consistencygroups.pyt getb s
c C s¡ | d j o
h } n h } x2 t i | ƒ D]! \ } } | o | | |