Repository URL to install this package:
Version:
4.0.109 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
cinderclient
/
v2
/
consistencygroups.pyc
|
---|
ó ³EYc @ sl d Z d d l m Z d d l m Z d d l m Z d e j f d YZ d e j f d YZ d S( s* Consistencygroup interface (v2 extension).iÿÿÿÿ( t base( t utilst Consistencygroupc B s, e Z d Z d Z d d Z d Z RS( s A Consistencygroup of volumes.c C s d | j S( Ns <Consistencygroup: %s>( t id( t self( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt __repr__ s t Falsec C s | j j | | S( s Delete this consistency group.( t managert delete( R t force( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyR s c K s | j j | | S( s: Update the name or description for this consistency group.( R t update( R t kwargs( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyR s ( t __name__t __module__t __doc__R R R ( ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/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 i i | d 6| d 6| d 6| d 6| d 6| d 6d d 6d 6} | j d | 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` 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( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt create) s c C s i i | d 6| d 6| d 6| d 6| d 6| d 6d d 6d 6} | j d | d | j j j d d | \ } } t j | 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 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 postt common_baset DictWithMeta( R R R R R R R R t resp( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt create_from_srcB s c C s | j d | 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( R t group_id( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/consistencygroups.pyt get^ s c C s>