/usr/lib/python2.6/site-packages/keystoneclient/v3
NameSizeModeActions
contrib/-0755rm
auth.py28210644editdlrm
auth.pyc28110644editdlrm
client.py126710644editdlrm
client.pyc111510644editdlrm
credentials.py50050644editdlrm
credentials.pyc51530644editdlrm
domains.py23700644editdlrm
domains.pyc26330644editdlrm
ec2.py19750644editdlrm
ec2.pyc24130644editdlrm
endpoints.py35310644editdlrm
endpoints.pyc37850644editdlrm
groups.py30650644editdlrm
groups.pyc33380644editdlrm
policies.py25570644editdlrm
policies.pyc30850644editdlrm
projects.py74620644editdlrm
projects.pyc69980644editdlrm
regions.py33620644editdlrm
regions.pyc38330644editdlrm
roles.py78260644editdlrm
roles.pyc71710644editdlrm
role_assignments.py44820644editdlrm
role_assignments.pyc54210644editdlrm
services.py24430644editdlrm
services.pyc27530644editdlrm
tokens.py28790644editdlrm
tokens.pyc34560644editdlrm
users.py71710644editdlrm
users.pyc67760644editdlrm
__init__.py830644editdlrm
__init__.pyc2650644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/v3/client.pyc (11151B)
Ñò >> from keystoneclient.v3 import client >>> keystone = client.Client(user_domain_name=DOMAIN_NAME, ... username=USER, ... password=PASS, ... project_domain_name=PROJECT_DOMAIN_NAME, ... project_name=PROJECT_NAME, ... auth_url=KEYSTONE_URL) ... >>> keystone.projects.list() ... >>> user = keystone.users.get(USER_ID) >>> user.delete() Instances of this class have the following managers: .. py:attribute:: credentials :py:class:`keystoneclient.v3.credentials.CredentialManager` .. py:attribute:: ec2 :py:class:`keystoneclient.v3.ec2.EC2Manager` .. py:attribute:: endpoint_filter :py:class:`keystoneclient.v3.contrib.endpoint_filter.EndpointFilterManager` .. py:attribute:: endpoint_policy :py:class:`keystoneclient.v3.contrib.endpoint_policy.EndpointPolicyManager` .. py:attribute:: endpoints :py:class:`keystoneclient.v3.endpoints.EndpointManager` .. py:attribute:: domains :py:class:`keystoneclient.v3.domains.DomainManager` .. py:attribute:: federation :py:class:`keystoneclient.v3.contrib.federation.core.FederationManager` .. py:attribute:: groups :py:class:`keystoneclient.v3.groups.GroupManager` .. py:attribute:: oauth1 :py:class:`keystoneclient.v3.contrib.oauth1.core.OAuthManager` .. py:attribute:: policies :py:class:`keystoneclient.v3.policies.PolicyManager` .. py:attribute:: regions :py:class:`keystoneclient.v3.regions.RegionManager` .. py:attribute:: role_assignments :py:class:`keystoneclient.v3.role_assignments.RoleAssignmentManager` .. py:attribute:: roles :py:class:`keystoneclient.v3.roles.RoleManager` .. py:attribute:: simple_cert :py:class:`keystoneclient.v3.contrib.simple_cert.SimpleCertManager` .. py:attribute:: services :py:class:`keystoneclient.v3.services.ServiceManager` .. py:attribute:: tokens :py:class:`keystoneclient.v3.tokens.TokenManager` .. py:attribute:: trusts :py:class:`keystoneclient.v3.contrib.trusts.TrustManager` .. py:attribute:: users :py:class:`keystoneclient.v3.users.UserManager` RcKs tt|ƒi||idƒptidtƒnti|i ƒ|_t i |i ƒ|_ t i |i ƒ|_ ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_ti|i ƒ|_t i!|i ƒ|_ t"i#|i ƒ|_"t$i%|i ƒ|_$t&i'|i ƒ|_&t(i)|i ƒ|_(t*i+|i ƒ|_*t,i-|i ƒ|_,t.i/|i ƒ|_.d|jo|i0djo|i2ƒndS(s0Initialize a new client for the Keystone v3 API.tsessions¦Constructing an instance of the keystoneclient.v3.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.N(3tsuperRt__init__tgettwarningstwarntDeprecationWarningRt AuthManagert_adapterR tCredentialManagerRt EC2ManagerRtEndpointFilterManagerRtEndpointPolicyManagerRtEndpointManagerR t DomainManagerRtFederationManagerRt GroupManagerR tcreate_oauth_managerRt PolicyManagerRtProjectManagerRt RegionManagerRtRoleAssignmentManagerRt RoleManagerRtServiceManagerR tSimpleCertManagerRt TokenManagerR t TrustManagerRt UserManagertmanagement_urltNonet authenticate(tselftkwargs((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/client.pyR¼s: cCsti|dtƒS(Nt sort_keys(RtdumpstTrue(R9tentity((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/client.pyt serializeäscKs«tt|ƒi||iio^|iiptitdƒƒ‚n|i |i dƒƒ|ii |_ |ii|_n|i o|i i ddƒ|_ ndS(syExtract and process information from the new auth_ref. And set the relevant authentication information. sToken didn't provide domain_idt region_names/v2.0s/v3N(RRt process_tokentauth_reft domain_scopedt domain_idRtAuthorizationFailureRt_process_management_urlRt domain_namet_management_urltreplace(R9R:((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/client.pyRAçs   cKs˜y|djottdƒƒ‚ng}| o|itid| ƒƒn|o;tid|d|d|d|d|ƒ}|i|ƒn|ptdƒ}ti|ƒ‚nti ||d |d |d |d | d | d| d| ƒ}|i |i ƒSWnŒtiti fj ot idƒ‚n_tij o"tdƒ}ti|ƒ‚n/tj o"}titdƒ|ƒ‚nXdS(sðAuthenticate against the v3 Identity API. If password and token methods are both provided then both methods will be used in the request. :returns: access.AccessInfo if authentication was successful. :raises keystoneclient.exceptions.AuthorizationFailure: if unable to authenticate or validate the existing authorization token. :raises keystoneclient.exceptions.Unauthorized: if authentication fails due to invalid token. s'Cannot authenticate without an auth_urlttokentuser_idtusernametuser_domain_idtuser_domain_nametpasswords)A user and password or token is required.ttrust_idRDRGt project_idt project_nametproject_domain_idtproject_domain_namesAuthorization failed.s9There was no suitable authentication url for this requestsAuthorization failed: %sN(R7t ValueErrorRtappendtv3_autht TokenMethodtPasswordMethodRREtAutht get_auth_refRt Unauthorizedt_loggertdebugtEndpointNotFoundt Exception(R9tauth_urlRKRLRMRNRORDRGRQRRRSRTRJRPR:t auth_methodstmtmsgtpluginte((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/client.pyt#get_raw_token_from_identity_service÷sD      N( t__name__t __module__t__doc__tversionRR?RAR7Rg(((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/client.pyR2s † (  ('tloggingRtoslo_serializationRtkeystoneclient.auth.identityRRWtkeystoneclientRRtkeystoneclient.i18nRtkeystoneclient.v3Rtkeystoneclient.v3.contribRRRR R R R R RRRRRRRRRRRt getLoggerRhR]t HTTPClientR(((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/client.pyts8