/usr/lib/python2.6/site-packages/novaclient/v2
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/hypervisors.pyc (4042B)
Ñò
=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 e i f d „ ƒ YZ d
e i
f d „ ƒ YZ d S(
s(
Hypervisors interface (1.1 extension).
iÿÿÿÿ( t parse( t baset
Hypervisorc B s e Z d Z d „ Z RS( t hypervisor_hostnamec C s d | i S( Ns
( t id( t self( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyt __repr__ s ( t __name__t
__module__t NAME_ATTRR ( ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR s t HypervisorManagerc B sG e Z e Z e Z e d „ Z e d „ Z d „ Z d „ Z
d „ Z RS( c C s+ d } | o
d } n | i d | d ƒ S( s,
Get a list of hypervisors.
t s /details /os-hypervisors%st hypervisors( t _list( R t detailedt detail( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyt list$ s
c C sC | o d n d } d t i | d d ƒ| f } | i | d ƒ S( s}
Get a list of matching hypervisors.
:param servers: If True, server information is also retrieved.
t serverst searchs /os-hypervisors/%s/%st safeR R ( R t quoteR
( R t hypervisor_matchR t targett url( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR - s c C s | i d t i | ƒ d ƒ S( s,
Get a specific hypervisor.
s /os-hypervisors/%st
hypervisor( t _getR t getid( R R ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyt get8 s c C s | i d t i | ƒ d ƒ S( s;
Get the uptime for a specific hypervisor.
s /os-hypervisors/%s/uptimeR ( R R R ( R R ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyt uptime? s c C s | i i i ƒ S( sÍ
Get hypervisor statistics over all compute nodes.
Kept for backwards compatibility, new code should call
hypervisor_stats.statistics() instead of hypervisors.statistics()
( t apit hypervisor_statst
statistics( R ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR F s ( R R R t resource_classt Truet is_alphanum_id_allowedR t FalseR R R R ( ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR
s t HypervisorStatsc B s e Z d „ Z RS( c C s( d | i | i d j o d n d f S( Ns" i t sR ( t count( R ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR Q s ( R R R ( ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR$ P s t HypervisorStatsManagerc B s e Z e Z d „ Z RS( c C s | i d d ƒ S( sC
Get hypervisor statistics over all compute nodes.
s /os-hypervisors/statisticst hypervisor_statistics( R ( R ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR Y s ( R R R$ R R ( ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyR' V s N( t __doc__t six.moves.urllibR t
novaclientR t ResourceR t ManagerWithFindR
R$ t ManagerR' ( ( ( sD /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/hypervisors.pyt s 0