Skip to main content

Module clients.connection_config

Functions

discover_platform_connection

def discover_platform_connection(environment_url: Optional[str] = None, config_path: Optional[str] = None, platform_token: Optional[str] = None, token_provider: Optional[h2o_authn.provider.TokenProvider] = None) ‑> ConnectionConfig

Creates ConnectionConfig object by discovering platform connection configuration using h2o_discovery.

:param environment_url: Override for the URL of the environment passed to the discovery service. :param config_path: Override path to the h2o cli config file passed to the discovery service. :param platform_token: Platform token. If not provided, the token will be discovered. :param token_provider: Token provider. If not provided, the provider will be constructed from the discovered config.

get_connection

def get_connection(aiem_url: str, refresh_token: str, issuer_url: str, client_id: str, client_secret: Optional[str] = None) ‑> ConnectionConfig

Creates ConnectionConfig object. Initializes and tests token provider.

Classes

ConnectionConfig

class ConnectionConfig(aiem_url: str, token_provider: h2o_authn.provider.TokenProvider)

Object holding connection configuration for the AIEM server.

Instance variables

var aiem_url : str

Alias for field number 0

var token_provider : h2o_authn.provider.TokenProvider

Alias for field number 1

Ancestors

  • builtins.tuple

Feedback