1.3.0
This commit is contained in:
@@ -5,6 +5,7 @@ from .backend_server_add import *
|
||||
from .backend_server_delete import *
|
||||
from .backend_server_update import *
|
||||
from .backend_update import *
|
||||
from .config_reset import *
|
||||
from .create import *
|
||||
from .delete import *
|
||||
from .disable import *
|
||||
@@ -18,6 +19,13 @@ from .get import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .make_highly_available import *
|
||||
from .migrate_to_zone import *
|
||||
from .restart import *
|
||||
from .restore import *
|
||||
from .start import *
|
||||
from .stop import *
|
||||
from .update import *
|
||||
from .update_sysctl_params import *
|
||||
|
||||
|
||||
class CloudapiLbAPI(
|
||||
@@ -28,6 +36,7 @@ class CloudapiLbAPI(
|
||||
CloudapiLbBackendServerDeleteProtocol,
|
||||
CloudapiLbBackendServerUpdateProtocol,
|
||||
CloudapiLbBackendUpdateProtocol,
|
||||
CloudapiLbConfigResetProtocol,
|
||||
CloudapiLbCreateProtocol,
|
||||
CloudapiLbDeleteProtocol,
|
||||
CloudapiLbDisableProtocol,
|
||||
@@ -41,5 +50,12 @@ class CloudapiLbAPI(
|
||||
CloudapiLbListDeletedProtocol,
|
||||
CloudapiLbListProtocol,
|
||||
CloudapiLbMakeHighlyAvailableProtocol,
|
||||
CloudapiLbMigrateToZoneProtocol,
|
||||
CloudapiLbRestartProtocol,
|
||||
CloudapiLbRestoreProtocol,
|
||||
CloudapiLbStartProtocol,
|
||||
CloudapiLbStopProtocol,
|
||||
CloudapiLbUpdateProtocol,
|
||||
CloudapiLbUpdateSysctlParamsProtocol,
|
||||
):
|
||||
pass
|
||||
|
||||
14
src/dynamix_sdk/api/cloudapi/lb/config_reset.py
Normal file
14
src/dynamix_sdk/api/cloudapi/lb/config_reset.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbConfigResetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbConfigResetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def config_reset(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbConfigResetResultBool:
|
||||
...
|
||||
@@ -16,7 +16,7 @@ class CloudapiLbCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
description: None | str = None,
|
||||
ha_mode: bool = False,
|
||||
start: bool = True,
|
||||
sysctl_params: None | list[str] = None,
|
||||
sysctl_params: None | list[dict[str, str]] = None,
|
||||
zone_id: None | int = None,
|
||||
) -> CloudapiLbCreateResultInt:
|
||||
...
|
||||
|
||||
@@ -20,6 +20,7 @@ class CloudapiLbListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
rg_id: None | int = None,
|
||||
zone_id: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
status: None | _nested.LBStatus = None,
|
||||
tech_status: None | _nested.LBTechStatus = None,
|
||||
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/migrate_to_zone.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/migrate_to_zone.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiLbMigrateToZoneResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/restart.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/restart.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbRestartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbRestartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restart(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
safe: bool = True,
|
||||
) -> CloudapiLbRestartResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/lb/restore.py
Normal file
14
src/dynamix_sdk/api/cloudapi/lb/restore.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbRestoreResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbRestoreResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/lb/start.py
Normal file
14
src/dynamix_sdk/api/cloudapi/lb/start.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def start(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbStartResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/lb/stop.py
Normal file
14
src/dynamix_sdk/api/cloudapi/lb/stop.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def stop(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbStopResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/update.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/update.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update(
|
||||
self,
|
||||
*,
|
||||
description: str,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbUpdateResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/update_sysctl_params.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/update_sysctl_params.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbUpdateSysctlParamsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbUpdateSysctlParamsProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update_sysctl_params(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
sysctl_params: list[dict[str, str]],
|
||||
) -> CloudapiLbUpdateSysctlParamsResultBool:
|
||||
...
|
||||
Reference in New Issue
Block a user