2.1.0
This commit is contained in:
1 parent
1ee16914bc
commit
6ffea46b8a
576 files changed
+12867
-562
No files matched your search
@@ -1,30 +1,30 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .add_acl_access import *
|
||||
from .add_user import *
|
||||
from .delete import *
|
||||
from .del_acl_access import *
|
||||
from .delete_user import *
|
||||
from .disable import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_resource_consumption import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .restore import *
|
||||
from .update import *
|
||||
from .update_acl_access import *
|
||||
from .update_user import *
|
||||
|
||||
|
||||
class CloudapiAccountAPI(
|
||||
_base.BaseAPI,
|
||||
):
|
||||
add_acl_access: CloudapiAccountAddAclAccessImpl
|
||||
add_user: CloudapiAccountAddUserImpl
|
||||
del_acl_access: CloudapiAccountDelAclAccessImpl
|
||||
restore: CloudapiAccountRestoreImpl
|
||||
delete: CloudapiAccountDeleteImpl
|
||||
disable: CloudapiAccountDisableImpl
|
||||
delete_user: CloudapiAccountDeleteUserImpl
|
||||
list: CloudapiAccountListImpl
|
||||
update_user: CloudapiAccountUpdateUserImpl
|
||||
get: CloudapiAccountGetImpl
|
||||
get_resource_consumption: CloudapiAccountGetResourceConsumptionImpl
|
||||
update: CloudapiAccountUpdateImpl
|
||||
update_acl_access: CloudapiAccountUpdateAclAccessImpl
|
||||
list_deleted: CloudapiAccountListDeletedImpl
|
||||
enable: CloudapiAccountEnableImpl
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountAddAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
accesstype: _nested.AccessTypeForSet,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -11,5 +11,6 @@ class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_name: str,
|
||||
) -> bool:
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDelAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,13 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
permanently: bool = False,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -9,5 +9,6 @@ class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
||||
*,
|
||||
account_id: int,
|
||||
user_name: str,
|
||||
) -> bool:
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDisableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResultModel(_base.BaseModel):
|
||||
class CloudapiAccountGetResultModel(_base.ResultModel):
|
||||
acc_lvl_vins_ids: list[int]
|
||||
acl: list[_nested.AccessAPIResultNM]
|
||||
company_url: str
|
||||
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||
_base.BaseModel,
|
||||
_base.ResultModel,
|
||||
):
|
||||
id: int
|
||||
consumed: _nested.ResourceCountersAPIResultNM
|
||||
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListResultModel(_base.BaseModel):
|
||||
class CloudapiAccountListResultModel(_base.ResultModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedResultModel(_base.BaseModel):
|
||||
class CloudapiAccountListDeletedResultModel(_base.ResultModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
@@ -8,5 +8,6 @@ class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
async_mode: bool = True,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -18,5 +18,6 @@ class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
||||
sep_pools: None | list[str] = None,
|
||||
description: str | None = None,
|
||||
default_zone_id: int | None = None,
|
||||
) -> bool:
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountUpdateAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
accesstype: _nested.AccessTypeForSet,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -11,5 +11,6 @@ class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_name: str,
|
||||
) -> bool:
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
Reference in new issue
Block a user