from .._defaults import (
default_allow_request_fail_exceptions,
default_console_monitor_max_lines,
default_console_monitor_max_msgs,
default_console_monitor_poll_period,
default_http_login_timeout,
default_http_request_timeout,
default_status_expiration_period,
default_status_polling_period,
)
from ..api_async import API_Async_Mixin
from ..api_docstrings import _doc_REManagerAPI_HTTP
from ..comm_async import ReManagerComm_HTTP_Async
[docs]class REManagerAPI(ReManagerComm_HTTP_Async, API_Async_Mixin):
[docs] def __init__(
self,
*,
http_server_uri=None,
http_auth_provider=None,
timeout=default_http_request_timeout,
timeout_login=default_http_login_timeout,
console_monitor_poll_period=default_console_monitor_poll_period,
console_monitor_max_msgs=default_console_monitor_max_msgs,
console_monitor_max_lines=default_console_monitor_max_lines,
request_fail_exceptions=default_allow_request_fail_exceptions,
status_expiration_period=default_status_expiration_period,
status_polling_period=default_status_polling_period,
):
ReManagerComm_HTTP_Async.__init__(
self,
http_server_uri=http_server_uri,
http_auth_provider=http_auth_provider,
timeout=timeout,
timeout_login=timeout_login,
console_monitor_poll_period=console_monitor_poll_period,
console_monitor_max_msgs=console_monitor_max_msgs,
console_monitor_max_lines=console_monitor_max_lines,
request_fail_exceptions=request_fail_exceptions,
)
API_Async_Mixin.__init__(
self,
status_expiration_period=status_expiration_period,
status_polling_period=status_polling_period,
)
REManagerAPI.__doc__ = _doc_REManagerAPI_HTTP