/usr/lib/python2.6/site-packages/novaclient/v2
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/flavor_access.pyc (3257B)
=vVc @ s\ d Z d d k l Z d d k l Z d e i f d YZ d e i f d YZ d S( s Flavor access interface.i( t base( t _t FlavorAccessc B s e Z d Z RS( c C s d | i | i f S( Ns+
( t flavor_idt tenant_id( t self( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyt __repr__ s ( t __name__t
__module__R ( ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyR s t FlavorAccessManagerc B sJ e Z d Z e Z d Z d Z d Z d Z d Z d Z
RS( s1
Manage :class:`FlavorAccess` resources.
c K sZ | i d o | i | d S| i d o | i | d St t d d S( Nt flavort tenants Unknown list options.( t gett _list_by_flavort _list_by_tenantt NotImplementedErrorR ( R t kwargs( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyt list" s
c C s | i d t i | d S( Ns /flavors/%s/os-flavor-accesst
flavor_access( t _listR t getid( R R
( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyR
* s c C s t t d d S( s/ Print flavor list shared with the given tenant.s% Sorry, query by tenant not supported.N( R R ( R R ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyR . s c C s h | d 6} | i d | | S( s- Add a tenant to the given flavor access list.R t addTenantAccess( t _action( R R
R t info( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyt add_tenant_access4 s
c C s h | d 6} | i d | | S( s2 Remove a tenant from the given flavor access list.R t removeTenantAccess( R ( R R
R R ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyt remove_tenant_access9 s
c
K s h | | 6} | i d | | d t i | } | i i i | d | \ } } g } | d D] } | | i | | qc ~ S( s Perform a flavor action.t modify_body_for_actions /flavors/%s/actiont bodyR ( t run_hooksR R t apit clientt postt resource_class(
R t actionR
R R R t urlt _respt _[1]t res( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyR > s
!( R R t __doc__R R! R R
R R R R ( ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyR s N( R' t
novaclientR t novaclient.i18nR t ResourceR t ManagerWithFindR ( ( ( sF /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/flavor_access.pyt s