Debian Codegraph @

doc/source/reference/index.rst

raw
1 Library User Reference
2 ======================
3
4 To use Python API first create a ``ClientV1`` object::
5
6 import ironic_inspector_client
7 client = ironic_inspector_client.ClientV1(session=keystone_session)
8
9 This code creates a client with API version *1.0* and a given `Keystone
10 session`_. The service URL is fetched from the service catalog in this case.
11 See :py:class:`ironic_inspector_client.ClientV1` documentation for details.
12
13 .. _api-versioning:
14
15 API Versioning
16 --------------
17
18 Starting with version 2.1.0 **Ironic Inspector** supports optional API
19 versioning. Version is a tuple (X, Y), where X is always 1 for now.
20
21 The server has maximum and minimum supported versions. If no version is
22 requested, the server assumes the maximum it's supported.
23
24 Two constants are exposed for convenience:
25
26 * :py:const:`ironic_inspector_client.DEFAULT_API_VERSION`
27 * :py:const:`ironic_inspector_client.MAX_API_VERSION`
28
29
30 API Reference
31 -------------
32
33 .. toctree::
34 :maxdepth: 2
35
36 api/ironic_inspector_client
37
38 .. toctree::
39 :hidden:
40
41 api/modules
42
43 .. _Keystone session: https://docs.openstack.org/keystoneauth/latest/using-sessions.html