ApiClientFactory#
- class ApiClientFactory(api_url, session_configuration=None)#
Creates a factory that configures an API client for use with autogenerated Swagger clients.
This method handles setup of the retry strategy, session-level timeout, and any additional configurations for requests. Authentication must be configured afterwards using one of the other class methods.
- Parameters:
- api_url
str
Base URL of the API server.
- session_configuration
SessionConfiguration
,optional
Additional configuration settings for the requests session.
- api_url
Methods
Finalize the API client and return it for use.
Set up client authentication for anonymous use.
Set up client authentication for use with Kerberos (also known as integrated Windows authentication).
ApiClientFactory.with_credentials
(username, ...)Set up client authentication for use with provided credentials.
ApiClientFactory.with_oidc
([...])Set up client authentication for use with OpenID Connect.