malevich-coretools 0.3.14__py3-none-any.whl → 0.3.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of malevich-coretools might be problematic. Click here for more details.

@@ -4,4 +4,5 @@ from .utils import ( # noqa: F401
4
4
  BatchOperation,
5
5
  BatchOperations,
6
6
  DefferOperation,
7
+ DefferOperationInternal,
7
8
  )
@@ -3,6 +3,7 @@ from typing import Dict, Optional
3
3
 
4
4
  import aiohttp
5
5
 
6
+ from malevich_coretools.batch import DefferOperationInternal
6
7
  from malevich_coretools.secondary.helpers import bool_to_str
7
8
 
8
9
  # const
@@ -25,7 +26,9 @@ def with_key_values(url: str, key_values: Dict[str, Optional[str]]) -> str:
25
26
  sep = "?"
26
27
  for key, value in key_values.items():
27
28
  if value is not None:
28
- if isinstance(value, str):
29
+ if isinstance(value, DefferOperationInternal):
30
+ value = urllib.parse.quote(str(value), safe='')
31
+ elif isinstance(value, str):
29
32
  value = urllib.parse.quote(value, safe='')
30
33
  url = f"{url}{sep}{key}={value}"
31
34
  if sep == "?":
@@ -40,21 +43,21 @@ DOCS_ID = lambda id, wait: with_wait(f"{DOCS_MAIN}/{id}", wait)
40
43
  ## CollectionsController
41
44
  COLLECTIONS_MAIN = f"{API_VERSION}/collections"
42
45
  COLLECTIONS = lambda wait: with_wait(f"{COLLECTIONS_MAIN}/", wait)
43
- COLLECTIONS_IDS_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/name/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id})
44
- COLLECTIONS_NAME = lambda name, operation_id, run_id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/name/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id, "offset": offset, "limit": limit})
45
- COLLECTIONS_IDS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/groupName/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id})
46
- COLLECTIONS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/groupName/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id})
47
- COLLECTIONS_ID = lambda id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}", {"offset": offset, "limit": limit})
48
- COLLECTIONS_ID_MODIFY = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
49
- COLLECTIONS_ID_S3 = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/s3/{urllib.parse.quote(id, safe='')}", wait)
50
- COLLECTIONS_ID_ADD = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/add", wait)
51
- COLLECTIONS_ID_COPY = lambda id, full_copy, wait: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/copy", {"wait": None if wait is None else bool_to_str(wait), "fullCopy": None if full_copy is None else bool_to_str(full_copy)})
52
- COLLECTIONS_ID_DEL = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/del", wait)
46
+ COLLECTIONS_IDS_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/name/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
47
+ COLLECTIONS_NAME = lambda name, operation_id, run_id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/name/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id, "offset": offset, "limit": limit})
48
+ COLLECTIONS_IDS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/groupName/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
49
+ COLLECTIONS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/groupName/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
50
+ COLLECTIONS_ID = lambda id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", {"offset": offset, "limit": limit})
51
+ COLLECTIONS_ID_MODIFY = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
52
+ COLLECTIONS_ID_S3 = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/s3/{urllib.parse.quote(str(id), safe='')}", wait)
53
+ COLLECTIONS_ID_ADD = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/add", wait)
54
+ COLLECTIONS_ID_COPY = lambda id, full_copy, wait: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/copy", {"wait": None if wait is None else bool_to_str(wait), "fullCopy": None if full_copy is None else bool_to_str(full_copy)})
55
+ COLLECTIONS_ID_DEL = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/del", wait)
53
56
  COLLECTIONS_DATA = lambda wait: with_wait(f"{COLLECTIONS_MAIN}/data", wait)
54
- COLLECTIONS_APPLY_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/applyScheme", wait)
55
- COLLECTIONS_FIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/fixScheme", wait)
56
- COLLECTIONS_UNFIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/unfixScheme", wait)
57
- COLLECTIONS_METADATA = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/metadata", wait)
57
+ COLLECTIONS_APPLY_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/applyScheme", wait)
58
+ COLLECTIONS_FIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/fixScheme", wait)
59
+ COLLECTIONS_UNFIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/unfixScheme", wait)
60
+ COLLECTIONS_METADATA = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/metadata", wait)
58
61
 
59
62
  ## CollectionObjectsController
60
63
  COLLECTION_OBJECTS_MAIN = f"{API_VERSION}/collectionObjects"
@@ -67,43 +70,43 @@ COLLECTION_OBJECTS_PRESIGN = lambda signature, zip: with_key_values(f"{COLLECTIO
67
70
 
68
71
  ## EndpointController
69
72
  ENDPOINTS_MAIN = f"{API_VERSION}/endpoints"
70
- ENDPOINTS = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/{urllib.parse.quote(hash, safe='')}", wait)
73
+ ENDPOINTS = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/{urllib.parse.quote(str(hash), safe='')}", wait)
71
74
  ENDPOINTS_ALL = lambda wait: with_wait(f"{ENDPOINTS_MAIN}/all", wait)
72
- ENDPOINTS_RUN = lambda hash: f"{ENDPOINTS_MAIN}/run/{urllib.parse.quote(hash, safe='')}"
75
+ ENDPOINTS_RUN = lambda hash: f"{ENDPOINTS_MAIN}/run/{urllib.parse.quote(str(hash), safe='')}"
73
76
  ENDPOINTS_CREATE = lambda wait: with_wait(f"{ENDPOINTS_MAIN}/create", wait)
74
77
  ENDPOINTS_UPDATE = lambda wait: with_wait(f"{ENDPOINTS_MAIN}/update", wait)
75
- ENDPOINTS_PAUSE = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/pause/{urllib.parse.quote(hash, safe='')}", wait)
76
- ENDPOINTS_RESUME = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/resume/{urllib.parse.quote(hash, safe='')}", wait)
78
+ ENDPOINTS_PAUSE = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/pause/{urllib.parse.quote(str(hash), safe='')}", wait)
79
+ ENDPOINTS_RESUME = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/resume/{urllib.parse.quote(str(hash), safe='')}", wait)
77
80
 
78
81
  ## SchemeController
79
82
  SCHEMES_MAIN = f"{API_VERSION}/schemes"
80
83
  SCHEMES = lambda wait: with_wait(f"{SCHEMES_MAIN}/", wait)
81
- SCHEMES_ID = lambda id, wait: with_wait(f"{SCHEMES_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
82
- SCHEMES_ID_RAW = lambda id: f"{SCHEMES_MAIN}/{urllib.parse.quote(id, safe='')}/raw"
84
+ SCHEMES_ID = lambda id, wait: with_wait(f"{SCHEMES_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
85
+ SCHEMES_ID_RAW = lambda id: f"{SCHEMES_MAIN}/{urllib.parse.quote(str(id), safe='')}/raw"
83
86
  SCHEMES_MAPPING = lambda wait: with_wait(f"{SCHEMES_MAIN}/mapping", wait)
84
- SCHEMES_MAPPING_IDS = lambda from_id, to_id: f"{SCHEMES_MAIN}/mapping/{urllib.parse.quote(from_id, safe='')}/{urllib.parse.quote(to_id, safe='')}"
87
+ SCHEMES_MAPPING_IDS = lambda from_id, to_id: f"{SCHEMES_MAIN}/mapping/{urllib.parse.quote(str(from_id), safe='')}/{urllib.parse.quote(str(to_id), safe='')}"
85
88
 
86
89
  ## CommonController
87
90
  CHECK = ""
88
91
  PING = "ping"
89
92
  # COMMON_MAIN = f"{API_VERSION}/common"
90
93
  # MAPPING = lambda wait: with_wait(f"{COMMON_MAIN}/mapping", wait)
91
- # MAPPING_ID = lambda id, wait: with_wait(f"{COMMON_MAIN}/mapping/{urllib.parse.quote(id, safe='')}", wait)
94
+ # MAPPING_ID = lambda id, wait: with_wait(f"{COMMON_MAIN}/mapping/{urllib.parse.quote(str(id), safe='')}", wait)
92
95
  # COMMON_ALL = lambda wait: with_wait(f"{COMMON_MAIN}/all", wait)
93
96
 
94
97
  ## UserShareController
95
98
  SHARE_MAIN = f"{API_VERSION}/share"
96
99
  SHARE = lambda wait: with_wait(f"{SHARE_MAIN}/", wait)
97
- SHARE_COLLECTION_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/collection/{urllib.parse.quote(id, safe='')}", wait)
98
- SHARE_SCHEME_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/scheme/{urllib.parse.quote(id, safe='')}", wait)
99
- SHARE_USER_APP_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/userApp/{urllib.parse.quote(id, safe='')}", wait)
100
- SHARE_LOGIN = lambda login: f"{SHARE_MAIN}/login/{urllib.parse.quote(login, safe='')}"
100
+ SHARE_COLLECTION_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/collection/{urllib.parse.quote(str(id), safe='')}", wait)
101
+ SHARE_SCHEME_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/scheme/{urllib.parse.quote(str(id), safe='')}", wait)
102
+ SHARE_USER_APP_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/userApp/{urllib.parse.quote(str(id), safe='')}", wait)
103
+ SHARE_LOGIN = lambda login: f"{SHARE_MAIN}/login/{urllib.parse.quote(str(login), safe='')}"
101
104
  SHARE_ALL = lambda wait: with_wait(f"{SHARE_MAIN}/all", wait)
102
105
 
103
106
  ## RegistrationController
104
107
  REGISTER_MAIN = f"{API_VERSION}/register"
105
108
  REGISTER = f"{REGISTER_MAIN}/"
106
- REGISTER_LOGIN = lambda login, wait: with_wait(f"{REGISTER_MAIN}/login/{urllib.parse.quote(login, safe='')}", wait)
109
+ REGISTER_LOGIN = lambda login, wait: with_wait(f"{REGISTER_MAIN}/login/{urllib.parse.quote(str(login), safe='')}", wait)
107
110
  REGISTER_ALL = f"{REGISTER_MAIN}/all"
108
111
 
109
112
  ## UserAppsController
@@ -111,44 +114,44 @@ USER_APPS_MAIN = f"{API_VERSION}/userApps"
111
114
  USER_APPS = lambda wait: with_wait(f"{USER_APPS_MAIN}/", wait)
112
115
  USER_APPS_REAL_IDS = f"{USER_APPS_MAIN}/realIds"
113
116
  USER_APPS_MAP_IDS = f"{USER_APPS_MAIN}/mapIds"
114
- USER_APPS_ID = lambda id, wait: with_wait(f"{USER_APPS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
115
- USER_APPS_REAL_ID = lambda id: f"{USER_APPS_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
117
+ USER_APPS_ID = lambda id, wait: with_wait(f"{USER_APPS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
118
+ USER_APPS_REAL_ID = lambda id: f"{USER_APPS_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
116
119
 
117
120
  ## UserTasksController
118
121
  USER_TASKS_MAIN = f"{API_VERSION}/userTasks"
119
122
  USER_TASKS = lambda wait: with_wait(f"{USER_TASKS_MAIN}/", wait)
120
123
  USER_TASKS_REAL_IDS = f"{USER_TASKS_MAIN}/realIds"
121
124
  USER_TASKS_MAP_IDS = f"{USER_TASKS_MAIN}/mapIds"
122
- USER_TASKS_ID = lambda id, wait: with_wait(f"{USER_TASKS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
123
- USER_TASKS_REAL_ID = lambda id: f"{USER_TASKS_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
125
+ USER_TASKS_ID = lambda id, wait: with_wait(f"{USER_TASKS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
126
+ USER_TASKS_REAL_ID = lambda id: f"{USER_TASKS_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
124
127
 
125
128
  ## UserPipelinesController
126
129
  USER_PIPELINES_MAIN = f"{API_VERSION}/userPipelines"
127
130
  USER_PIPELINES = lambda wait: with_wait(f"{USER_PIPELINES_MAIN}/", wait)
128
131
  USER_PIPELINES_REAL_IDS = f"{USER_PIPELINES_MAIN}/realIds"
129
132
  USER_PIPELINES_MAP_IDS = f"{USER_PIPELINES_MAIN}/mapIds"
130
- USER_PIPELINES_ID = lambda id, wait: with_wait(f"{USER_PIPELINES_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
131
- USER_PIPELINES_REAL_ID = lambda id: f"{USER_PIPELINES_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
133
+ USER_PIPELINES_ID = lambda id, wait: with_wait(f"{USER_PIPELINES_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
134
+ USER_PIPELINES_REAL_ID = lambda id: f"{USER_PIPELINES_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
132
135
 
133
136
  ## UserCfgsController
134
137
  USER_CFGS_MAIN = f"{API_VERSION}/userCfgs"
135
138
  USER_CFGS = lambda wait: with_wait(f"{USER_CFGS_MAIN}/", wait)
136
139
  USER_CFGS_REAL_IDS = f"{USER_CFGS_MAIN}/realIds"
137
140
  USER_CFGS_MAP_IDS = f"{USER_CFGS_MAIN}/mapIds"
138
- USER_CFGS_ID = lambda id, wait: with_wait(f"{USER_CFGS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
139
- USER_CFGS_REAL_ID = lambda id: f"{USER_CFGS_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
141
+ USER_CFGS_ID = lambda id, wait: with_wait(f"{USER_CFGS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
142
+ USER_CFGS_REAL_ID = lambda id: f"{USER_CFGS_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
140
143
 
141
144
  ## OperationResultsController
142
145
  OPERATION_RESULTS_MAIN = f"{API_VERSION}/operationResults"
143
146
  OPERATION_RESULTS = lambda wait: with_wait(f"{OPERATION_RESULTS_MAIN}/", wait)
144
- OPERATION_RESULTS_ID = lambda id, wait: with_wait(f"{OPERATION_RESULTS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
147
+ OPERATION_RESULTS_ID = lambda id, wait: with_wait(f"{OPERATION_RESULTS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
145
148
 
146
149
  ## TempRunController
147
150
  TEMP_RUN_MAIN = f"{API_VERSION}/run"
148
- TEMP_RUN_CONDITION = lambda operationId: f"{TEMP_RUN_MAIN}/condition/{urllib.parse.quote(operationId, safe='')}"
151
+ TEMP_RUN_CONDITION = lambda operationId: f"{TEMP_RUN_MAIN}/condition/{urllib.parse.quote(str(operationId), safe='')}"
149
152
  TEMP_RUN_ACTIVE_RUNS = f"{TEMP_RUN_MAIN}/activeRuns"
150
- TEMP_RUN_MAIN_TASK_CFG = lambda operationId: f"{TEMP_RUN_MAIN}/mainTaskCfg/{urllib.parse.quote(operationId, safe='')}"
151
- TEMP_RUN_OPERATIONS_IDS = lambda taskId, cfgId: f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(taskId, safe='')}" if cfgId is None else f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(taskId, safe='')}/{urllib.parse.quote(cfgId, safe='')}"
153
+ TEMP_RUN_MAIN_TASK_CFG = lambda operationId: f"{TEMP_RUN_MAIN}/mainTaskCfg/{urllib.parse.quote(str(operationId), safe='')}"
154
+ TEMP_RUN_OPERATIONS_IDS = lambda taskId, cfgId: f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(str(taskId), safe='')}" if cfgId is None else f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(str(taskId), safe='')}/{urllib.parse.quote(str(cfgId), safe='')}"
152
155
 
153
156
  ## AdminController
154
157
  ADMIN_MAIN = f"{API_VERSION}/admin"
@@ -160,11 +163,11 @@ ADMIN_SUPERUSER = f"{ADMIN_MAIN}/superuser"
160
163
  MANAGER_MAIN = f"{API_VERSION}/manager"
161
164
  MANAGER_LOGS = f"{MANAGER_MAIN}/logs"
162
165
  MANAGER_CLICKHOUSE_ALL = f"{MANAGER_MAIN}/clickhouse"
163
- MANAGER_CLICKHOUSE_ID = lambda operationId: f"{MANAGER_MAIN}/clickhouse/{urllib.parse.quote(operationId, safe='')}"
166
+ MANAGER_CLICKHOUSE_ID = lambda operationId: f"{MANAGER_MAIN}/clickhouse/{urllib.parse.quote(str(operationId), safe='')}"
164
167
  MANAGER_DAG_KEY_VALUE = lambda wait: with_wait(f"{MANAGER_MAIN}/dagKeyValue", wait)
165
- MANAGER_DAG_KEY_VALUE_OPERATION_ID = lambda operationId: f"{MANAGER_MAIN}/dagKeyValue/{urllib.parse.quote(operationId, safe='')}"
166
- MANAGER_APP_INFO = lambda appId: f"{MANAGER_MAIN}/appInfo/{urllib.parse.quote(appId, safe='')}"
167
- MANAGER_APP_INFO_REAL_ID = lambda appId: f"{MANAGER_MAIN}/appInfo/realId/{urllib.parse.quote(appId, safe='')}"
168
+ MANAGER_DAG_KEY_VALUE_OPERATION_ID = lambda operationId: f"{MANAGER_MAIN}/dagKeyValue/{urllib.parse.quote(str(operationId), safe='')}"
169
+ MANAGER_APP_INFO = lambda appId: f"{MANAGER_MAIN}/appInfo/{urllib.parse.quote(str(appId), safe='')}"
170
+ MANAGER_APP_INFO_REAL_ID = lambda appId: f"{MANAGER_MAIN}/appInfo/realId/{urllib.parse.quote(str(appId), safe='')}"
168
171
  MANAGER_IMAGE_INFO = f"{MANAGER_MAIN}/imageInfo"
169
172
  MANAGER_TASK_SCHEDULES = f"{MANAGER_MAIN}/task/schedules"
170
173
  MANAGER_TASK = lambda wait: with_wait(f"{MANAGER_MAIN}/task", wait)
@@ -864,7 +864,7 @@ def create_endpoint(
864
864
  auth: Optional[AUTH] = None,
865
865
  conn_url: Optional[str] = None,
866
866
  batcher: Optional[Batcher] = None,
867
- ) -> str:
867
+ ) -> Alias.Id:
868
868
  """create endpoint, return hash, url - api/v1/endpoints/run/{hash}. fields may not be initialized - this will only cause an error at startup"""
869
869
  if batcher is None:
870
870
  batcher = Config.BATCHER
@@ -891,12 +891,12 @@ def update_endpoint(
891
891
  auth: Optional[AUTH] = None,
892
892
  conn_url: Optional[str] = None,
893
893
  batcher: Optional[Batcher] = None,
894
- ) -> str:
894
+ ) -> Alias.Id:
895
895
  """update endpoint, return hash, url - api/v1/endpoints/run/{hash}. update field if it is not None"""
896
896
  if batcher is None:
897
897
  batcher = Config.BATCHER
898
898
  data = Endpoint(hash=hash, taskId=task_id, cfgId=cfg_id, sla=sla, active=active, prepare=prepare, runSettings=run_settings,
899
- enableNotAuthorized=enable_not_auth, expectedCollectionsWithScheme=expected_colls_with_schemes, description=description)
899
+ enableNotAuthorized=enable_not_auth, expectedCollectionsWithSchemes=expected_colls_with_schemes, description=description)
900
900
  if batcher is not None:
901
901
  return batcher.add("postEndpointUpdate", data=data)
902
902
  return f.update_endpoint(data, wait=wait, auth=auth, conn_url=conn_url)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -1,12 +1,12 @@
1
1
  malevich_coretools/__init__.py,sha256=DJtPESxkCZD2SbTZTrR_x0TKDQ4MJpmBqGw5YpKYidM,134
2
- malevich_coretools/utils.py,sha256=mkAN-qPVjIBQCvaY1p8JaLzj0tYIfwq-cETtd7WZKsk,105340
2
+ malevich_coretools/utils.py,sha256=6Uf7J4AvS8nO406uCoSVI8LkPMNdddypcjeZSZrX3Gs,105351
3
3
  malevich_coretools/abstract/__init__.py,sha256=8AC5ZukRGkTtN-XP14DY5z2HrJqN5LLlnmcMqvWwtWU,76
4
4
  malevich_coretools/abstract/abstract.py,sha256=bnlFn-EbSRQa4QxqGE5Z-XKjqkJg8OXd1b0U6RTNZzQ,14100
5
5
  malevich_coretools/abstract/pipeline.py,sha256=2lp4CkmVb8toakjWuYpTA8flw44fO6gWnkW8nSvL1nI,2914
6
6
  malevich_coretools/abstract/statuses.py,sha256=9ISSw_evsylBshLXoU44TCoFOrZm4bXIxyAFFDqdUWc,333
7
7
  malevich_coretools/admin/__init__.py,sha256=zdIcHs3T_NZ8HYWts-O7OpBEWHIu779QDZMGF5HRCLg,35
8
8
  malevich_coretools/admin/utils.py,sha256=68fbVsZ-Rmi4YMiOirr6_i03ruT-ts7xSuUntb7JdHs,3015
9
- malevich_coretools/batch/__init__.py,sha256=co0xKwCGgHMk-r4Q62U6vUFhRdYsUMIfnx9IE5qvHM4,136
9
+ malevich_coretools/batch/__init__.py,sha256=taxyZl8YOZd2EBd3leN6slzMkejUtjQ64Na31TcT3-I,165
10
10
  malevich_coretools/batch/utils.py,sha256=cqX34sfh85dCwLv7qprxatzhYxxj7LqZwjhlmk_3GXQ,7705
11
11
  malevich_coretools/funcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  malevich_coretools/funcs/checks.py,sha256=Q5pRtRevQrGv_-SMbn2GgYnulhclDLBXdRtbw2QOYKU,223
@@ -14,14 +14,14 @@ malevich_coretools/funcs/funcs.py,sha256=cQXDAuwWNb6DcpF98PR-65sMBpIfSnjqMHTUibi
14
14
  malevich_coretools/funcs/helpers.py,sha256=CZYza0uQ68ywcfeUE9rP7q0VjsfnLtBp4z0qQZbIkjY,9843
15
15
  malevich_coretools/secondary/__init__.py,sha256=048HqvG36_1WdDVZK_RuECmaf14Iq2fviUysG1inlaE,78
16
16
  malevich_coretools/secondary/config.py,sha256=hRlSJuPQnhKyt1wmOAJX_XmcliaO0fPGbW94AE_Mazs,463
17
- malevich_coretools/secondary/const.py,sha256=Kl2XbbUFPp-F1R2hIim-Mf0vEd-QZIivMejYKG97hhM,12185
17
+ malevich_coretools/secondary/const.py,sha256=W6GVTpPYsQgllmOUk5US7yzjq1GxyR_vEQog2KMv14w,12601
18
18
  malevich_coretools/secondary/helpers.py,sha256=t-W9g9t0O1EaAX8UOb1wxXFAMawbtDotDH47t0GdjG4,6142
19
19
  malevich_coretools/secondary/kafka_utils.py,sha256=SIUnBFyfwsquN6MAUrEkKCw-1l7979Znl7OTQSX2UKo,989
20
20
  malevich_coretools/tools/__init__.py,sha256=jDxlCa5Dr6Y43qlI7JwsRAlBkKmFeTHTEnjNUvu-0iw,46
21
21
  malevich_coretools/tools/abstract.py,sha256=B1RW1FeNHrQ6r1k-cQZ4k4noCRXkIGt-JUwVoXEDkAg,4466
22
22
  malevich_coretools/tools/vast.py,sha256=63tvy70qQV9vnK0eWytlgjBGSnfA7l3kSIDgACBbMMs,12893
23
- malevich_coretools-0.3.14.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
- malevich_coretools-0.3.14.dist-info/METADATA,sha256=OmeGCYNrLWuMnQWnRmMd4eY4rjgw4dlY9AFU2EUKi_A,265
25
- malevich_coretools-0.3.14.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
26
- malevich_coretools-0.3.14.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
27
- malevich_coretools-0.3.14.dist-info/RECORD,,
23
+ malevich_coretools-0.3.16.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
+ malevich_coretools-0.3.16.dist-info/METADATA,sha256=k0CmUuVGr2vhjawaalUpG7n-VkhIp3fXgTgcLMSUPi0,265
25
+ malevich_coretools-0.3.16.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
26
+ malevich_coretools-0.3.16.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
27
+ malevich_coretools-0.3.16.dist-info/RECORD,,