1.0.1
This commit is contained in:
1
src/dynamix_sdk/api/cloudapi/lb/__init__.py
Normal file
1
src/dynamix_sdk/api/cloudapi/lb/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from ._api import *
|
||||
29
src/dynamix_sdk/api/cloudapi/lb/_api.py
Normal file
29
src/dynamix_sdk/api/cloudapi/lb/_api.py
Normal file
@@ -0,0 +1,29 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .backend_create import *
|
||||
from .backend_delete import *
|
||||
from .backend_server_add import *
|
||||
from .backend_server_delete import *
|
||||
from .backend_server_update import *
|
||||
from .backend_update import *
|
||||
from .create import *
|
||||
from .delete import *
|
||||
from .get import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
|
||||
|
||||
class CloudapiLbAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiLbBackendCreateProtocol,
|
||||
CloudapiLbBackendDeleteProtocol,
|
||||
CloudapiLbBackendServerAddProtocol,
|
||||
CloudapiLbBackendServerDeleteProtocol,
|
||||
CloudapiLbBackendServerUpdateProtocol,
|
||||
CloudapiLbBackendUpdateProtocol,
|
||||
CloudapiLbCreateProtocol,
|
||||
CloudapiLbDeleteProtocol,
|
||||
CloudapiLbGetProtocol,
|
||||
CloudapiLbListDeletedProtocol,
|
||||
CloudapiLbListProtocol,
|
||||
):
|
||||
pass
|
||||
27
src/dynamix_sdk/api/cloudapi/lb/backend_create.py
Normal file
27
src/dynamix_sdk/api/cloudapi/lb/backend_create.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiLbBackendCreateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbBackendCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def backend_create(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
backend_name: str,
|
||||
inter: int = 5000,
|
||||
algorithm: _nested.LBBackendAlgorithm = (
|
||||
_nested.LBBackendAlgorithm.ROUNDROBIN
|
||||
),
|
||||
downinter: int = 1000,
|
||||
rise: int = 2,
|
||||
fall: int = 2,
|
||||
slowstart: int = 60000,
|
||||
maxconn: int = 250,
|
||||
maxqueue: int = 256,
|
||||
weight: int = 256,
|
||||
) -> CloudapiLbBackendCreateResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/backend_delete.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/backend_delete.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbBackendDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbBackendDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def backend_delete(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
backend_name: str,
|
||||
) -> CloudapiLbBackendDeleteResultBool:
|
||||
...
|
||||
28
src/dynamix_sdk/api/cloudapi/lb/backend_server_add.py
Normal file
28
src/dynamix_sdk/api/cloudapi/lb/backend_server_add.py
Normal file
@@ -0,0 +1,28 @@
|
||||
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:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/lb/backend_server_delete.py
Normal file
16
src/dynamix_sdk/api/cloudapi/lb/backend_server_delete.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbBackendServerDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbBackendServerDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def backend_server_delete(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
backend_name: str,
|
||||
server_name: str,
|
||||
) -> CloudapiLbBackendServerDeleteResultBool:
|
||||
...
|
||||
28
src/dynamix_sdk/api/cloudapi/lb/backend_server_update.py
Normal file
28
src/dynamix_sdk/api/cloudapi/lb/backend_server_update.py
Normal file
@@ -0,0 +1,28 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiLbBackendServerUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbBackendServerUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def backend_server_update(
|
||||
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,
|
||||
) -> CloudapiLbBackendServerUpdateResultBool:
|
||||
...
|
||||
27
src/dynamix_sdk/api/cloudapi/lb/backend_update.py
Normal file
27
src/dynamix_sdk/api/cloudapi/lb/backend_update.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiLbBackendUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbBackendUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def backend_update(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
backend_name: str,
|
||||
inter: int = 5000,
|
||||
algorithm: _nested.LBBackendAlgorithm = (
|
||||
_nested.LBBackendAlgorithm.ROUNDROBIN
|
||||
),
|
||||
downinter: int = 1000,
|
||||
rise: int = 2,
|
||||
fall: int = 2,
|
||||
slowstart: int = 60000,
|
||||
maxconn: int = 250,
|
||||
maxqueue: int = 256,
|
||||
weight: int = 256,
|
||||
) -> CloudapiLbBackendUpdateResultBool:
|
||||
...
|
||||
21
src/dynamix_sdk/api/cloudapi/lb/create.py
Normal file
21
src/dynamix_sdk/api/cloudapi/lb/create.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbCreateResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
self,
|
||||
*,
|
||||
ext_net_id: int,
|
||||
name: str,
|
||||
rg_id: int,
|
||||
vins_id: int,
|
||||
description: None | str = None,
|
||||
highly_available: bool = False,
|
||||
start: bool = True,
|
||||
sysctl_params: None | list[str] = None,
|
||||
) -> CloudapiLbCreateResultInt:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/delete.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/delete.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiLbDeleteResultBool:
|
||||
...
|
||||
18
src/dynamix_sdk/api/cloudapi/lb/get.py
Normal file
18
src/dynamix_sdk/api/cloudapi/lb/get.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.LBAPIResultNM
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbGetResultModel:
|
||||
...
|
||||
27
src/dynamix_sdk/api/cloudapi/lb/list.py
Normal file
27
src/dynamix_sdk/api/cloudapi/lb/list.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiLbListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.LBAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiLbListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
account_id: None | int = None,
|
||||
backend_ip_addr: None | str = None,
|
||||
frontend_ip_addr: None | str = None,
|
||||
id: None | int = None,
|
||||
include_deleted: bool = False,
|
||||
name: None | str = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
rg_id: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
status: None | _nested.LBStatus = None,
|
||||
tech_status: None | _nested.LBTechStatus = None,
|
||||
) -> CloudapiLbListResultModel:
|
||||
...
|
||||
25
src/dynamix_sdk/api/cloudapi/lb/list_deleted.py
Normal file
25
src/dynamix_sdk/api/cloudapi/lb/list_deleted.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiLbListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.LBAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiLbListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
self,
|
||||
*,
|
||||
account_id: None | int = None,
|
||||
backend_ip_addr: None | str = None,
|
||||
frontend_ip_addr: None | str = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
rg_id: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
tech_status: None | _nested.LBTechStatus = None,
|
||||
) -> CloudapiLbListDeletedResultModel:
|
||||
...
|
||||
Reference in New Issue
Block a user