/usr/lib/python2.6/site-packages/novaclient
NameSizeModeActions
openstack/-0755rm
tests/-0755rm
v1_1/-0755rm
v2/-0755rm
api_versions.py135520644editdlrm
api_versions.pyc137060644editdlrm
auth_plugin.py49460644editdlrm
auth_plugin.pyc57840644editdlrm
base.py108690644editdlrm
base.pyc99830644editdlrm
client.py315860644editdlrm
client.pyc259010644editdlrm
crypto.py12930644editdlrm
crypto.pyc11230644editdlrm
exceptions.py72270644editdlrm
exceptions.pyc118160644editdlrm
extension.py14710644editdlrm
extension.pyc15690644editdlrm
i18n.py11440644editdlrm
i18n.pyc5610644editdlrm
service_catalog.py35210644editdlrm
service_catalog.pyc26970644editdlrm
shell.py360070644editdlrm
shell.pyc259140644editdlrm
utils.py122050644editdlrm
utils.pyc125050644editdlrm
__init__.py8390644editdlrm
__init__.pyc4670644editdlrm
Edit: /usr/lib/python2.6/site-packages/novaclient/client.pyc (25901B)
Ñò =vVc<@sdZddkZddkZddkZddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk l Z ddk lZddklZddklZddkZddkZyddkZWnej oddkZnXddklZddklZdd klZdd klZdd klZl Z dd kl!Z!dd kl"Z"de#fd„ƒYZ$de i%fd„ƒYZ&d„Z'de#fd„ƒYZ(e)e)e)e)e*e)e)e)e)de)de)e)e*e)e*e+e*de)e)e)e)e)e*e)e)de)e)d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d „Z3dS(!sC OpenStack Client interface. Handles the REST calls and responses. iÿÿÿÿN(tadapter(tsession(t importutils(tnetutils(tparse(t api_versions(t exceptions(t extension(t_t_LW(tservice_catalog(tutilst_ClientConnectionPoolcBseZd„Zd„ZRS(cCs h|_dS(N(t _adapters(tself((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyt__init__;scCs2||ijotiƒ|i|s(t__name__t __module__RR(((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyR 9s t SessionClientcBs,eZd„Zd„Zd„Zd„ZRS(cOsig|_|idtƒ|_|iddƒ|_|ip tiƒ|_tt |ƒi ||ŽdS(Nttimingst api_version( ttimestpoptFalseRtNoneRRt APIVersiontsuperRR(Rtargstkwargs((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRJs  c KsÜ|id|idhƒƒti|d|iƒ|idtƒ}ti|i |i ||ƒi i ƒz.t t|ƒi||dt|\}}WdQX|o,|idjoti||||ƒ‚n||fS(Ntheaderst raise_exci(t setdefaultRRtupdate_headersRRtTrueR t record_timeRRt__exit__t __enter__RRtrequestRt status_codeRt from_response(RRtmethodRR!tresptbody((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyR(Qs*cCs|iS(N(R(R((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyt get_timingsascCs g|_dS(N(R(R((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyt reset_timingsds(RRRR(R.R/(((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRHs   cs"tiˆƒ‡fd†ƒ}|S(sBIndicates and enforces that this function can only be used if we are using the original HTTPClient object. We use this to specify that if you use the newer Session HTTP client then you are aware that the way you use your client has been updated and certain functions are no longer allowed to be used. cs<t|itƒod}ti|ƒ‚nˆ|||ŽS(NsbThis call is no longer available. The operation should be performed on the session object instead.(t isinstancetclientRRt InvalidUsage(RRRtmsg(tf(s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytwrapperps(t functoolstwraps(R4R5((R4s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyt_original_onlyhs t HTTPClientcBsaeZdZd d ed d d d dd d d ed eeedd d d d d ed d„Zd„Zd„Zd„Z d„Z d„Z d d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zed„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"RS(!spython-novaclientt publicURLtkeystonecCsó||_||_||_||_||_|p tiƒ|_|o tƒnd|_ d|_ |o(|djo| ot i |ƒ‚n| o;|o4|djo'|iƒ}|pt iƒ‚qØn|o|idƒn||_d|_| |_| |_| |_| |_| |_||_|o|idƒn||_|p| |_||_|dj ot|ƒ|_n d|_g|_|ipd|_||_ ||_!||_"d|_#t$|_%|o t$|_&n|o ||_&n t'|_&||_(||_)d|_*d|_+t,i-t.ƒ|_/|io€|i/i0 ort,i1ƒ}|i/i2|ƒt$|i/_3t4t5dƒo6t5i,i-t5i.ƒ}|i2|ƒ|i6t,i7ƒqÔnd|_8h|_9d|_:dS(NR;t/sv1.1tlogging(;tusertuser_idtpasswordt projectidt tenant_idRRRR Rt_connection_poolt password_funcRtAuthSystemNotFoundt get_auth_urltEndpointNotFoundtrstriptauth_urltversiont region_namet endpoint_typet service_typet service_nametvolume_service_nameRt bypass_urltos_cachethttp_log_debugtfloatttimeoutRtmanagement_urlt auth_tokent proxy_tokentproxy_tenant_idt keyring_saverRt keyring_savedt verify_certR$t auth_systemt auth_plugint_sessiont _current_urlR=t getLoggerRt_loggerthandlerst StreamHandlert addHandlert propagatethasattrtrequeststsetLeveltWARNINGR t services_urltlast_request_id(RR>R@RARItinsecureRTRXRWRKRLRMRNRORRPRQtno_cacheRRR\R]RVtcacertRBR?tconnection_poolRtchtrql((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRsp                                     cCs ||_dS(N(RQ(Rtuse_it((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytuse_token_cacheÙscCsd|_d|_dS(s-Forget all of our authentication information.N(RRURV(R((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytunauthenticateÜs cCs ||_dS(N(RU(RR((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytset_management_urláscCs|iS(N(R(R((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyR.äscCs g|_dS(N(R(R((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyR/çscCs·|iƒ}x3|D]+}y||}Wqtj odSXqW||jod|o|||R¶RAR­R)R RHRURVRIRvt TypeErrorRÇR*(RRR R,R-t mgmt_header((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRÕYs$     cCs|ii||ƒS(N(R]R®(RRI((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRÔpscCsÞ|io"hhh|id6d6d6}ne|io/hhh|id6|iƒd6d6d6}n,hhh|id6|iƒd6d6d6}|io|i|ddRBRAt _authenticate(RRR-((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRÓss      cKsJd}|d}|i||d|dt|\}}|i|||ƒS(s-Authenticate and extract the service catalog.R¸s/tokensR-tallow_redirects(R­R$RÉ(RRR-RR+t token_urlR,trespbody((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRãˆs N(#RRRªRRR$RRsRtRuR.R/R‚R•R›RRŸR¨R(R­RµR¶RR¹R»R½R²RÉRËR®RÑRÕRÔRÓRã(((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyR9|sP  P      $      4  (      "  A   R:tcomputeR;spython-novaclientc 1Ksê|oHtd|d|d|p| d| d|d| d|d|d || St||d |d |d |d |d|d|d|d|d|d|d|d|d| d| d| d| d|d|d|d|d|d|d |ƒSdS(NRR…t interfaceRMRKRNt user_agentRRR?RARBRIRVRlRTR\R]RWRXRLRORPRQRRRnRo(RR9( RàR@t project_idRIRlRTRXRWRKRLt extensionsRMRNRORRPRQRmRRR\R]RVRnRBR?RoRR…RéRèRR((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyt_construct_http_client˜sH   cCst|tiƒpti|ƒ}ng}xNtitƒt|ƒtƒƒD]+\}}t i ||ƒ}|i |ƒqNW|S(N( R0RRtget_api_versiont itertoolstchaint_discover_via_python_patht_discover_via_contrib_patht_discover_via_entry_pointstextt ExtensionRˆ(RJRëR“tmoduleR((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytdiscover_extensionsÎs   ccs’x‹tiƒD]}\}}}|idƒo^t|dƒp|i|ƒ}n|i|ƒ}t|dƒo |i}n||fVq q WdS(Nt_python_novaclient_extt load_moduletextension_name(tpkgutilt iter_modulestendswithRft find_moduleRøRù(t module_loaderR“t_ispkgRõ((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRðÝs  ccs·tiitiitƒƒ}tii|d|idƒ}tii|dƒ}x^ti|ƒD]M}tii |ƒd }|djoqbnt i ||ƒ}||fVqbWdS(Nsv%stcontribs*.pyiýÿÿÿR( tosR|tdirnametabspatht__file__R‘t ver_majortglobtiglobtbasenametimpt load_source(RJt module_pathtext_pathtext_globR“Rõ((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRñës ccs>x7tidƒD]&}|i}|iƒ}||fVqWdS(Nsnovaclient.extension(t pkg_resourcestiter_entry_pointsR“tload(tepR“Rõ((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyRòús   cCsst|tiƒpti|ƒ}nti|ƒ|iƒotitdƒƒ‚n|t i d|i ƒfS(Ns+The version should be explicit, not latest.snovaclient.v%s.client.Client( R0RRRítcheck_major_versiont is_latestRtUnsupportedVersionRRt import_classR(RJ((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pyt_get_client_class_and_versions   cCs)titdƒƒt|ƒ\}}|S(s,Returns Client class based on given version.sP'get_client_class' is deprecated. Please use `novaclient.client.Client` instead.(twarningstwarnR R(RJt _api_versiont client_class((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytget_client_classscOs;t|ƒ\}}|iddƒ|d|dt||ŽS(s·Initialize client object based on given version. HOW-TO: The simplest way to create a client instance is initialization with your credentials:: >>> from novaclient import client >>> nova = client.Client(VERSION, USERNAME, PASSWORD, ... PROJECT_ID, AUTH_URL) Here ``VERSION`` can be a string or ``novaclient.api_versions.APIVersion`` obj. If you prefer string value, you can use ``1.1`` (deprecated now), ``2`` or ``2.X`` (where X is a microversion). Alternatively, you can create a client instance using the keystoneclient session API. See "The novaclient Python API" page at python-novaclient's doc. t direct_useRN(RRRR(RJRRRR((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytClients(4t__doc__R‰R6RRxR RîR=RRúR¯RtkeystoneclientRRt oslo_utilsRRRRgRt ImportErrort simplejsontsix.moves.urllibRt novaclientRRRRótnovaclient.i18nRR R R tobjectR tLegacyJsonAdapterRR8R9RRR$RìRöRðRñRòRRR(((s</tmp/pip-build-cD3xZi/python-novaclient/novaclient/client.pytsl              ÿÿ     *