/usr/lib/python2.6/site-packages/cinderclient/v2
Edit: /usr/lib/python2.6/site-packages/cinderclient/v2/qos_specs.pyc (6044B)
Ñò
=vVc @ sL d Z d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S( s
QoS Specs interface.
iÿÿÿÿ( t baset QoSSpecsc B s e Z d Z d „ Z d „ Z RS( sC QoS specs entity represents quality-of-service parameters/requirements.
A QoS specs is a set of parameters or requirements for quality-of-service
purpose, which can be associated with volume types (for now). In future,
QoS specs may be extended to be associated other entities, such as single
volume.
c C s d | i S( Ns
( t name( t self( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt __repr__! s c C s | i i | ƒ S( N( t managert delete( R ( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyR $ s ( t __name__t
__module__t __doc__R R ( ( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyR s t QoSSpecsManagerc B st e Z d Z e Z d d „ Z d „ Z e d „ Z d „ Z
d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z RS( s-
Manage :class:`QoSSpecs` resources.
c C s | i d d ƒ S( sQ Get a list of all qos specs.
:rtype: list of :class:`QoSSpecs`.
s
/qos-specst qos_specs( t _list( R t search_opts( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt list. s c C s | i d t i | ƒ d ƒ S( s‡ Get a specific qos specs.
:param qos_specs: The ID of the :class:`QoSSpecs` to get.
:rtype: :class:`QoSSpecs`
s
/qos-specs/%sR ( t _getR t getid( R R ( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt get5 s c C s$ | i d t i | ƒ | f ƒ d S( sä Delete a specific qos specs.
:param qos_specs: The ID of the :class:`QoSSpecs` to be removed.
:param force: Flag that indicates whether to delete target qos specs
if it was in-use.
s /qos-specs/%s?force=%sN( t _deleteR R ( R R t force( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyR = s c C s8 h h | d 6d 6} | d i | ƒ | i d | d ƒ S( sÀ Create a qos specs.
:param name: Descriptive name of the qos specs, must be unique
:param specs: A dict of key/value pairs to be set
:rtype: :class:`QoSSpecs`
R R s
/qos-specs( t updatet _create( R R t specst body( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt createG s
c C s2 h h d 6} | d i | ƒ | i d | | ƒ S( s± Add/Update keys in qos specs.
:param qos_specs: The ID of qos specs
:param specs: A dict of key/value pairs to be set
:rtype: :class:`QoSSpecs`
R s
/qos-specs/%s( R t _update( R R R R ( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt set_keysX s
c C s! h | d 6} | i d | | ƒ S( s§ Remove keys from a qos specs.
:param qos_specs: The ID of qos specs
:param specs: A list of key to be unset
:rtype: :class:`QoSSpecs`
t keyss /qos-specs/%s/delete_keys( R ( R R R R ( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt
unset_keysg s
c C s | i d t i | ƒ d ƒ S( s¹ Get associated entities of a qos specs.
:param qos_specs: The id of the :class: `QoSSpecs`
:return: a list of entities that associated with specific qos specs.
s /qos-specs/%s/associationst qos_associations( R R R ( R R ( ( sF /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/qos_specs.pyt get_associationst s c C s* | i i i d t i | ƒ | f ƒ d S( s½ Associate a volume type with specific qos specs.
:param qos_specs: The qos specs to be associated with
:param vol_type_id: The volume type id to be associated with
s&