This commit is contained in:
dyusmirnov committed 2025-12-02 10:48:38 +03:00
1 parent 9eac1da63f
commit 1703d1ed33
266 files changed
+5566 -502

No files matched your search

@@ -1,4 +1,5 @@
import dynamix_sdk.base as _base
from .change_storage_policy import *
from .create import *
from .create_virtual import *
from .delete import *
@@ -10,6 +11,7 @@ from .rename import *
class CloudapiImageAPI(
_base.BaseAPI,
CloudapiImageChangeStoragePolicyProtocol,
CloudapiImageCreateProtocol,
CloudapiImageCreateVirtualProtocol,
CloudapiImageDeleteProtocol,
@@ -0,0 +1,17 @@
import dynamix_sdk.base as _base
class CloudapiImageChangeStoragePolicyResultBool(_base.BaseAPIResultBool):
pass
class CloudapiImageChangeStoragePolicyProtocol(
_base.BasePostAPIFunctionProtocol,
):
def change_storage_policy(
self,
*,
image_id: int,
storage_policy_id: int,
) -> CloudapiImageChangeStoragePolicyResultBool:
...
+1 -1
View File
@@ -12,10 +12,10 @@ class CloudapiImageCreateProtocol(_base.BasePostAPIFunctionProtocol):
*,
account_id: int,
boot_mode: _nested.BootMode,
drivers: list[_nested.Driver],
boot_loader_type: _nested.BootLoaderType,
name: str,
download_url: str,
storage_policy_id: int,
hot_resize: bool = False,
network_interface_naming: _nested.NetIfaceNamingTemplate = (
_nested.NetIfaceNamingTemplate.ens
@@ -11,5 +11,6 @@ class CloudapiImageCreateVirtualProtocol(_base.BasePostAPIFunctionProtocol):
*,
name: str,
target_image_id: int,
account_id: int | None = None,
) -> CloudapiImageCreateVirtualResultInt:
...
@@ -36,11 +36,13 @@ class CloudapiImageGetResultModel(_base.BaseAPIResultModel):
rescue_cd: bool
sep_id: int
sep_pool_name: str
storage_policy_id: int
shared_with: list[int]
size_gb: int
snapshot_id: str = ''
status: _nested.ImageStatus
tech_status: _nested.ImageTechStatus
to_clean: bool
type: _nested.ImageType
unc_path: str
version: str
@@ -26,5 +26,6 @@ class CloudapiImageListProtocol(_base.BasePostAPIFunctionProtocol):
sort_by: str | None = None,
status: _nested.ImageStatus | None = None,
type: _nested.ImageType | None = None,
storage_policy_id: int | None = None,
) -> CloudapiImageListResultModel:
...