Remove some mentions to preferences from docs
Change-Id: I60db722ecff0929a49d7474766d0521cc8f063a4
This commit is contained in:
@@ -9,7 +9,7 @@ Session
|
|||||||
-------
|
-------
|
||||||
|
|
||||||
The :class:`openstack.session.Session` manages an authenticator,
|
The :class:`openstack.session.Session` manages an authenticator,
|
||||||
transport, and user preferences. It exposes methods corresponding to
|
transport, and user profile. It exposes methods corresponding to
|
||||||
HTTP verbs, and injects your authentication token into a request,
|
HTTP verbs, and injects your authentication token into a request,
|
||||||
determines any service preferences callers may have set, gets the endpoint
|
determines any service preferences callers may have set, gets the endpoint
|
||||||
from the authenticator, and sends the request out through the transport.
|
from the authenticator, and sends the request out through the transport.
|
||||||
|
@@ -50,7 +50,7 @@ Connection Interface
|
|||||||
********************
|
********************
|
||||||
|
|
||||||
A *Connection* instance maintains your session, authentication, transport,
|
A *Connection* instance maintains your session, authentication, transport,
|
||||||
and preferences, providing you with a set of higher-level interfaces to work
|
and profile, providing you with a set of higher-level interfaces to work
|
||||||
with OpenStack services.
|
with OpenStack services.
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
@@ -60,7 +60,7 @@ with OpenStack services.
|
|||||||
profile
|
profile
|
||||||
|
|
||||||
Once you have a *Connection* instance, the following services may be exposed
|
Once you have a *Connection* instance, the following services may be exposed
|
||||||
to you. Your user preferences determine the full set of exposed services,
|
to you. Your user profile determine the full set of exposed services,
|
||||||
but listed below are the ones provided by this SDK by default.
|
but listed below are the ones provided by this SDK by default.
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
@@ -10,7 +10,7 @@ To use python-openstacksdk in a project::
|
|||||||
from openstack import connection
|
from openstack import connection
|
||||||
from openstack import profile
|
from openstack import profile
|
||||||
|
|
||||||
# First, specify your preferences
|
# First, specify your profile
|
||||||
prof = profile.Profile()
|
prof = profile.Profile()
|
||||||
prof.set_region('network', 'zion')
|
prof.set_region('network', 'zion')
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ To use python-openstacksdk in a project::
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Third, create a connection
|
# Third, create a connection
|
||||||
conn = connection.Connection(preference=prof, **auth_args)
|
conn = connection.Connection(profile=prof, **auth_args)
|
||||||
|
|
||||||
# Finally, access your desired services
|
# Finally, access your desired services
|
||||||
network = conn.network.find_network("matrix")
|
network = conn.network.find_network("matrix")
|
||||||
|
Reference in New Issue
Block a user