/usr/lib/python2.6/site-packages/openstackclient/volume/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/volume/v2/qos_specs.pyc (11089B)
Ñò
;vVc
@ s: d Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l Z d e i
f d „ ƒ YZ d
e i f d „ ƒ YZ
d e i
f d
„ ƒ YZ d e i
f d „ ƒ YZ d e i f d „ ƒ YZ d e i
f d „ ƒ YZ d e i f d „ ƒ YZ d e i
f d „ ƒ YZ d S( s$ Volume v2 QoS action implementationsiÿÿÿÿN( t command( t lister( t show( t
parseractions( t utilst AssociateQosc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s. Associate a QoS specification to a volume types
.AssociateQosc C sN t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d d ƒ| S( Nt qos_spect metavars
t helps( QoS specification to modify (name or ID)t volume_types
s- Volume type to associate the QoS (name or ID)( t superR t
get_parsert add_argument( t selft prog_namet parser( ( sS /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/qos_specs.pyR " s c C s\ | i i i } t i | i | i ƒ } t i | i | i ƒ } | i i | i
| i
ƒ d S( N( t appt client_managert volumeR t
find_resourcet qos_specsR t volume_typesR t associatet id( R
t parsed_argst
volume_clientR R ( ( sS /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/qos_specs.pyt take_action0 s (
t __name__t
__module__t __doc__t loggingt getLoggert logR R t
log_methodR ( ( ( sS /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/qos_specs.pyR s t CreateQosc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Create new QoS specifications
.CreateQosc C s˜ t t | ƒ i | ƒ } | i d d d d d ƒd d d g } | i d d d
d | d d d d
t i | ƒ ƒ| i d d d d t i d d ƒ| S( Nt nameR s R s New QoS specification names front-ends back-endt boths
--consumers
t choicest defaults= Consumer of the QoS. Valid consumers: %s (defaults to 'both')s
--propertys t actionsK Set a QoS specification property (repeat option to set multiple properties)( R
R" R R R t format_listR t KeyValueAction( R
R R t consumer_choices( ( sS /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/qos_specs.pyR B s&