ironic_inspector_client.common.http module¶
Generic code for inspector client.
- class ironic_inspector_client.common.http.BaseClient(api_version, inspector_url=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.EndpointNotFound(service_type)[source]¶
Bases:
Exception
Denotes that endpoint for the introspection service was not found.
- Variables
service_type – requested service type
- exception ironic_inspector_client.common.http.VersionNotSupported(expected, supported)[source]¶
Bases:
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.