mlos_bench.services.types.authenticator_type module

Protocol interface for authentication for the cloud services.

class mlos_bench.services.types.authenticator_type.SupportsAuth(*args, **kwargs)

Bases: Protocol[T_co]

Protocol interface for authentication for the cloud services.

Methods

get_access_token()

Get the access token for cloud services.

get_auth_headers()

Get the authorization part of HTTP headers for REST API calls.

get_credential()

Get the credential object for cloud services.

get_access_token() str

Get the access token for cloud services.

Returns:
access_tokenstr

Access token.

get_auth_headers() dict

Get the authorization part of HTTP headers for REST API calls.

Returns:
access_headerdict

HTTP header containing the access token.

get_credential() T_co

Get the credential object for cloud services.

Returns:
credentialT

Cloud-specific credential object.