import dynamix_sdk.base as _base
from dynamix_sdk.api import _nested


class CloudapiLbBackendServerAddResultBool(_base.BaseAPIResultBool):
    pass


class CloudapiLbBackendServerAddProtocol(_base.BasePostAPIFunctionProtocol):
    def backend_server_add(
        self,
        *,
        lb_id: int,
        backend_name: str,
        server_name: str,
        ip_addr: str,
        port: int,
        check: _nested.LBServerCheck = _nested.LBServerCheck.ENABLED,
        inter: int = 5000,
        downinter: int = 1000,
        rise: int = 2,
        fall: int = 2,
        slowstart: int = 60000,
        maxconn: int = 250,
        maxqueue: int = 256,
        weight: int = 256,
    ) -> CloudapiLbBackendServerAddResultBool:
        ...
