4.7.2.2. Models¶
Authentication models.
- class axonius_api_client.auth.models.Model[source]¶
Bases:
object
Abstract base class for all Authentication methods.
- class axonius_api_client.auth.models.Mixins(http, creds, **kwargs)[source]¶
Bases:
Model
Mixins for Auth Models.
- Parameters
http (
axonius_api_client.http.Http
) –creds (
typing.Any
) –
- __init__(http, creds, **kwargs)[source]¶
Mixins for Auth Models.
- Parameters
http (
axonius_api_client.http.Http
) – HTTP client to use to send requests.creds (
typing.Any
) – Credentials used by this Auth method.
-
LOG:
logging.Logger
¶ Logger for this object.
- check_login()[source]¶
Check if login has been called.
- Raises
NotLoggedIn – When login has not been called before trying to make a call with this Auth model.
- property endpoints: ApiEndpoints(groups=['instances', 'central_core', 'system_settings', 'remote_support', 'system_users', 'system_roles', 'lifecycle', 'adapters', 'signup', 'password_reset', 'audit_logs', 'enforcements', 'saved_queries', 'assets', 'openapi', 'data_scopes', 'dashboard_spaces', 'folders_queries', 'folders_enforcements', 'account'])¶
Get the endpoint group for this module.
- abstract login()¶
Login to API.
- _check_http_lock()[source]¶
Check HTTP client not already used by another Auth.
- Raises
AuthError – When the HTTP client supplied is already being used by another Auth method.