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 the access token for cloud services.
Get the authorization part of HTTP headers for REST API calls.
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.