The ironic_inspector_client.common.http
Module¶
Generic code for inspector client.
-
class
ironic_inspector_client.common.http.
BaseClient
(api_version, inspector_url=None, auth_token=None, session=None, service_type='baremetal-introspection', interface=None, region_name=None)[source]¶ Bases:
object
Base class for clients, provides common HTTP code.
-
exception
ironic_inspector_client.common.http.
ClientError
(response)[source]¶ Bases:
requests.exceptions.HTTPError
Error returned from a server.
-
exception
ironic_inspector_client.common.http.
VersionNotSupported
(expected, supported)[source]¶ Bases:
exceptions.Exception
Denotes that requested API versions is not supported by the server.
Variables: - expected – requested version.
- supported – sequence with two items: minimum and maximum actually supported versions.