2.0.0
This commit is contained in:
1 parent
a52ec3f1bb
commit
1ee16914bc
438 files changed
+5153
-3282
No files matched your search
@@ -0,0 +1 @@
|
||||
from ._api import *
|
||||
@@ -0,0 +1,20 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .create import *
|
||||
from .delete import *
|
||||
from .disable import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .group_add import *
|
||||
from .group_compute_remove import *
|
||||
|
||||
|
||||
class CloudbrokerBserviceAPI(
|
||||
_base.BaseAPI,
|
||||
):
|
||||
create: CloudbrokerBserviceCreateImpl
|
||||
delete: CloudbrokerBserviceDeleteImpl
|
||||
disable: CloudbrokerBserviceDisableImpl
|
||||
enable: CloudbrokerBserviceEnableImpl
|
||||
get: CloudbrokerBserviceGetImpl
|
||||
group_add: CloudbrokerBserviceGroupAddImpl
|
||||
group_compute_remove: CloudbrokerBserviceGroupComputeRemoveImpl
|
||||
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerBserviceCreateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
name: str,
|
||||
rg_id: int,
|
||||
ssh_user: str | None = None,
|
||||
ssh_key: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerBserviceDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
service_id: int,
|
||||
permanently: bool = False,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerBserviceDisableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
service_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerBserviceEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
service_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,46 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudbrokerBserviceGetResultModel(_base.BaseModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
base_domain: str
|
||||
computes: list[_nested.BServiceVMAPIResultNM]
|
||||
cpu_total: int
|
||||
created_by: str
|
||||
created_time: int
|
||||
deleted_by: str
|
||||
deleted_time: int
|
||||
disk_total: int
|
||||
gid: int
|
||||
groups: list[_nested.BServiceGroupAPIResultNM]
|
||||
guid: int
|
||||
id: int
|
||||
milestones: int
|
||||
name: str
|
||||
parent_srv_id: int
|
||||
parent_srv_type: str
|
||||
ram_total: int
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshots: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
ssh_key: str
|
||||
ssh_user: str
|
||||
status: _nested.BServiceStatus
|
||||
tech_status: _nested.BServiceTechStatus
|
||||
updated_by: str
|
||||
updated_time: int
|
||||
user_managed: bool
|
||||
zone_id: int
|
||||
|
||||
|
||||
class CloudbrokerBserviceGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
service_id: int,
|
||||
) -> CloudbrokerBserviceGetResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,28 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudbrokerBserviceGroupAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
service_id: int,
|
||||
name: str,
|
||||
count: int,
|
||||
cpu: int,
|
||||
ram: int,
|
||||
disk: int,
|
||||
image_id: int,
|
||||
storage_policy_id: int,
|
||||
sep_id: int | None = None,
|
||||
sep_pool: str | None = None,
|
||||
role: str | None = None,
|
||||
vinses: list[int] | None = None,
|
||||
extnets: list[int] | None = None,
|
||||
timeout_start: int | None = None,
|
||||
user_data: str | None = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerBserviceGroupComputeRemoveImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
service_id: int,
|
||||
compgroup_id: int,
|
||||
compute_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
Reference in new issue
Block a user