from typing import Dict, List
from ..decorator import post, get, put, delete, head
from .model import PostWorkspaceParameter, GetWorkspaceResultItem, PostWorkspaceResultItem, MethodResult, \
PostTileJobsItem, PostTileJobsResultItem, GetTileJobResultItem, BuildState, \
PostTilesetUpdateJobs, PostTilesetUpdateJobsResultItem, GetTilesetExportJobResultItem, MngServiceInfo, \
GetFileUploadResult, PostFileUploadTasksParam, PostUploadTasksResult, PostFileUploadTaskResult, \
GetFileUploadTaskResult, RestMngFileListItem, DataStoreSetting, RestMngTileStorageInfo, UserEntity, UserInfo, \
RoleEntity, ServiceInstance, PostAuthorizeEntity
from .abstracttypefields import mng_service_info_deserializer
from io import FileIO
[文档]class Management:
[文档] @post('/manager/workspaces', entityKW='param')
def post_workspaces(self, param: PostWorkspaceParameter) -> List[PostWorkspaceResultItem]:
pass
[文档] @get('/manager/workspaces')
def get_workspaces(self) -> List[GetWorkspaceResultItem]:
pass
[文档] @delete('/manager/services/{name}')
def delete_mapcomponent(self, name: str) -> MethodResult:
pass
[文档] @post('/manager/tileservice/jobs', entityKW='entity')
def post_tilejobs(self, entity: PostTileJobsItem) -> PostTileJobsResultItem:
pass
[文档] @get('/manager/tileservice/jobs')
def get_tilejobs(self) -> List[GetTileJobResultItem]:
pass
[文档] @head('/manager/tileservice/jobs')
def head_tilejobs(self) -> int:
pass
[文档] @get('/manager/tileservice/jobs/{id}')
def get_tilejob(self, id: str) -> GetTileJobResultItem:
pass
[文档] @put('/manager/tileservice/jobs/{id}', entityKW='entity')
def put_tilejob(self, id: str, entity: BuildState) -> MethodResult:
pass
[文档] @delete('/manager/tileservice/jobs/{id}')
def delete_tilejob(self, id: str) -> MethodResult:
pass
[文档] @head('/manager/tileservice/jobs/{id}')
def head_tilejob(self, id: str) -> int:
pass
[文档] @post('/manager/tilesetupdatejobs', entityKW='entity')
def post_tilesetupdatejobs(self, entity: PostTilesetUpdateJobs) -> PostTilesetUpdateJobsResultItem:
pass
[文档] @get('/manager/tilesetupdatejobs')
def get_tilesetupdatejobs(self) -> List[GetTilesetExportJobResultItem]:
pass
[文档] @get('/manager/tilesetupdatejobs/{id}')
def get_tilesetupdatejob(self, id: str) -> GetTilesetExportJobResultItem:
pass
[文档] @get('/manager/services/{service_name}', json_deserializer=mng_service_info_deserializer)
def get_service(self, service_name: str) -> MngServiceInfo:
pass
[文档] @get('/manager/filemanager', fixed_queryKWs={'path': './', 'mode': 'editRelativePath'})
def get_home_path(self) -> Dict[str, str]:
pass
[文档] @get('/manager/filemanager/uploadtasks')
def get_fileuploadtasks(self) -> List[GetFileUploadResult]:
pass
[文档] @post('/manager/filemanager/uploadtasks', entityKW='entity')
def post_fileuploadtasks(self, entity: PostFileUploadTasksParam) -> PostUploadTasksResult:
pass
[文档] @post('/manager/filemanager/uploadtasks/{id}', queryKWs=['toFile', 'overwrite', 'unzip'], fileKW='file')
def post_fileuploadtask(self, id: str, file: FileIO, toFile: str, overwrite: bool = False,
unzip: bool = False) -> PostFileUploadTaskResult:
pass
[文档] @get('/manager/filemanager/uploadtasks/{id}')
def get_fileuploadtask(self, id: str) -> GetFileUploadTaskResult:
pass
[文档] @get('/manager/filemanager/list', queryKWs=['path'])
def get_file_list(self, path: str, filters: str) -> List[RestMngFileListItem]:
pass
[文档] @get('/manager/datastores')
def get_datastores(self) -> List[DataStoreSetting]:
pass
[文档] @get('/manager/datastores/{id}')
def get_datastore(self, id: str) -> RestMngTileStorageInfo:
pass
[文档] @get('/manager/security/users')
def get_users(self) -> List[List[str]]:
pass
[文档] @post('/manager/security/users', entityKW='entity')
def post_users(self, entity: UserEntity) -> MethodResult:
pass
[文档] @put('/manager/security/users', entityKW='entity')
def put_users(self, entity: List[str]) -> MethodResult:
pass
[文档] @get('/manager/security/users/{username}')
def get_user(self, username: str) -> UserInfo:
pass
[文档] @put('/manager/security/users/{username}', entityKW='entity')
def put_user(self, username: str, entity: UserEntity) -> MethodResult:
pass
[文档] @delete('/manager/security/users/{username}')
def delete_user(self, username: str) -> MethodResult:
pass
[文档] @get('/manager/security/roles')
def get_roles(self) -> List[RoleEntity]:
pass
[文档] @post('/manager/security/roles', entityKW='entity')
def post_roles(self, entity: RoleEntity) -> MethodResult:
pass
[文档] @put('/manager/security/roles', entityKW='entity')
def put_roles(self, entity: List[str]) -> MethodResult:
pass
[文档] @get('/manager/security/roles/{role}')
def get_role(self, role: str) -> RoleEntity:
pass
[文档] @put('/manager/security/roles/{role}', entityKW='entity')
def put_role(self, role: str, entity: RoleEntity) -> MethodResult:
pass
[文档] @delete('/manager/security/roles/{role}')
def delete_role(self, role: str) -> MethodResult:
pass
[文档] @get('/manager/instances')
def get_instances(self) -> List[ServiceInstance]:
pass
[文档] @get('/manager/instances/{instance}')
def get_instance(self, instance: str) -> ServiceInstance:
pass
[文档] @post('/manager/instances/authorize', entityKW='entity')
def post_authorize(self, entity: PostAuthorizeEntity) -> MethodResult:
pass