2.0.1
This commit is contained in:
1 parent
1ee16914bc
commit
48fe57e4c5
21 files changed
+293
-198
No files matched your search
@@ -0,0 +1 @@
|
||||
from ._api import *
|
||||
@@ -0,0 +1,24 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .add_acl_access import *
|
||||
from .computes_move import *
|
||||
from .create import *
|
||||
from .del_acl_access import *
|
||||
from .delete import *
|
||||
from .get import *
|
||||
from .list import *
|
||||
from .move import *
|
||||
from .rename import *
|
||||
|
||||
|
||||
class CloudapiVmfolderAPI(
|
||||
_base.BaseAPI,
|
||||
):
|
||||
add_acl_access: CloudapiVmfolderAddAclAccessImpl
|
||||
computes_move: CloudapiVmfolderComputesMoveImpl
|
||||
create: CloudapiVmfolderCreateImpl
|
||||
delete: CloudapiVmfolderDeleteImpl
|
||||
del_acl_access: CloudapiVmfolderDelAclAccessImpl
|
||||
get: CloudapiVmfolderGetImpl
|
||||
list: CloudapiVmfolderListImpl
|
||||
move: CloudapiVmfolderMoveImpl
|
||||
rename: CloudapiVmfolderRenameImpl
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiVmfolderAddAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
folder_id: int,
|
||||
user: str,
|
||||
right: _nested.AccessTypeForSet,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiVmfolderComputesMoveImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
compute_ids: list[int],
|
||||
folder_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiVmfolderCreateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
rg_id: int,
|
||||
name: str,
|
||||
parent_id: int | None = None,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiVmfolderDelAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
folder_id: int,
|
||||
user: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiVmfolderDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
folder_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiVmfolderGetResultModel(
|
||||
_nested.VMFolderGetAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiVmfolderGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
folder_id: int,
|
||||
) -> CloudapiVmfolderGetResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,20 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiVmfolderListResultModel(_base.BaseModel):
|
||||
data: list[_nested.VMFolderAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiVmfolderListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
rg_id: int,
|
||||
page: int | None = None,
|
||||
size: int | None = None,
|
||||
) -> CloudapiVmfolderListResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiVmfolderMoveImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
folder_id: int,
|
||||
new_parent_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiVmfolderRenameImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
folder_id: int,
|
||||
name: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
Reference in new issue
Block a user