/
usr
/
lib
/
python2.6
/
site-packages
/
keystoneclient
/
/usr/lib/python2.6/site-packages/keystoneclient
mkdir
upload
Name
Size
Mode
Actions
apiclient/
-
0755
rm
auth/
-
0755
rm
common/
-
0755
rm
contrib/
-
0755
rm
fixture/
-
0755
rm
generic/
-
0755
rm
hacking/
-
0755
rm
locale/
-
0755
rm
middleware/
-
0755
rm
openstack/
-
0755
rm
tests/
-
0755
rm
v2_0/
-
0755
rm
v3/
-
0755
rm
access.py
24775
0644
edit
dl
rm
access.pyc
33116
0644
edit
dl
rm
adapter.py
8401
0644
edit
dl
rm
adapter.pyc
9198
0644
edit
dl
rm
base.py
17951
0644
edit
dl
rm
base.pyc
20741
0644
edit
dl
rm
baseclient.py
1313
0644
edit
dl
rm
baseclient.pyc
2133
0644
edit
dl
rm
client.py
2913
0644
edit
dl
rm
client.pyc
2913
0644
edit
dl
rm
discover.py
16023
0644
edit
dl
rm
discover.pyc
16201
0644
edit
dl
rm
exceptions.py
14984
0644
edit
dl
rm
exceptions.pyc
24389
0644
edit
dl
rm
httpclient.py
38547
0644
edit
dl
rm
httpclient.pyc
33264
0644
edit
dl
rm
i18n.py
1162
0644
edit
dl
rm
i18n.pyc
558
0644
edit
dl
rm
service_catalog.py
16610
0644
edit
dl
rm
service_catalog.pyc
15070
0644
edit
dl
rm
session.py
40695
0644
edit
dl
rm
session.pyc
35851
0644
edit
dl
rm
shell.py
19588
0644
edit
dl
rm
shell.pyc
14868
0644
edit
dl
rm
utils.py
11589
0644
edit
dl
rm
utils.pyc
12733
0644
edit
dl
rm
_discover.py
11126
0644
edit
dl
rm
_discover.pyc
10929
0644
edit
dl
rm
__init__.py
2435
0644
edit
dl
rm
__init__.pyc
1994
0644
edit
dl
rm
Edit:
/usr/lib/python2.6/site-packages/keystoneclient/client.py
(2913B)
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from debtcollector import removals from keystoneclient import discover from keystoneclient import httpclient from keystoneclient import session as client_session @removals.remove(message='Use keystoneclient.httpclient.HTTPClient instead', version='1.7.0', removal_version='2.0.0') class HTTPClient(httpclient.HTTPClient): """Deprecated alias for httpclient.HTTPClient. This class is deprecated as of the 1.7.0 release in favor of :class:`keystoneclient.httpclient.HTTPClient` and may be removed in the 2.0.0 release. """ def Client(version=None, unstable=False, session=None, **kwargs): """Factory function to create a new identity service client. The returned client will be either a V3 or V2 client. Check the version using the :py:attr:`~keystoneclient.v3.client.Client.version` property or the instance's class (with instanceof). :param tuple version: The required version of the identity API. If specified the client will be selected such that the major version is equivalent and an endpoint provides at least the specified minor version. For example to specify the 3.1 API use ``(3, 1)``. :param bool unstable: Accept endpoints not marked as 'stable'. (optional) :param session: A session object to be used for communication. If one is not provided it will be constructed from the provided kwargs. (optional) :type session: keystoneclient.session.Session :param kwargs: Additional arguments are passed through to the client that is being created. :returns: New keystone client object. :rtype: :py:class:`keystoneclient.v3.client.Client` or :py:class:`keystoneclient.v2_0.client.Client` :raises keystoneclient.exceptions.DiscoveryFailure: if the server's response is invalid. :raises keystoneclient.exceptions.VersionNotAvailable: if a suitable client cannot be found. """ if not session: session = client_session.Session._construct(kwargs) d = discover.Discover(session=session, **kwargs) return d.create_client(version=version, unstable=unstable)
Save
cmd:
run