1.3.0
This commit is contained in:
1 parent
9eac1da63f
commit
1703d1ed33
266 files changed
+5566
-502
No files matched your search
@@ -0,0 +1 @@
|
||||
from ._api import *
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .block import *
|
||||
from .create import *
|
||||
from .get import *
|
||||
from .list import *
|
||||
from .unblock import *
|
||||
|
||||
|
||||
class CloudbrokerUserAPI(
|
||||
_base.BaseAPI,
|
||||
CloudbrokerUserBlockProtocol,
|
||||
CloudbrokerUserCreateProtocol,
|
||||
CloudbrokerUserGetProtocol,
|
||||
CloudbrokerUserListProtocol,
|
||||
CloudbrokerUserUnblockProtocol,
|
||||
):
|
||||
pass
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerUserBlockResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudbrokerUserBlockProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def block(
|
||||
self,
|
||||
*,
|
||||
user_name: str,
|
||||
) -> CloudbrokerUserBlockResultBool:
|
||||
...
|
||||
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudbrokerUserCreateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudbrokerUserCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
self,
|
||||
*,
|
||||
user_name: str,
|
||||
email_addresses: list[str],
|
||||
password: str,
|
||||
api_access_group_ids: list[int] | None = None,
|
||||
auth_broker: _nested.AuthBroker | None = None,
|
||||
) -> CloudbrokerUserCreateResultBool:
|
||||
...
|
||||
@@ -0,0 +1,36 @@
|
||||
import typing as _typing
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerUserGetResultModel(_base.BaseAPIResultModel):
|
||||
active: bool
|
||||
api_access_groups: dict[str, str]
|
||||
auth_key: str
|
||||
auth_keys: list[_typing.Any]
|
||||
blocked: bool | None = None
|
||||
ckey: str
|
||||
data: str
|
||||
description: str
|
||||
domain_name: str | None
|
||||
emails: list[str]
|
||||
grid_id: int
|
||||
groups: list[str]
|
||||
guid: str
|
||||
id: str
|
||||
last_check_timestamp: int
|
||||
meta: list[_typing.Any]
|
||||
mobile: list[_typing.Any]
|
||||
password: str
|
||||
protected: bool | None = None
|
||||
roles: list[_typing.Any]
|
||||
service_account: bool
|
||||
xmpp: list[_typing.Any]
|
||||
|
||||
@property
|
||||
def last_check_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.last_check_timestamp)
|
||||
|
||||
|
||||
class CloudbrokerUserGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(self, *, user_name: str) -> CloudbrokerUserGetResultModel:
|
||||
...
|
||||
@@ -0,0 +1,22 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudbrokerUserListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.UserAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudbrokerUserListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
active: bool | None = None,
|
||||
email: str | None = None,
|
||||
name: str | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
service_account: bool | None = None,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudbrokerUserListResultModel:
|
||||
...
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerUserUnblockResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudbrokerUserUnblockProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def unblock(
|
||||
self,
|
||||
*,
|
||||
user_name: str,
|
||||
) -> CloudbrokerUserUnblockResultBool:
|
||||
...
|
||||
Reference in new issue
Block a user