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, ssl_context: Optional[ssl.SSLContext] = 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. :param ssl_context: SSL context to use for the discovery client.
get_connection
def get_connection(aiem_url: str, refresh_token: str, issuer_url: str, client_id: str, client_secret: Optional[str], verify_ssl: bool, ssl_ca_cert: Optional[str]) ‑> 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
- Submit and view feedback for this page
- Send feedback about AI Engine Manager to cloud-feedback@h2o.ai