Ńň ›ˆQc @sŔdZddkZddkZddkZddkZddkiZddkl Z ddkl Z ei e ƒZ deifd„ƒYZdefd„ƒYZd eifd „ƒYZdS( sTInterface for accessing auto-provided Google Compute Engine access tokens. Once a Google Compute Engine instance has been started with --service_account=default --service_account_scopes="...." This module allows access tokens for the specified account and scopes to be fetched from the Google Compute Engine instance automatically. i˙˙˙˙N(t metadata_lib(tscopestCredentialsErrorcBseZdZRS(s&Credentials could not be instantiated.(t__name__t __module__t__doc__(((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyR(stCredentialsNotPresentErrorcBseZdZRS(sCredentials are not present.(RRR(((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyR-st CredentialscBsDeZdZddded„Zd„Zd„Zed„ƒZ RS(sDCredentials object that gets credentials from Google Compute Engine.c CsG||_||_||_||_||_|o t|_nŐt|_y~|iid|iƒ}t t |ƒi t |iƒƒƒ|_d„}||iƒpt dƒ‚n|i ƒ\}}WnJtij o} t dƒ‚n(tij o} td| ƒ‚nXtii||ddd|ddƒt|_dS(Ntservice_accountcSsti|jp ti|jS(N(RtCOMPUTE_RW_SCOPEtCOMPUTE_RO_SCOPE(t scope_list((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pytHasComputeScopeKssNo compute scopes availablesService account not foundsMetadata server failure: %s(t _metadataRtrequested_scopestavailable_scopest any_availabletFalsetinvalidtTruetGetAccessScopestlisttsett intersectionRt_InternalRefreshRtMetadataNotFoundErrort MetadataErrorRt oauth2clienttOAuth2Credentialst__init__tNone( tselftmetadataRRRt access_tokent token_expiryRR te((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyR5s>         $  cCs|iƒ\|_|_dS(N(RR!R"(Rt_((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyt_refreshdsc CsYy2t|_|ii|id|id|iƒSWn tij ot |_dSXdS(NRR(NN( RRR tGetAccessTokenRRRRRRR(R((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyRgs   c CsIti|ƒ}ttiƒ|d|d|d|d|d|dƒS(s}Create an Credentials from a json string. Args: s: The json string. Returns: An Credentials object. RRRR!R"R(tjsontloadsRRtMetadata(tclststdata((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyt from_jsonqs  N( RRRRRRR%Rt classmethodR-(((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyR2s   -  (RR'tloggingt apiclientthttplib2toauth2client.clienttclientRtgcutilRRt getLoggerRt_loggertErrorRRRR(((s^/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/auto_auth.pyts