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_urlstr

Base URL of the API server.

session_configurationSessionConfiguration, optional

Additional configuration settings for the requests session.

Methods

ApiClientFactory.connect()

Finalize the API client and return it for use.

ApiClientFactory.with_anonymous()

Set up client authentication for anonymous use.

ApiClientFactory.with_autologon()

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.