malevich-coretools 0.3.42__py3-none-any.whl → 0.3.43__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.
- malevich_coretools/funcs/funcs.py +668 -20
- malevich_coretools/funcs/helpers.py +8 -0
- malevich_coretools/utils.py +712 -73
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.43.dist-info}/METADATA +1 -1
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.43.dist-info}/RECORD +8 -8
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.43.dist-info}/LICENSE +0 -0
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.43.dist-info}/WHEEL +0 -0
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.43.dist-info}/top_level.txt +0 -0
|
@@ -30,29 +30,57 @@ def get_docs(*args, **kwargs) -> ResultIds:
|
|
|
30
30
|
return model_from_json(send_to_core_get(DOCS(None), *args, **kwargs), ResultIds)
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
async def get_docs_async(*args, **kwargs) -> ResultIds:
|
|
34
|
+
return model_from_json(await send_to_core_get_async(DOCS(None), *args, **kwargs), ResultIds)
|
|
35
|
+
|
|
36
|
+
|
|
33
37
|
def get_docs_id(id: str, *args, **kwargs) -> ResultDoc:
|
|
34
38
|
return model_from_json(send_to_core_get(DOCS_ID(id, None), *args, **kwargs), ResultDoc)
|
|
35
39
|
|
|
36
40
|
|
|
41
|
+
async def get_docs_id_async(id: str, *args, **kwargs) -> ResultDoc:
|
|
42
|
+
return model_from_json(await send_to_core_get_async(DOCS_ID(id, None), *args, **kwargs), ResultDoc)
|
|
43
|
+
|
|
44
|
+
|
|
37
45
|
def get_docs_name(name: str, *args, **kwargs) -> ResultDoc:
|
|
38
46
|
return model_from_json(send_to_core_get(DOCS_NAME(name, None), *args, **kwargs), ResultDoc)
|
|
39
47
|
|
|
40
48
|
|
|
49
|
+
async def get_docs_name_async(name: str, *args, **kwargs) -> ResultDoc:
|
|
50
|
+
return model_from_json(await send_to_core_get_async(DOCS_NAME(name, None), *args, **kwargs), ResultDoc)
|
|
51
|
+
|
|
52
|
+
|
|
41
53
|
def post_docs(data: DocWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
42
54
|
return send_to_core_modify(DOCS(wait), data, *args, **kwargs)
|
|
43
55
|
|
|
44
56
|
|
|
57
|
+
async def post_docs_async(data: DocWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
58
|
+
return await send_to_core_modify_async(DOCS(wait), data, *args, **kwargs)
|
|
59
|
+
|
|
60
|
+
|
|
45
61
|
def post_docs_id(id: str, data: DocWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
46
62
|
return send_to_core_modify(DOCS_ID(id, wait), data, *args, **kwargs)
|
|
47
63
|
|
|
48
64
|
|
|
65
|
+
async def post_docs_id_async(id: str, data: DocWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
66
|
+
return await send_to_core_modify_async(DOCS_ID(id, wait), data, *args, **kwargs)
|
|
67
|
+
|
|
68
|
+
|
|
49
69
|
def delete_docs_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
50
70
|
return send_to_core_modify(DOCS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
51
71
|
|
|
52
72
|
|
|
73
|
+
async def delete_docs_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
74
|
+
return await send_to_core_modify_async(DOCS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
75
|
+
|
|
76
|
+
|
|
53
77
|
def delete_docs(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
54
78
|
return send_to_core_modify(DOCS(wait), *args, **kwargs, is_post=False)
|
|
55
79
|
|
|
80
|
+
|
|
81
|
+
async def delete_docs_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
82
|
+
return await send_to_core_modify_async(DOCS(wait), *args, **kwargs, is_post=False)
|
|
83
|
+
|
|
56
84
|
# CollectionsController
|
|
57
85
|
|
|
58
86
|
|
|
@@ -60,85 +88,169 @@ def get_collections(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
|
60
88
|
return model_from_json(send_to_core_get(COLLECTIONS(None), *args, **kwargs), ResultOwnAndSharedIds)
|
|
61
89
|
|
|
62
90
|
|
|
91
|
+
async def get_collections_async(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
92
|
+
return model_from_json(await send_to_core_get_async(COLLECTIONS(None), *args, **kwargs), ResultOwnAndSharedIds)
|
|
93
|
+
|
|
94
|
+
|
|
63
95
|
def get_collections_name(name: str, operation_id: Optional[str], run_id: Optional[str], *args, **kwargs) -> ResultOwnAndSharedIds:
|
|
64
96
|
return model_from_json(send_to_core_get(COLLECTIONS_IDS_NAME(name, operation_id, run_id), *args, **kwargs), ResultOwnAndSharedIds)
|
|
65
97
|
|
|
66
98
|
|
|
99
|
+
async def get_collections_name_async(name: str, operation_id: Optional[str], run_id: Optional[str], *args, **kwargs) -> ResultOwnAndSharedIds:
|
|
100
|
+
return model_from_json(await send_to_core_get_async(COLLECTIONS_IDS_NAME(name, operation_id, run_id), *args, **kwargs), ResultOwnAndSharedIds)
|
|
101
|
+
|
|
102
|
+
|
|
67
103
|
def get_collection_name(name: str, operation_id: Optional[str], run_id: Optional[str], offset: int, limit: int, *args, **kwargs) -> ResultCollection:
|
|
68
104
|
return model_from_json(send_to_core_get(COLLECTIONS_NAME(name, operation_id, run_id, offset, limit), *args, **kwargs), ResultCollection)
|
|
69
105
|
|
|
70
106
|
|
|
107
|
+
async def get_collection_name_async(name: str, operation_id: Optional[str], run_id: Optional[str], offset: int, limit: int, *args, **kwargs) -> ResultCollection:
|
|
108
|
+
return model_from_json(await send_to_core_get_async(COLLECTIONS_NAME(name, operation_id, run_id, offset, limit), *args, **kwargs), ResultCollection)
|
|
109
|
+
|
|
110
|
+
|
|
71
111
|
def get_collections_ids_groupName(name: str, operation_id: str, run_id: str, *args, **kwargs) -> ResultIds:
|
|
72
112
|
return model_from_json(send_to_core_get(COLLECTIONS_IDS_GROUP_NAME(name, operation_id, run_id), *args, **kwargs), ResultIds)
|
|
73
113
|
|
|
74
114
|
|
|
115
|
+
async def get_collections_ids_groupName_async(name: str, operation_id: str, run_id: str, *args, **kwargs) -> ResultIds:
|
|
116
|
+
return model_from_json(await send_to_core_get_async(COLLECTIONS_IDS_GROUP_NAME(name, operation_id, run_id), *args, **kwargs), ResultIds)
|
|
117
|
+
|
|
118
|
+
|
|
75
119
|
def get_collections_groupName(name: str, operation_id: str, run_id: str, *args, **kwargs) -> ResultCollections:
|
|
76
120
|
return model_from_json(send_to_core_get(COLLECTIONS_GROUP_NAME(name, operation_id, run_id), *args, **kwargs), ResultCollections)
|
|
77
121
|
|
|
78
122
|
|
|
123
|
+
async def get_collections_groupName_async(name: str, operation_id: str, run_id: str, *args, **kwargs) -> ResultCollections:
|
|
124
|
+
return model_from_json(await send_to_core_get_async(COLLECTIONS_GROUP_NAME(name, operation_id, run_id), *args, **kwargs), ResultCollections)
|
|
125
|
+
|
|
126
|
+
|
|
79
127
|
def get_collections_id(id: str, offset: int, limit: int, *args, **kwargs) -> ResultCollection:
|
|
80
128
|
return model_from_json(send_to_core_get(COLLECTIONS_ID(id, offset, limit), *args, **kwargs), ResultCollection)
|
|
81
129
|
|
|
82
130
|
|
|
131
|
+
async def get_collections_id_async(id: str, offset: int, limit: int, *args, **kwargs) -> ResultCollection:
|
|
132
|
+
return model_from_json(await send_to_core_get_async(COLLECTIONS_ID(id, offset, limit), *args, **kwargs), ResultCollection)
|
|
133
|
+
|
|
134
|
+
|
|
83
135
|
def post_collections(data: DocsCollection, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
84
136
|
return send_to_core_modify(COLLECTIONS(wait), data, *args, **kwargs)
|
|
85
137
|
|
|
86
138
|
|
|
139
|
+
async def post_collections_async(data: DocsCollection, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
140
|
+
return await send_to_core_modify_async(COLLECTIONS(wait), data, *args, **kwargs)
|
|
141
|
+
|
|
142
|
+
|
|
87
143
|
def post_collections_id(id: str, data: DocsCollection, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
88
144
|
return send_to_core_modify(COLLECTIONS_ID_MODIFY(id, wait), data, *args, **kwargs)
|
|
89
145
|
|
|
90
146
|
|
|
147
|
+
async def post_collections_id_async(id: str, data: DocsCollection, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
148
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_MODIFY(id, wait), data, *args, **kwargs)
|
|
149
|
+
|
|
150
|
+
|
|
91
151
|
def post_collections_id_s3(id: str, data: PostS3Settings, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
92
152
|
return send_to_core_modify(COLLECTIONS_ID_S3(id, wait), data, *args, **kwargs)
|
|
93
153
|
|
|
94
154
|
|
|
155
|
+
async def post_collections_id_s3_async(id: str, data: PostS3Settings, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
156
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_S3(id, wait), data, *args, **kwargs)
|
|
157
|
+
|
|
158
|
+
|
|
95
159
|
def post_collections_data(data: DocsDataCollection, wait: bool=True, *args, **kwargs) -> Alias.Id:
|
|
96
160
|
return send_to_core_modify(COLLECTIONS_DATA(wait), data, *args, **kwargs)
|
|
97
161
|
|
|
98
162
|
|
|
163
|
+
async def post_collections_data_async(data: DocsDataCollection, wait: bool=True, *args, **kwargs) -> Alias.Id:
|
|
164
|
+
return await send_to_core_modify_async(COLLECTIONS_DATA(wait), data, *args, **kwargs)
|
|
165
|
+
|
|
166
|
+
|
|
99
167
|
def post_collections_data_id(id: str, data: DocsDataCollection, wait: bool=True, *args, **kwargs) -> Alias.Id:
|
|
100
168
|
return send_to_core_modify(COLLECTIONS_DATA_ID(id, wait), data, *args, **kwargs)
|
|
101
169
|
|
|
102
170
|
|
|
171
|
+
async def post_collections_data_id_async(id: str, data: DocsDataCollection, wait: bool=True, *args, **kwargs) -> Alias.Id:
|
|
172
|
+
return await send_to_core_modify_async(COLLECTIONS_DATA_ID(id, wait), data, *args, **kwargs)
|
|
173
|
+
|
|
174
|
+
|
|
103
175
|
def post_collections_id_add(id: str, data: DocsCollectionChange, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
104
176
|
return send_to_core_modify(COLLECTIONS_ID_ADD(id, wait), data, *args, **kwargs)
|
|
105
177
|
|
|
106
178
|
|
|
179
|
+
async def post_collections_id_add_async(id: str, data: DocsCollectionChange, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
180
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_ADD(id, wait), data, *args, **kwargs)
|
|
181
|
+
|
|
182
|
+
|
|
107
183
|
def post_collections_id_copy(id: str, full_copy: bool, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
108
184
|
return send_to_core_modify(COLLECTIONS_ID_COPY(id, full_copy, wait), *args, **kwargs)
|
|
109
185
|
|
|
110
186
|
|
|
187
|
+
async def post_collections_id_copy_async(id: str, full_copy: bool, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
188
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_COPY(id, full_copy, wait), *args, **kwargs)
|
|
189
|
+
|
|
190
|
+
|
|
111
191
|
def post_collections_id_applyScheme(id: str, data: FixScheme, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
112
192
|
return send_to_core_modify(COLLECTIONS_APPLY_SCHEME(id, wait), data, *args, **kwargs)
|
|
113
193
|
|
|
114
194
|
|
|
195
|
+
async def post_collections_id_applyScheme_async(id: str, data: FixScheme, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
196
|
+
return await send_to_core_modify(COLLECTIONS_APPLY_SCHEME(id, wait), data, *args, **kwargs)
|
|
197
|
+
|
|
198
|
+
|
|
115
199
|
def post_collections_id_fixScheme(id: str, data: FixScheme, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
116
200
|
return send_to_core_modify(COLLECTIONS_FIX_SCHEME(id, wait), data, *args, **kwargs)
|
|
117
201
|
|
|
118
202
|
|
|
203
|
+
async def post_collections_id_fixScheme_async(id: str, data: FixScheme, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
204
|
+
return await send_to_core_modify_async(COLLECTIONS_FIX_SCHEME(id, wait), data, *args, **kwargs)
|
|
205
|
+
|
|
206
|
+
|
|
119
207
|
def post_collections_id_unfixScheme(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
120
208
|
return send_to_core_modify(COLLECTIONS_UNFIX_SCHEME(id, wait), *args, **kwargs)
|
|
121
209
|
|
|
122
210
|
|
|
211
|
+
async def post_collections_id_unfixScheme_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
212
|
+
return await send_to_core_modify_async(COLLECTIONS_UNFIX_SCHEME(id, wait), *args, **kwargs)
|
|
213
|
+
|
|
214
|
+
|
|
123
215
|
def post_collections_metadata(id: str, data: CollectionMetadata, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
124
216
|
return send_to_core_modify(COLLECTIONS_METADATA(id, wait), data, *args, **kwargs)
|
|
125
217
|
|
|
126
218
|
|
|
219
|
+
async def post_collections_metadata_async(id: str, data: CollectionMetadata, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
220
|
+
return await send_to_core_modify_async(COLLECTIONS_METADATA(id, wait), data, *args, **kwargs)
|
|
221
|
+
|
|
222
|
+
|
|
127
223
|
def delete_collections(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
128
224
|
return send_to_core_modify(COLLECTIONS(wait), *args, **kwargs, is_post=False)
|
|
129
225
|
|
|
130
226
|
|
|
227
|
+
async def delete_collections_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
228
|
+
return await send_to_core_modify_async(COLLECTIONS(wait), *args, **kwargs, is_post=False)
|
|
229
|
+
|
|
230
|
+
|
|
131
231
|
def delete_collections_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
132
232
|
return send_to_core_modify(COLLECTIONS_ID_MODIFY(id, wait), *args, **kwargs, is_post=False)
|
|
133
233
|
|
|
134
234
|
|
|
235
|
+
async def delete_collections_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
236
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_MODIFY(id, wait), *args, **kwargs, is_post=False)
|
|
237
|
+
|
|
238
|
+
|
|
135
239
|
def delete_collections_id_s3(key: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
136
240
|
return send_to_core_modify(COLLECTIONS_ID_S3(key, wait), *args, **kwargs, is_post=False)
|
|
137
241
|
|
|
138
242
|
|
|
243
|
+
async def delete_collections_id_s3_async(key: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
244
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_S3(key, wait), *args, **kwargs, is_post=False)
|
|
245
|
+
|
|
246
|
+
|
|
139
247
|
def delete_collections_id_del(id: str, data: DocsCollectionChange, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
140
248
|
return send_to_core_modify(COLLECTIONS_ID_DEL(id, wait), data, *args, **kwargs, is_post=False)
|
|
141
249
|
|
|
250
|
+
|
|
251
|
+
async def delete_collections_id_del_async(id: str, data: DocsCollectionChange, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
252
|
+
return await send_to_core_modify_async(COLLECTIONS_ID_DEL(id, wait), data, *args, **kwargs, is_post=False)
|
|
253
|
+
|
|
142
254
|
# CollectionObjectsController
|
|
143
255
|
|
|
144
256
|
|
|
@@ -146,38 +258,73 @@ def get_collection_objects(path: Optional[str], recursive: Optional[bool], *args
|
|
|
146
258
|
return model_from_json(send_to_core_get(COLLECTION_OBJECTS_ALL_GET(path, recursive), *args, **kwargs), FilesDirs)
|
|
147
259
|
|
|
148
260
|
|
|
261
|
+
async def get_collection_objects_async(path: Optional[str], recursive: Optional[bool], *args, **kwargs) -> FilesDirs:
|
|
262
|
+
return model_from_json(await send_to_core_get_async(COLLECTION_OBJECTS_ALL_GET(path, recursive), *args, **kwargs), FilesDirs)
|
|
263
|
+
|
|
264
|
+
|
|
149
265
|
def get_collection_object(path: str, *args, **kwargs) -> bytes:
|
|
150
266
|
return send_to_core_get(COLLECTION_OBJECTS_PATH(path, None, None), is_text=None, *args, **kwargs)
|
|
151
267
|
|
|
152
268
|
|
|
269
|
+
async def get_collection_object_async(path: str, *args, **kwargs) -> bytes:
|
|
270
|
+
return await send_to_core_get_async(COLLECTION_OBJECTS_PATH(path, None, None), is_text=None, *args, **kwargs)
|
|
271
|
+
|
|
272
|
+
|
|
153
273
|
def post_collection_object_presigned_url(path: str, callback_url: Optional[str], expires_in: int, wait: bool, *args, **kwargs) -> str:
|
|
154
274
|
return send_to_core_get(COLLECTION_OBJECTS_PRESIGN_PUT(path, callback_url, expires_in, wait), is_text=True, *args, **kwargs)
|
|
155
275
|
|
|
156
276
|
|
|
277
|
+
async def post_collection_object_presigned_url_async(path: str, callback_url: Optional[str], expires_in: int, wait: bool, *args, **kwargs) -> str:
|
|
278
|
+
return await send_to_core_get_async(COLLECTION_OBJECTS_PRESIGN_PUT(path, callback_url, expires_in, wait), is_text=True, *args, **kwargs)
|
|
279
|
+
|
|
280
|
+
|
|
157
281
|
def get_collection_object_presigned_url(path: str, callback_url: Optional[str], expires_in: int, wait: bool, *args, **kwargs) -> str:
|
|
158
282
|
return send_to_core_get(COLLECTION_OBJECTS_PRESIGN_GET(path, callback_url, expires_in, wait), is_text=True, *args, **kwargs)
|
|
159
283
|
|
|
160
284
|
|
|
285
|
+
async def get_collection_object_presigned_url_async(path: str, callback_url: Optional[str], expires_in: int, wait: bool, *args, **kwargs) -> str:
|
|
286
|
+
return await send_to_core_get_async(COLLECTION_OBJECTS_PRESIGN_GET(path, callback_url, expires_in, wait), is_text=True, *args, **kwargs)
|
|
287
|
+
|
|
288
|
+
|
|
161
289
|
def get_collections_object_presigned(signature: str, *args, **kwargs) -> bytes:
|
|
162
290
|
return send_to_core_get(COLLECTION_OBJECTS_PRESIGN(signature, None), is_text=None, *args, **kwargs)
|
|
163
291
|
|
|
164
292
|
|
|
293
|
+
async def get_collections_object_presigned_async(signature: str, *args, **kwargs) -> bytes:
|
|
294
|
+
return await send_to_core_get_async(COLLECTION_OBJECTS_PRESIGN(signature, None), is_text=None, *args, **kwargs)
|
|
295
|
+
|
|
296
|
+
|
|
165
297
|
def post_collections_object(path: str, data: bytes, zip: bool, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
166
298
|
return send_to_core_modify_raw(COLLECTION_OBJECTS_PATH(path, wait, zip), data, *args, **kwargs)
|
|
167
299
|
|
|
168
300
|
|
|
301
|
+
async def post_collections_object_async(path: str, data: bytes, zip: bool, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
302
|
+
return await send_to_core_modify_raw_async(COLLECTION_OBJECTS_PATH(path, wait, zip), data, *args, **kwargs)
|
|
303
|
+
|
|
304
|
+
|
|
169
305
|
def post_collections_object_presigned(signature: str, data: bytes, zip: bool, *args, **kwargs) -> Alias.Info:
|
|
170
306
|
return send_to_core_modify_raw(COLLECTION_OBJECTS_PRESIGN(signature, zip), data, *args, **kwargs)
|
|
171
307
|
|
|
172
308
|
|
|
309
|
+
async def post_collections_object_presigned_async(signature: str, data: bytes, zip: bool, *args, **kwargs) -> Alias.Info:
|
|
310
|
+
return await send_to_core_modify_raw_async(COLLECTION_OBJECTS_PRESIGN(signature, zip), data, *args, **kwargs)
|
|
311
|
+
|
|
312
|
+
|
|
173
313
|
def delete_collection_objects(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
174
314
|
return send_to_core_modify(COLLECTION_OBJECTS_ALL(wait), *args, **kwargs, is_post=False)
|
|
175
315
|
|
|
176
316
|
|
|
317
|
+
async def delete_collection_objects_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
318
|
+
return await send_to_core_modify_async(COLLECTION_OBJECTS_ALL(wait), *args, **kwargs, is_post=False)
|
|
319
|
+
|
|
320
|
+
|
|
177
321
|
def delete_collection_object(path: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
178
322
|
return send_to_core_modify(COLLECTION_OBJECTS_PATH(path, wait, None), *args, **kwargs, is_post=False)
|
|
179
323
|
|
|
180
324
|
|
|
325
|
+
async def delete_collection_object_async(path: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
326
|
+
return await send_to_core_modify_async(COLLECTION_OBJECTS_PATH(path, wait, None), *args, **kwargs, is_post=False)
|
|
327
|
+
|
|
181
328
|
# EndpointController
|
|
182
329
|
|
|
183
330
|
|
|
@@ -185,14 +332,26 @@ def get_endpoints(*args, **kwargs) -> Endpoints:
|
|
|
185
332
|
return model_from_json(send_to_core_get(ENDPOINTS_ALL(None), *args, **kwargs), Endpoints)
|
|
186
333
|
|
|
187
334
|
|
|
335
|
+
async def get_endpoints_async(*args, **kwargs) -> Endpoints:
|
|
336
|
+
return model_from_json(await send_to_core_get_async(ENDPOINTS_ALL(None), *args, **kwargs), Endpoints)
|
|
337
|
+
|
|
338
|
+
|
|
188
339
|
def get_endpoint_by_hash(hash: str, *args, **kwargs) -> Endpoint:
|
|
189
340
|
return model_from_json(send_to_core_get(ENDPOINTS(hash, None), *args, **kwargs), Endpoint)
|
|
190
341
|
|
|
191
342
|
|
|
343
|
+
async def get_endpoint_by_hash_async(hash: str, *args, **kwargs) -> Endpoint:
|
|
344
|
+
return model_from_json(await send_to_core_get_async(ENDPOINTS(hash, None), *args, **kwargs), Endpoint)
|
|
345
|
+
|
|
346
|
+
|
|
192
347
|
def get_endpoint_run(hash: str, *args, **kwargs) -> Endpoint:
|
|
193
348
|
return model_from_json(send_to_core_get(ENDPOINTS_RUN(hash), *args, **kwargs), EndpointRunInfo)
|
|
194
349
|
|
|
195
350
|
|
|
351
|
+
async def get_endpoint_run_async(hash: str, *args, **kwargs) -> Endpoint:
|
|
352
|
+
return model_from_json(await send_to_core_get_async(ENDPOINTS_RUN(hash), *args, **kwargs), EndpointRunInfo)
|
|
353
|
+
|
|
354
|
+
|
|
196
355
|
def run_endpoint(hash: str, data: Optional[EndpointOverride], with_show: bool, *args, **kwargs) -> Union[AppLogsWithResults, FlattenAppLogsWithResults, Any]:
|
|
197
356
|
show_func = show_logs_flatten_func_endpoint if data is None or data.formatLogs else show_logs_func
|
|
198
357
|
res = send_to_core_modify(ENDPOINTS_RUN(hash), data, with_show=with_show, show_func=show_func, *args, **kwargs)
|
|
@@ -206,30 +365,66 @@ def run_endpoint(hash: str, data: Optional[EndpointOverride], with_show: bool, *
|
|
|
206
365
|
return res
|
|
207
366
|
|
|
208
367
|
|
|
368
|
+
async def run_endpoint_async(hash: str, data: Optional[EndpointOverride], with_show: bool, *args, **kwargs) -> Union[AppLogsWithResults, FlattenAppLogsWithResults, Any]:
|
|
369
|
+
show_func = show_logs_flatten_func_endpoint if data is None or data.formatLogs else show_logs_func
|
|
370
|
+
res = await send_to_core_modify_async(ENDPOINTS_RUN(hash), data, with_show=with_show, show_func=show_func, *args, **kwargs)
|
|
371
|
+
try:
|
|
372
|
+
if data is None or data.formatLogs:
|
|
373
|
+
res = FlattenAppLogsWithResults.model_validate_json(res)
|
|
374
|
+
else:
|
|
375
|
+
res = AppLogsWithResults.model_validate_json(res)
|
|
376
|
+
except BaseException:
|
|
377
|
+
pass
|
|
378
|
+
return res
|
|
379
|
+
|
|
380
|
+
|
|
209
381
|
def create_endpoint(data: Endpoint, wait: bool, *args, **kwargs) -> str:
|
|
210
382
|
return send_to_core_modify(ENDPOINTS_CREATE(wait), data, *args, **kwargs)
|
|
211
383
|
|
|
212
384
|
|
|
385
|
+
async def create_endpoint_async(data: Endpoint, wait: bool, *args, **kwargs) -> str:
|
|
386
|
+
return await send_to_core_modify_async(ENDPOINTS_CREATE(wait), data, *args, **kwargs)
|
|
387
|
+
|
|
388
|
+
|
|
213
389
|
def update_endpoint(data: Endpoint, wait: bool, *args, **kwargs) -> str:
|
|
214
390
|
return send_to_core_modify(ENDPOINTS_UPDATE(wait), data, *args, **kwargs)
|
|
215
391
|
|
|
216
392
|
|
|
393
|
+
async def update_endpoint_async(data: Endpoint, wait: bool, *args, **kwargs) -> str:
|
|
394
|
+
return await send_to_core_modify_async(ENDPOINTS_UPDATE(wait), data, *args, **kwargs)
|
|
395
|
+
|
|
396
|
+
|
|
217
397
|
def pause_endpoint(hash: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
218
398
|
return send_to_core_modify(ENDPOINTS_PAUSE(hash, wait), *args, **kwargs)
|
|
219
399
|
|
|
220
400
|
|
|
401
|
+
async def pause_endpoint_async(hash: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
402
|
+
return await send_to_core_modify_async(ENDPOINTS_PAUSE(hash, wait), *args, **kwargs)
|
|
403
|
+
|
|
404
|
+
|
|
221
405
|
def resume_endpoint(hash: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
222
406
|
return send_to_core_modify(ENDPOINTS_RESUME(hash, wait), *args, **kwargs)
|
|
223
407
|
|
|
224
408
|
|
|
409
|
+
async def resume_endpoint_async(hash: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
410
|
+
return await send_to_core_modify_async(ENDPOINTS_RESUME(hash, wait), *args, **kwargs)
|
|
411
|
+
|
|
412
|
+
|
|
225
413
|
def delete_endpoints(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
226
414
|
return send_to_core_modify(ENDPOINTS_ALL(wait), *args, **kwargs, is_post=False)
|
|
227
415
|
|
|
228
416
|
|
|
417
|
+
async def delete_endpoints_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
418
|
+
return await send_to_core_modify_async(ENDPOINTS_ALL(wait), *args, **kwargs, is_post=False)
|
|
419
|
+
|
|
420
|
+
|
|
229
421
|
def delete_endpoint(hash: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
230
422
|
return send_to_core_modify(ENDPOINTS(hash, wait), *args, **kwargs, is_post=False)
|
|
231
423
|
|
|
232
424
|
|
|
425
|
+
async def delete_endpoint_async(hash: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
426
|
+
return await send_to_core_modify_async(ENDPOINTS(hash, wait), *args, **kwargs, is_post=False)
|
|
427
|
+
|
|
233
428
|
# SchemeController
|
|
234
429
|
|
|
235
430
|
|
|
@@ -237,41 +432,81 @@ def get_schemes(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
|
237
432
|
return model_from_json(send_to_core_get(SCHEMES(None), *args, **kwargs), ResultOwnAndSharedIds)
|
|
238
433
|
|
|
239
434
|
|
|
435
|
+
async def get_schemes_async(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
436
|
+
return model_from_json(await send_to_core_get_async(SCHEMES(None), *args, **kwargs), ResultOwnAndSharedIds)
|
|
437
|
+
|
|
438
|
+
|
|
240
439
|
def get_schemes_id(id: str, *args, **kwargs) -> ResultScheme:
|
|
241
440
|
return model_from_json(send_to_core_get(SCHEMES_ID(id, None), *args, **kwargs), ResultScheme)
|
|
242
441
|
|
|
243
442
|
|
|
443
|
+
async def get_schemes_id_async(id: str, *args, **kwargs) -> ResultScheme:
|
|
444
|
+
return model_from_json(await send_to_core_get_async(SCHEMES_ID(id, None), *args, **kwargs), ResultScheme)
|
|
445
|
+
|
|
446
|
+
|
|
244
447
|
def get_schemes_id_raw(id: str, *args, **kwargs) -> Alias.Json:
|
|
245
448
|
return send_to_core_get(SCHEMES_ID_RAW(id), *args, **kwargs)
|
|
246
449
|
|
|
247
450
|
|
|
451
|
+
async def get_schemes_id_raw_async(id: str, *args, **kwargs) -> Alias.Json:
|
|
452
|
+
return await send_to_core_get_async(SCHEMES_ID_RAW(id), *args, **kwargs)
|
|
453
|
+
|
|
454
|
+
|
|
248
455
|
def get_schemes_mapping(scheme_from_id: str, scheme_to_id: str, *args, **kwargs) -> ResultMapping:
|
|
249
456
|
return model_from_json(send_to_core_get(SCHEMES_MAPPING_IDS(scheme_from_id, scheme_to_id), *args, **kwargs), ResultMapping)
|
|
250
457
|
|
|
251
458
|
|
|
459
|
+
async def get_schemes_mapping_async(scheme_from_id: str, scheme_to_id: str, *args, **kwargs) -> ResultMapping:
|
|
460
|
+
return model_from_json(await send_to_core_get_async(SCHEMES_MAPPING_IDS(scheme_from_id, scheme_to_id), *args, **kwargs), ResultMapping)
|
|
461
|
+
|
|
462
|
+
|
|
252
463
|
def post_schemes(data: SchemeWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
253
464
|
return send_to_core_modify(SCHEMES(wait), data, *args, **kwargs)
|
|
254
465
|
|
|
255
466
|
|
|
467
|
+
async def post_schemes_async(data: SchemeWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
468
|
+
return await send_to_core_modify_async(SCHEMES(wait), data, *args, **kwargs)
|
|
469
|
+
|
|
470
|
+
|
|
256
471
|
def post_schemes_id(id: str, data: SchemeWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
257
472
|
return send_to_core_modify(SCHEMES_ID(id, wait), data, *args, **kwargs)
|
|
258
473
|
|
|
259
474
|
|
|
475
|
+
async def post_schemes_id_async(id: str, data: SchemeWithName, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
476
|
+
return await send_to_core_modify_async(SCHEMES_ID(id, wait), data, *args, **kwargs)
|
|
477
|
+
|
|
478
|
+
|
|
260
479
|
def post_schemes_mapping(data: SchemesFixMapping, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
261
480
|
return send_to_core_modify(SCHEMES_MAPPING(wait), data, *args, **kwargs)
|
|
262
481
|
|
|
263
482
|
|
|
483
|
+
async def post_schemes_mapping_async(data: SchemesFixMapping, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
484
|
+
return await send_to_core_modify_async(SCHEMES_MAPPING(wait), data, *args, **kwargs)
|
|
485
|
+
|
|
486
|
+
|
|
264
487
|
def delete_schemes(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
265
488
|
return send_to_core_modify(SCHEMES(wait), *args, **kwargs, is_post=False)
|
|
266
489
|
|
|
267
490
|
|
|
491
|
+
async def delete_schemes_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
492
|
+
return await send_to_core_modify_async(SCHEMES(wait), *args, **kwargs, is_post=False)
|
|
493
|
+
|
|
494
|
+
|
|
268
495
|
def delete_schemes_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
269
496
|
return send_to_core_modify(SCHEMES_ID(id, wait), *args, **kwargs, is_post=False)
|
|
270
497
|
|
|
271
498
|
|
|
499
|
+
async def delete_schemes_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
500
|
+
return await send_to_core_modify_async(SCHEMES_ID(id, wait), *args, **kwargs, is_post=False)
|
|
501
|
+
|
|
502
|
+
|
|
272
503
|
def delete_schemes_mapping(data: SchemesIds, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
273
504
|
return send_to_core_modify(SCHEMES_MAPPING(wait), data, *args, **kwargs, is_post=False)
|
|
274
505
|
|
|
506
|
+
|
|
507
|
+
async def delete_schemes_mapping_async(data: SchemesIds, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
508
|
+
return await send_to_core_modify_async(SCHEMES_MAPPING(wait), data, *args, **kwargs, is_post=False)
|
|
509
|
+
|
|
275
510
|
# CommonController
|
|
276
511
|
|
|
277
512
|
|
|
@@ -279,6 +514,10 @@ def get_check_auth(*args, **kwargs) -> Alias.Info:
|
|
|
279
514
|
return send_to_core_get(CHECK, *args, **kwargs, is_text=True)
|
|
280
515
|
|
|
281
516
|
|
|
517
|
+
async def get_check_auth_async(*args, **kwargs) -> Alias.Info:
|
|
518
|
+
return await send_to_core_get_async(CHECK, *args, **kwargs, is_text=True)
|
|
519
|
+
|
|
520
|
+
|
|
282
521
|
def get_ping(*args, **kwargs) -> Alias.Info:
|
|
283
522
|
return send_to_core_get(PING, *args, **kwargs, is_text=True)
|
|
284
523
|
|
|
@@ -286,26 +525,6 @@ def get_ping(*args, **kwargs) -> Alias.Info:
|
|
|
286
525
|
async def get_ping_async(*args, **kwargs) -> Alias.Info:
|
|
287
526
|
return await send_to_core_get_async(PING, *args, **kwargs, is_text=True)
|
|
288
527
|
|
|
289
|
-
|
|
290
|
-
# def get_mapping(wait: bool, *args, **kwargs) -> ResultDocMappingsFull:
|
|
291
|
-
# return model_from_json(send_to_core_get(MAPPING, *args, **kwargs), ResultDocMappingsFull)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
# def get_mapping_id(id: str, wait: bool, *args, **kwargs) -> ResultMapping:
|
|
295
|
-
# return model_from_json(send_to_core_get(MAPPING_ID(id, None), *args, **kwargs), ResultMapping)
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
# def post_mapping(data: DocsAndScheme, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
299
|
-
# return send_to_core_modify(MAPPING(wait), data, *args, **kwargs)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
# def delete_mapping_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
303
|
-
# return send_to_core_modify(MAPPING_ID(id, wait), *args, **kwargs, is_post=False)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
# def delete_all(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
307
|
-
# return send_to_core_modify(COMMON_ALL(wait), *args, **kwargs, is_post=False)
|
|
308
|
-
|
|
309
528
|
# UserShareController
|
|
310
529
|
|
|
311
530
|
|
|
@@ -313,41 +532,81 @@ def get_share_collection_id(id: str, *args, **kwargs) -> ResultLogins:
|
|
|
313
532
|
return model_from_json(send_to_core_get(SHARE_COLLECTION_ID(id, None), *args, **kwargs), ResultLogins)
|
|
314
533
|
|
|
315
534
|
|
|
535
|
+
async def get_share_collection_id_async(id: str, *args, **kwargs) -> ResultLogins:
|
|
536
|
+
return model_from_json(await send_to_core_get_async(SHARE_COLLECTION_ID(id, None), *args, **kwargs), ResultLogins)
|
|
537
|
+
|
|
538
|
+
|
|
316
539
|
def get_share_scheme_id(id: str, *args, **kwargs) -> ResultLogins:
|
|
317
540
|
return model_from_json(send_to_core_get(SHARE_SCHEME_ID(id, None), *args, **kwargs), ResultLogins)
|
|
318
541
|
|
|
319
542
|
|
|
543
|
+
async def get_share_scheme_id_async(id: str, *args, **kwargs) -> ResultLogins:
|
|
544
|
+
return model_from_json(await send_to_core_get_async(SHARE_SCHEME_ID(id, None), *args, **kwargs), ResultLogins)
|
|
545
|
+
|
|
546
|
+
|
|
320
547
|
def get_share_userApp_id(id: str, *args, **kwargs) -> ResultLogins:
|
|
321
548
|
return model_from_json(send_to_core_get(SHARE_USER_APP_ID(id, None), *args, **kwargs), ResultLogins)
|
|
322
549
|
|
|
323
550
|
|
|
551
|
+
async def get_share_userApp_id_async(id: str, *args, **kwargs) -> ResultLogins:
|
|
552
|
+
return model_from_json(await send_to_core_get_async(SHARE_USER_APP_ID(id, None), *args, **kwargs), ResultLogins)
|
|
553
|
+
|
|
554
|
+
|
|
324
555
|
def get_share_login(login: str, *args, **kwargs) -> ResultSharedForLogin:
|
|
325
556
|
return model_from_json(send_to_core_get(SHARE_LOGIN(login), *args, **kwargs), ResultSharedForLogin)
|
|
326
557
|
|
|
327
558
|
|
|
559
|
+
async def get_share_login_async(login: str, *args, **kwargs) -> ResultSharedForLogin:
|
|
560
|
+
return model_from_json(await send_to_core_get_async(SHARE_LOGIN(login), *args, **kwargs), ResultSharedForLogin)
|
|
561
|
+
|
|
562
|
+
|
|
328
563
|
def post_share_collection_id(id: str, data: SharedWithUsers, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
329
564
|
return send_to_core_modify(SHARE_COLLECTION_ID(id, wait), data, *args, **kwargs)
|
|
330
565
|
|
|
331
566
|
|
|
567
|
+
async def post_share_collection_id_async(id: str, data: SharedWithUsers, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
568
|
+
return await send_to_core_modify_async(SHARE_COLLECTION_ID(id, wait), data, *args, **kwargs)
|
|
569
|
+
|
|
570
|
+
|
|
332
571
|
def post_share_scheme_id(id: str, data: SharedWithUsers, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
333
572
|
return send_to_core_modify(SHARE_SCHEME_ID(id, wait), data, *args, **kwargs)
|
|
334
573
|
|
|
335
574
|
|
|
575
|
+
async def post_share_scheme_id_async(id: str, data: SharedWithUsers, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
576
|
+
return await send_to_core_modify_async(SHARE_SCHEME_ID(id, wait), data, *args, **kwargs)
|
|
577
|
+
|
|
578
|
+
|
|
336
579
|
def post_share_userApp_id(id: str, data: SharedWithUsers, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
337
580
|
return send_to_core_modify(SHARE_USER_APP_ID(id, wait), data, *args, **kwargs)
|
|
338
581
|
|
|
339
582
|
|
|
583
|
+
async def post_share_userApp_id_async(id: str, data: SharedWithUsers, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
584
|
+
return await send_to_core_modify_async(SHARE_USER_APP_ID(id, wait), data, *args, **kwargs)
|
|
585
|
+
|
|
586
|
+
|
|
340
587
|
def post_share(data: Shared, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
341
588
|
return send_to_core_modify(SHARE(wait), data, *args, **kwargs)
|
|
342
589
|
|
|
343
590
|
|
|
591
|
+
async def post_share_async(data: Shared, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
592
|
+
return await send_to_core_modify_async(SHARE(wait), data, *args, **kwargs)
|
|
593
|
+
|
|
594
|
+
|
|
344
595
|
def delete_share(data: Shared, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
345
596
|
return send_to_core_modify(SHARE(wait), data, *args, **kwargs, is_post=False)
|
|
346
597
|
|
|
347
598
|
|
|
599
|
+
async def delete_share_async(data: Shared, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
600
|
+
return await send_to_core_modify_async(SHARE(wait), data, *args, **kwargs, is_post=False)
|
|
601
|
+
|
|
602
|
+
|
|
348
603
|
def delete_share_all(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
349
604
|
return send_to_core_modify(SHARE_ALL(wait), *args, **kwargs, is_post=False)
|
|
350
605
|
|
|
606
|
+
|
|
607
|
+
async def delete_share_all_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
608
|
+
return await send_to_core_modify_async(SHARE_ALL(wait), *args, **kwargs, is_post=False)
|
|
609
|
+
|
|
351
610
|
# RegistrationController
|
|
352
611
|
|
|
353
612
|
|
|
@@ -355,10 +614,18 @@ def get_register_login(login: str, *args, **kwargs) -> Alias.Info:
|
|
|
355
614
|
return send_to_core_get(REGISTER_LOGIN(login, None), is_text=True, *args, **kwargs)
|
|
356
615
|
|
|
357
616
|
|
|
617
|
+
async def get_register_login_async(login: str, *args, **kwargs) -> Alias.Info:
|
|
618
|
+
return await send_to_core_get_async(REGISTER_LOGIN(login, None), is_text=True, *args, **kwargs)
|
|
619
|
+
|
|
620
|
+
|
|
358
621
|
def get_register_all(*args, **kwargs) -> ResultLogins:
|
|
359
622
|
return model_from_json(send_to_core_get(REGISTER_ALL, *args, **kwargs), ResultLogins)
|
|
360
623
|
|
|
361
624
|
|
|
625
|
+
async def get_register_all_async(*args, **kwargs) -> ResultLogins:
|
|
626
|
+
return model_from_json(await send_to_core_get_async(REGISTER_ALL, *args, **kwargs), ResultLogins)
|
|
627
|
+
|
|
628
|
+
|
|
362
629
|
def post_register(data: User, auth: Optional[AUTH]=None, conn_url: Optional[str]=None) -> Alias.Info:
|
|
363
630
|
send_to_core_modify(REGISTER, data, auth=auth, with_auth=True, with_show=False, conn_url=conn_url)
|
|
364
631
|
info = f"user {data.login} created"
|
|
@@ -367,6 +634,14 @@ def post_register(data: User, auth: Optional[AUTH]=None, conn_url: Optional[str]
|
|
|
367
634
|
return info
|
|
368
635
|
|
|
369
636
|
|
|
637
|
+
async def post_register_async(data: User, auth: Optional[AUTH]=None, conn_url: Optional[str]=None) -> Alias.Info:
|
|
638
|
+
await send_to_core_modify_async(REGISTER, data, auth=auth, with_auth=True, with_show=False, conn_url=conn_url)
|
|
639
|
+
info = f"user {data.login} created"
|
|
640
|
+
if Config.VERBOSE:
|
|
641
|
+
Config.logger.info(info)
|
|
642
|
+
return info
|
|
643
|
+
|
|
644
|
+
|
|
370
645
|
def delete_register(auth: Optional[AUTH]=None, conn_url: Optional[str]=None, *args, **kwargs) -> Alias.Info:
|
|
371
646
|
send_to_core_modify(REGISTER, *args, **kwargs, auth=auth, with_show=False, is_post=False, conn_url=conn_url)
|
|
372
647
|
login = auth[0] if auth is not None else Config.CORE_USERNAME
|
|
@@ -376,6 +651,15 @@ def delete_register(auth: Optional[AUTH]=None, conn_url: Optional[str]=None, *ar
|
|
|
376
651
|
return info
|
|
377
652
|
|
|
378
653
|
|
|
654
|
+
async def delete_register_async(auth: Optional[AUTH]=None, conn_url: Optional[str]=None, *args, **kwargs) -> Alias.Info:
|
|
655
|
+
await send_to_core_modify_async(REGISTER, *args, **kwargs, auth=auth, with_show=False, is_post=False, conn_url=conn_url)
|
|
656
|
+
login = auth[0] if auth is not None else Config.CORE_USERNAME
|
|
657
|
+
info = f"user {login} removed"
|
|
658
|
+
if Config.VERBOSE:
|
|
659
|
+
Config.logger.info(info)
|
|
660
|
+
return info
|
|
661
|
+
|
|
662
|
+
|
|
379
663
|
def delete_register_login(login: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
380
664
|
send_to_core_modify(REGISTER_LOGIN(login, wait), *args, **kwargs, with_show=False, is_post=False)
|
|
381
665
|
info = f"user {login} removed"
|
|
@@ -383,6 +667,14 @@ def delete_register_login(login: str, wait: bool, *args, **kwargs) -> Alias.Info
|
|
|
383
667
|
Config.logger.info(info)
|
|
384
668
|
return info
|
|
385
669
|
|
|
670
|
+
|
|
671
|
+
async def delete_register_login_async(login: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
672
|
+
await send_to_core_modify_async(REGISTER_LOGIN(login, wait), *args, **kwargs, with_show=False, is_post=False)
|
|
673
|
+
info = f"user {login} removed"
|
|
674
|
+
if Config.VERBOSE:
|
|
675
|
+
Config.logger.info(info)
|
|
676
|
+
return info
|
|
677
|
+
|
|
386
678
|
# UserAppsController
|
|
387
679
|
|
|
388
680
|
|
|
@@ -390,41 +682,81 @@ def get_userApps(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
|
390
682
|
return model_from_json(send_to_core_get(USER_APPS(None), *args, **kwargs), ResultOwnAndSharedIds)
|
|
391
683
|
|
|
392
684
|
|
|
685
|
+
async def get_userApps_async(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
686
|
+
return model_from_json(await send_to_core_get_async(USER_APPS(None), *args, **kwargs), ResultOwnAndSharedIds)
|
|
687
|
+
|
|
688
|
+
|
|
393
689
|
def get_userApps_realIds(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
394
690
|
return model_from_json(send_to_core_get(USER_APPS_REAL_IDS, *args, **kwargs), ResultOwnAndSharedIds)
|
|
395
691
|
|
|
396
692
|
|
|
693
|
+
async def get_userApps_realIds_async(*args, **kwargs) -> ResultOwnAndSharedIds:
|
|
694
|
+
return model_from_json(await send_to_core_get_async(USER_APPS_REAL_IDS, *args, **kwargs), ResultOwnAndSharedIds)
|
|
695
|
+
|
|
696
|
+
|
|
397
697
|
def get_userApps_mapIds(*args, **kwargs) -> ResultOwnAndSharedIdsMap:
|
|
398
698
|
return model_from_json(send_to_core_get(USER_APPS_MAP_IDS, *args, **kwargs), ResultOwnAndSharedIdsMap)
|
|
399
699
|
|
|
400
700
|
|
|
701
|
+
async def get_userApps_mapIds_async(*args, **kwargs) -> ResultOwnAndSharedIdsMap:
|
|
702
|
+
return model_from_json(await send_to_core_get_async(USER_APPS_MAP_IDS, *args, **kwargs), ResultOwnAndSharedIdsMap)
|
|
703
|
+
|
|
704
|
+
|
|
401
705
|
def get_userApps_mapId(id, *args, **kwargs) -> Alias.Id:
|
|
402
706
|
return send_to_core_get(USER_APPS_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
403
707
|
|
|
404
708
|
|
|
709
|
+
async def get_userApps_mapId_async(id, *args, **kwargs) -> Alias.Id:
|
|
710
|
+
return await send_to_core_get_async(USER_APPS_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
711
|
+
|
|
712
|
+
|
|
405
713
|
def get_userApps_id(id: str, *args, **kwargs) -> UserApp:
|
|
406
714
|
return model_from_json(send_to_core_get(USER_APPS_ID(id, None), *args, **kwargs), UserApp)
|
|
407
715
|
|
|
408
716
|
|
|
717
|
+
async def get_userApps_id_async(id: str, *args, **kwargs) -> UserApp:
|
|
718
|
+
return model_from_json(await send_to_core_get_async(USER_APPS_ID(id, None), *args, **kwargs), UserApp)
|
|
719
|
+
|
|
720
|
+
|
|
409
721
|
def get_userApps_realId(id: str, *args, **kwargs) -> UserApp:
|
|
410
722
|
return model_from_json(send_to_core_get(USER_APPS_REAL_ID(id), *args, **kwargs), UserApp)
|
|
411
723
|
|
|
412
724
|
|
|
725
|
+
async def get_userApps_realId_async(id: str, *args, **kwargs) -> UserApp:
|
|
726
|
+
return model_from_json(await send_to_core_get_async(USER_APPS_REAL_ID(id), *args, **kwargs), UserApp)
|
|
727
|
+
|
|
728
|
+
|
|
413
729
|
def post_userApps(data: UserApp, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
414
730
|
return send_to_core_modify(USER_APPS(wait), data, *args, **kwargs)
|
|
415
731
|
|
|
416
732
|
|
|
733
|
+
async def post_userApps_async(data: UserApp, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
734
|
+
return await send_to_core_modify_async(USER_APPS(wait), data, *args, **kwargs)
|
|
735
|
+
|
|
736
|
+
|
|
417
737
|
def post_userApps_id(id: str, data: UserApp, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
418
738
|
return send_to_core_modify(USER_APPS_ID(id, wait), data, *args, **kwargs)
|
|
419
739
|
|
|
420
740
|
|
|
741
|
+
async def post_userApps_id_async(id: str, data: UserApp, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
742
|
+
return await send_to_core_modify_async(USER_APPS_ID(id, wait), data, *args, **kwargs)
|
|
743
|
+
|
|
744
|
+
|
|
421
745
|
def delete_userApps(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
422
746
|
return send_to_core_modify(USER_APPS(wait), *args, **kwargs, is_post=False)
|
|
423
747
|
|
|
424
748
|
|
|
749
|
+
async def delete_userApps_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
750
|
+
return await send_to_core_modify_async(USER_APPS(wait), *args, **kwargs, is_post=False)
|
|
751
|
+
|
|
752
|
+
|
|
425
753
|
def delete_userApps_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
426
754
|
return send_to_core_modify(USER_APPS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
427
755
|
|
|
756
|
+
|
|
757
|
+
async def delete_userApps_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
758
|
+
return await send_to_core_modify_async(USER_APPS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
759
|
+
|
|
428
760
|
# UserTasksController
|
|
429
761
|
|
|
430
762
|
|
|
@@ -432,41 +764,81 @@ def get_userTasks(*args, **kwargs) -> ResultIds:
|
|
|
432
764
|
return model_from_json(send_to_core_get(USER_TASKS(None), *args, **kwargs), ResultIds)
|
|
433
765
|
|
|
434
766
|
|
|
767
|
+
async def get_userTasks_async(*args, **kwargs) -> ResultIds:
|
|
768
|
+
return model_from_json(await send_to_core_get_async(USER_TASKS(None), *args, **kwargs), ResultIds)
|
|
769
|
+
|
|
770
|
+
|
|
435
771
|
def get_userTasks_realIds(*args, **kwargs) -> ResultIds:
|
|
436
772
|
return model_from_json(send_to_core_get(USER_TASKS_REAL_IDS, *args, **kwargs), ResultIds)
|
|
437
773
|
|
|
438
774
|
|
|
775
|
+
async def get_userTasks_realIds_async(*args, **kwargs) -> ResultIds:
|
|
776
|
+
return model_from_json(await send_to_core_get_async(USER_TASKS_REAL_IDS, *args, **kwargs), ResultIds)
|
|
777
|
+
|
|
778
|
+
|
|
439
779
|
def get_userTasks_mapIds(*args, **kwargs) -> ResultIdsMap:
|
|
440
780
|
return model_from_json(send_to_core_get(USER_TASKS_MAP_IDS, *args, **kwargs), ResultIdsMap)
|
|
441
781
|
|
|
442
782
|
|
|
783
|
+
async def get_userTasks_mapIds_async(*args, **kwargs) -> ResultIdsMap:
|
|
784
|
+
return model_from_json(await send_to_core_get_async(USER_TASKS_MAP_IDS, *args, **kwargs), ResultIdsMap)
|
|
785
|
+
|
|
786
|
+
|
|
443
787
|
def get_userTasks_mapId(id: str, *args, **kwargs) -> Alias.Id:
|
|
444
788
|
return send_to_core_get(USER_TASKS_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
445
789
|
|
|
446
790
|
|
|
791
|
+
async def get_userTasks_mapId_async(id: str, *args, **kwargs) -> Alias.Id:
|
|
792
|
+
return await send_to_core_get_async(USER_TASKS_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
793
|
+
|
|
794
|
+
|
|
447
795
|
def get_userTasks_id(id: str, *args, **kwargs) -> UserTask:
|
|
448
796
|
return model_from_json(send_to_core_get(USER_TASKS_ID(id, None), *args, **kwargs), UserTask)
|
|
449
797
|
|
|
450
798
|
|
|
799
|
+
async def get_userTasks_id_async(id: str, *args, **kwargs) -> UserTask:
|
|
800
|
+
return model_from_json(await send_to_core_get_async(USER_TASKS_ID(id, None), *args, **kwargs), UserTask)
|
|
801
|
+
|
|
802
|
+
|
|
451
803
|
def get_userTasks_realId(id: str, *args, **kwargs) -> UserTask:
|
|
452
804
|
return model_from_json(send_to_core_get(USER_TASKS_REAL_ID(id), *args, **kwargs), UserTask)
|
|
453
805
|
|
|
454
806
|
|
|
807
|
+
async def get_userTasks_realId_async(id: str, *args, **kwargs) -> UserTask:
|
|
808
|
+
return model_from_json(await send_to_core_get_async(USER_TASKS_REAL_ID(id), *args, **kwargs), UserTask)
|
|
809
|
+
|
|
810
|
+
|
|
455
811
|
def post_userTasks(data: UserTask, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
456
812
|
return send_to_core_modify(USER_TASKS(wait), data, *args, **kwargs)
|
|
457
813
|
|
|
458
814
|
|
|
815
|
+
async def post_userTasks_async(data: UserTask, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
816
|
+
return await send_to_core_modify_async(USER_TASKS(wait), data, *args, **kwargs)
|
|
817
|
+
|
|
818
|
+
|
|
459
819
|
def post_userTasks_id(id: str, data: UserTask, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
460
820
|
return send_to_core_modify(USER_TASKS_ID(id, wait), data, *args, **kwargs)
|
|
461
821
|
|
|
462
822
|
|
|
823
|
+
async def post_userTasks_id_async(id: str, data: UserTask, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
824
|
+
return await send_to_core_modify_async(USER_TASKS_ID(id, wait), data, *args, **kwargs)
|
|
825
|
+
|
|
826
|
+
|
|
463
827
|
def delete_userTasks(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
464
828
|
return send_to_core_modify(USER_TASKS(wait), *args, **kwargs, is_post=False)
|
|
465
829
|
|
|
466
830
|
|
|
831
|
+
async def delete_userTasks_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
832
|
+
return await send_to_core_modify_async(USER_TASKS(wait), *args, **kwargs, is_post=False)
|
|
833
|
+
|
|
834
|
+
|
|
467
835
|
def delete_userTasks_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
468
836
|
return send_to_core_modify(USER_TASKS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
469
837
|
|
|
838
|
+
|
|
839
|
+
async def delete_userTasks_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
840
|
+
return await send_to_core_modify_async(USER_TASKS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
841
|
+
|
|
470
842
|
# UserPipelinesController
|
|
471
843
|
|
|
472
844
|
|
|
@@ -474,41 +846,81 @@ def get_userPipelines(*args, **kwargs) -> ResultIds:
|
|
|
474
846
|
return model_from_json(send_to_core_get(USER_PIPELINES(None), *args, **kwargs), ResultIds)
|
|
475
847
|
|
|
476
848
|
|
|
849
|
+
async def get_userPipelines_async(*args, **kwargs) -> ResultIds:
|
|
850
|
+
return model_from_json(await send_to_core_get_async(USER_PIPELINES(None), *args, **kwargs), ResultIds)
|
|
851
|
+
|
|
852
|
+
|
|
477
853
|
def get_userPipelines_realIds(*args, **kwargs) -> ResultIds:
|
|
478
854
|
return model_from_json(send_to_core_get(USER_PIPELINES_REAL_IDS, *args, **kwargs), ResultIds)
|
|
479
855
|
|
|
480
856
|
|
|
857
|
+
async def get_userPipelines_realIds_async(*args, **kwargs) -> ResultIds:
|
|
858
|
+
return model_from_json(await send_to_core_get_async(USER_PIPELINES_REAL_IDS, *args, **kwargs), ResultIds)
|
|
859
|
+
|
|
860
|
+
|
|
481
861
|
def get_userPipelines_mapIds(*args, **kwargs) -> ResultIdsMap:
|
|
482
862
|
return model_from_json(send_to_core_get(USER_PIPELINES_MAP_IDS, *args, **kwargs), ResultIdsMap)
|
|
483
863
|
|
|
484
864
|
|
|
865
|
+
async def get_userPipelines_mapIds_async(*args, **kwargs) -> ResultIdsMap:
|
|
866
|
+
return model_from_json(await send_to_core_get_async(USER_PIPELINES_MAP_IDS, *args, **kwargs), ResultIdsMap)
|
|
867
|
+
|
|
868
|
+
|
|
485
869
|
def get_userPipelines_mapId(id: str, *args, **kwargs) -> Alias.Id:
|
|
486
870
|
return send_to_core_get(USER_PIPELINES_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
487
871
|
|
|
488
872
|
|
|
873
|
+
async def get_userPipelines_mapId_async(id: str, *args, **kwargs) -> Alias.Id:
|
|
874
|
+
return await send_to_core_get_async(USER_PIPELINES_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
875
|
+
|
|
876
|
+
|
|
489
877
|
def get_userPipelines_id(id: str, *args, **kwargs) -> Pipeline:
|
|
490
878
|
return model_from_json(send_to_core_get(USER_PIPELINES_ID(id, None), *args, **kwargs), Pipeline).simplify()
|
|
491
879
|
|
|
492
880
|
|
|
881
|
+
async def get_userPipelines_id_async(id: str, *args, **kwargs) -> Pipeline:
|
|
882
|
+
return model_from_json(await send_to_core_get_async(USER_PIPELINES_ID(id, None), *args, **kwargs), Pipeline).simplify()
|
|
883
|
+
|
|
884
|
+
|
|
493
885
|
def get_userPipelines_realId(id: str, *args, **kwargs) -> Pipeline:
|
|
494
886
|
return model_from_json(send_to_core_get(USER_PIPELINES_REAL_ID(id), *args, **kwargs), Pipeline).simplify()
|
|
495
887
|
|
|
496
888
|
|
|
889
|
+
async def get_userPipelines_realId_async(id: str, *args, **kwargs) -> Pipeline:
|
|
890
|
+
return model_from_json(await send_to_core_get_async(USER_PIPELINES_REAL_ID(id), *args, **kwargs), Pipeline).simplify()
|
|
891
|
+
|
|
892
|
+
|
|
497
893
|
def post_userPipelines(data: UserTask, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
498
894
|
return send_to_core_modify(USER_PIPELINES(wait), data, *args, **kwargs)
|
|
499
895
|
|
|
500
896
|
|
|
897
|
+
async def post_userPipelines_async(data: UserTask, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
898
|
+
return await send_to_core_modify_async(USER_PIPELINES(wait), data, *args, **kwargs)
|
|
899
|
+
|
|
900
|
+
|
|
501
901
|
def post_userPipelines_id(id: str, data: UserTask, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
502
902
|
return send_to_core_modify(USER_PIPELINES_ID(id, wait), data, *args, **kwargs)
|
|
503
903
|
|
|
504
904
|
|
|
905
|
+
async def post_userPipelines_id_async(id: str, data: UserTask, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
906
|
+
return await send_to_core_modify_async(USER_PIPELINES_ID(id, wait), data, *args, **kwargs)
|
|
907
|
+
|
|
908
|
+
|
|
505
909
|
def delete_userPipelines(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
506
910
|
return send_to_core_modify(USER_PIPELINES(wait), *args, **kwargs, is_post=False)
|
|
507
911
|
|
|
508
912
|
|
|
913
|
+
async def delete_userPipelines_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
914
|
+
return await send_to_core_modify_async(USER_PIPELINES(wait), *args, **kwargs, is_post=False)
|
|
915
|
+
|
|
916
|
+
|
|
509
917
|
def delete_userPipelines_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
510
918
|
return send_to_core_modify(USER_PIPELINES_ID(id, wait), *args, **kwargs, is_post=False)
|
|
511
919
|
|
|
920
|
+
|
|
921
|
+
async def delete_userPipelines_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
922
|
+
return await send_to_core_modify_async(USER_PIPELINES_ID(id, wait), *args, **kwargs, is_post=False)
|
|
923
|
+
|
|
512
924
|
# UserCfgsController
|
|
513
925
|
|
|
514
926
|
|
|
@@ -516,41 +928,81 @@ def get_userCfgs(*args, **kwargs) -> ResultIds:
|
|
|
516
928
|
return model_from_json(send_to_core_get(USER_CFGS(None), *args, **kwargs), ResultIds)
|
|
517
929
|
|
|
518
930
|
|
|
931
|
+
async def get_userCfgs_async(*args, **kwargs) -> ResultIds:
|
|
932
|
+
return model_from_json(await send_to_core_get_async(USER_CFGS(None), *args, **kwargs), ResultIds)
|
|
933
|
+
|
|
934
|
+
|
|
519
935
|
def get_userCfgs_realIds(*args, **kwargs) -> ResultIds:
|
|
520
936
|
return model_from_json(send_to_core_get(USER_CFGS_REAL_IDS, *args, **kwargs), ResultIds)
|
|
521
937
|
|
|
522
938
|
|
|
939
|
+
async def get_userCfgs_realIds_async(*args, **kwargs) -> ResultIds:
|
|
940
|
+
return model_from_json(await send_to_core_get_async(USER_CFGS_REAL_IDS, *args, **kwargs), ResultIds)
|
|
941
|
+
|
|
942
|
+
|
|
523
943
|
def get_userCfgs_mapIds(*args, **kwargs) -> ResultIdsMap:
|
|
524
944
|
return model_from_json(send_to_core_get(USER_CFGS_MAP_IDS, *args, **kwargs), ResultIdsMap)
|
|
525
945
|
|
|
526
946
|
|
|
947
|
+
async def get_userCfgs_mapIds_async(*args, **kwargs) -> ResultIdsMap:
|
|
948
|
+
return model_from_json(await send_to_core_get_async(USER_CFGS_MAP_IDS, *args, **kwargs), ResultIdsMap)
|
|
949
|
+
|
|
950
|
+
|
|
527
951
|
def get_userCfgs_mapId(id: str, *args, **kwargs) -> Alias.Id:
|
|
528
952
|
return send_to_core_get(USER_CFGS_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
529
953
|
|
|
530
954
|
|
|
955
|
+
async def get_userCfgs_mapId_async(id: str, *args, **kwargs) -> Alias.Id:
|
|
956
|
+
return await send_to_core_get_async(USER_CFGS_MAP_ID(id), is_text=True, *args, **kwargs)
|
|
957
|
+
|
|
958
|
+
|
|
531
959
|
def get_userCfgs_id(id: str, *args, **kwargs) -> ResultUserCfg:
|
|
532
960
|
return model_from_json(send_to_core_get(USER_CFGS_ID(id, None), *args, **kwargs), ResultUserCfg)
|
|
533
961
|
|
|
534
962
|
|
|
963
|
+
async def get_userCfgs_id_async(id: str, *args, **kwargs) -> ResultUserCfg:
|
|
964
|
+
return model_from_json(await send_to_core_get_async(USER_CFGS_ID(id, None), *args, **kwargs), ResultUserCfg)
|
|
965
|
+
|
|
966
|
+
|
|
535
967
|
def get_userCfgs_realId(id: str, *args, **kwargs) -> ResultUserCfg:
|
|
536
968
|
return model_from_json(send_to_core_get(USER_CFGS_REAL_ID(id), *args, **kwargs), ResultUserCfg)
|
|
537
969
|
|
|
538
970
|
|
|
971
|
+
async def get_userCfgs_realId_async(id: str, *args, **kwargs) -> ResultUserCfg:
|
|
972
|
+
return model_from_json(await send_to_core_get_async(USER_CFGS_REAL_ID(id), *args, **kwargs), ResultUserCfg)
|
|
973
|
+
|
|
974
|
+
|
|
539
975
|
def post_userCfgs(data: UserCfg, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
540
976
|
return send_to_core_modify(USER_CFGS(wait), data, *args, **kwargs)
|
|
541
977
|
|
|
542
978
|
|
|
979
|
+
async def post_userCfgs_async(data: UserCfg, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
980
|
+
return await send_to_core_modify_async(USER_CFGS(wait), data, *args, **kwargs)
|
|
981
|
+
|
|
982
|
+
|
|
543
983
|
def post_userCfgs_id(id: str, data: UserCfg, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
544
984
|
return send_to_core_modify(USER_CFGS_ID(id, wait), data, *args, **kwargs)
|
|
545
985
|
|
|
546
986
|
|
|
987
|
+
async def post_userCfgs_id_async(id: str, data: UserCfg, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
988
|
+
return await send_to_core_modify_async(USER_CFGS_ID(id, wait), data, *args, **kwargs)
|
|
989
|
+
|
|
990
|
+
|
|
547
991
|
def delete_userCfgs(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
548
992
|
return send_to_core_modify(USER_CFGS(wait), *args, **kwargs, is_post=False)
|
|
549
993
|
|
|
550
994
|
|
|
995
|
+
async def delete_userCfgs_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
996
|
+
return await send_to_core_modify_async(USER_CFGS(wait), *args, **kwargs, is_post=False)
|
|
997
|
+
|
|
998
|
+
|
|
551
999
|
def delete_userCfgs_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
552
1000
|
return send_to_core_modify(USER_CFGS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
553
1001
|
|
|
1002
|
+
|
|
1003
|
+
async def delete_userCfgs_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1004
|
+
return await send_to_core_modify_async(USER_CFGS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
1005
|
+
|
|
554
1006
|
# OperationResultsController
|
|
555
1007
|
|
|
556
1008
|
|
|
@@ -558,17 +1010,33 @@ def get_operationResults(*args, **kwargs) -> ResultIds:
|
|
|
558
1010
|
return model_from_json(send_to_core_get(OPERATION_RESULTS(None), *args, **kwargs), ResultIds)
|
|
559
1011
|
|
|
560
1012
|
|
|
1013
|
+
async def get_operationResults_async(*args, **kwargs) -> ResultIds:
|
|
1014
|
+
return model_from_json(await send_to_core_get_async(OPERATION_RESULTS(None), *args, **kwargs), ResultIds)
|
|
1015
|
+
|
|
1016
|
+
|
|
561
1017
|
def get_operationResults_id(id: str, is_text=True, *args, **kwargs) -> Optional[str]:
|
|
562
1018
|
return send_to_core_get(OPERATION_RESULTS_ID(id, None), is_text=is_text, *args, **kwargs)
|
|
563
1019
|
|
|
564
1020
|
|
|
1021
|
+
async def get_operationResults_id_async(id: str, is_text=True, *args, **kwargs) -> Optional[str]:
|
|
1022
|
+
return await send_to_core_get_async(OPERATION_RESULTS_ID(id, None), is_text=is_text, *args, **kwargs)
|
|
1023
|
+
|
|
1024
|
+
|
|
565
1025
|
def delete_operationResults(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
566
1026
|
return send_to_core_modify(OPERATION_RESULTS(wait), *args, **kwargs, is_post=False)
|
|
567
1027
|
|
|
568
1028
|
|
|
1029
|
+
async def delete_operationResults_async(wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1030
|
+
return await send_to_core_modify_async(OPERATION_RESULTS(wait), *args, **kwargs, is_post=False)
|
|
1031
|
+
|
|
1032
|
+
|
|
569
1033
|
def delete_operationResults_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
570
1034
|
return send_to_core_modify(OPERATION_RESULTS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
571
1035
|
|
|
1036
|
+
|
|
1037
|
+
async def delete_operationResults_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1038
|
+
return await send_to_core_modify_async(OPERATION_RESULTS_ID(id, wait), *args, **kwargs, is_post=False)
|
|
1039
|
+
|
|
572
1040
|
# TempRunController
|
|
573
1041
|
|
|
574
1042
|
|
|
@@ -576,21 +1044,41 @@ def get_run_condition(id: str, *args, **kwargs) -> Condition:
|
|
|
576
1044
|
return model_from_json(send_to_core_get(TEMP_RUN_CONDITION(id), *args, **kwargs), Condition)
|
|
577
1045
|
|
|
578
1046
|
|
|
1047
|
+
async def get_run_condition_async(id: str, *args, **kwargs) -> Condition:
|
|
1048
|
+
return model_from_json(await send_to_core_get_async(TEMP_RUN_CONDITION(id), *args, **kwargs), Condition)
|
|
1049
|
+
|
|
1050
|
+
|
|
579
1051
|
def get_run_activeRuns(*args, **kwargs) -> ResultIds:
|
|
580
1052
|
return model_from_json(send_to_core_get(TEMP_RUN_ACTIVE_RUNS, *args, **kwargs), ResultIds)
|
|
581
1053
|
|
|
582
1054
|
|
|
1055
|
+
async def get_run_activeRuns_async(*args, **kwargs) -> ResultIds:
|
|
1056
|
+
return model_from_json(await send_to_core_get_async(TEMP_RUN_ACTIVE_RUNS, *args, **kwargs), ResultIds)
|
|
1057
|
+
|
|
1058
|
+
|
|
583
1059
|
def get_run_mainTaskCfg(id: str, *args, **kwargs) -> MainTaskCfg:
|
|
584
1060
|
return model_from_json(send_to_core_get(TEMP_RUN_MAIN_TASK_CFG(id), *args, **kwargs), MainTaskCfg)
|
|
585
1061
|
|
|
586
1062
|
|
|
1063
|
+
async def get_run_mainTaskCfg_async(id: str, *args, **kwargs) -> MainTaskCfg:
|
|
1064
|
+
return model_from_json(await send_to_core_get_async(TEMP_RUN_MAIN_TASK_CFG(id), *args, **kwargs), MainTaskCfg)
|
|
1065
|
+
|
|
1066
|
+
|
|
587
1067
|
def get_run_mainPipelineCfg(id: str, *args, **kwargs) -> MainPipelineCfg:
|
|
588
1068
|
return model_from_json(send_to_core_get(TEMP_RUN_MAIN_PIPELINE_CFG(id), *args, **kwargs), MainPipelineCfg)
|
|
589
1069
|
|
|
590
1070
|
|
|
1071
|
+
async def get_run_mainPipelineCfg_async(id: str, *args, **kwargs) -> MainPipelineCfg:
|
|
1072
|
+
return model_from_json(await send_to_core_get_async(TEMP_RUN_MAIN_PIPELINE_CFG(id), *args, **kwargs), MainPipelineCfg)
|
|
1073
|
+
|
|
1074
|
+
|
|
591
1075
|
def get_run_operationsIds(task_id: str, cfg_id: Optional[str]=None, *args, **kwargs) -> ResultIds:
|
|
592
1076
|
return model_from_json(send_to_core_get(TEMP_RUN_OPERATIONS_IDS(task_id, cfg_id), *args, **kwargs), ResultIds)
|
|
593
1077
|
|
|
1078
|
+
|
|
1079
|
+
async def get_run_operationsIds_async(task_id: str, cfg_id: Optional[str]=None, *args, **kwargs) -> ResultIds:
|
|
1080
|
+
return model_from_json(await send_to_core_get_async(TEMP_RUN_OPERATIONS_IDS(task_id, cfg_id), *args, **kwargs), ResultIds)
|
|
1081
|
+
|
|
594
1082
|
# AdminController
|
|
595
1083
|
|
|
596
1084
|
|
|
@@ -598,17 +1086,33 @@ def get_admin_runs(*args, **kwargs) -> AdminRunsInfo:
|
|
|
598
1086
|
return model_from_json(send_to_core_get(ADMIN_RUNS, *args, **kwargs), AdminRunsInfo)
|
|
599
1087
|
|
|
600
1088
|
|
|
1089
|
+
async def get_admin_runs_async(*args, **kwargs) -> AdminRunsInfo:
|
|
1090
|
+
return model_from_json(await send_to_core_get_async(ADMIN_RUNS, *args, **kwargs), AdminRunsInfo)
|
|
1091
|
+
|
|
1092
|
+
|
|
601
1093
|
def get_admin_runs_info(data: OperationOrNone, *args, **kwargs) -> Alias.Json:
|
|
602
1094
|
return send_to_core_modify(ADMIN_RUNS_INFO, data, *args, **kwargs)
|
|
603
1095
|
|
|
604
1096
|
|
|
1097
|
+
async def get_admin_runs_info_async(data: OperationOrNone, *args, **kwargs) -> Alias.Json:
|
|
1098
|
+
return await send_to_core_modify_async(ADMIN_RUNS_INFO, data, *args, **kwargs)
|
|
1099
|
+
|
|
1100
|
+
|
|
605
1101
|
def post_admin_update_superuser(data: Superuser, *args, **kwargs) -> Alias.Info:
|
|
606
1102
|
return send_to_core_modify(ADMIN_SUPERUSER, data, *args, **kwargs)
|
|
607
1103
|
|
|
608
1104
|
|
|
1105
|
+
async def post_admin_update_superuser_async(data: Superuser, *args, **kwargs) -> Alias.Info:
|
|
1106
|
+
return await send_to_core_modify_async(ADMIN_SUPERUSER, data, *args, **kwargs)
|
|
1107
|
+
|
|
1108
|
+
|
|
609
1109
|
def delete_admin_runs(data: AdminStopOperation, *args, **kwargs) -> Alias.Json:
|
|
610
1110
|
return send_to_core_modify(ADMIN_RUNS, data, is_post=False, *args, **kwargs)
|
|
611
1111
|
|
|
1112
|
+
|
|
1113
|
+
async def delete_admin_runs_async(data: AdminStopOperation, *args, **kwargs) -> Alias.Json:
|
|
1114
|
+
return await send_to_core_modify_async(ADMIN_RUNS, data, is_post=False, *args, **kwargs)
|
|
1115
|
+
|
|
612
1116
|
# ManagerController
|
|
613
1117
|
|
|
614
1118
|
|
|
@@ -616,22 +1120,42 @@ def get_manager_logs(data: LogsTask, with_show: bool, *args, **kwargs) -> AppLog
|
|
|
616
1120
|
return model_from_json(send_to_core_modify(MANAGER_LOGS, data, with_show=with_show, show_func=show_logs_func, *args, **kwargs), AppLogs)
|
|
617
1121
|
|
|
618
1122
|
|
|
1123
|
+
async def get_manager_logs_async(data: LogsTask, with_show: bool, *args, **kwargs) -> AppLogs:
|
|
1124
|
+
return model_from_json(await send_to_core_modify_async(MANAGER_LOGS, data, with_show=with_show, show_func=show_logs_func, *args, **kwargs), AppLogs)
|
|
1125
|
+
|
|
1126
|
+
|
|
619
1127
|
def get_clickhouse_all(*args, **kwargs) -> str:
|
|
620
1128
|
return send_to_core_get(MANAGER_CLICKHOUSE_ALL, is_text=True, *args, **kwargs)
|
|
621
1129
|
|
|
622
1130
|
|
|
1131
|
+
async def get_clickhouse_all_async(*args, **kwargs) -> str:
|
|
1132
|
+
return await send_to_core_get_async(MANAGER_CLICKHOUSE_ALL, is_text=True, *args, **kwargs)
|
|
1133
|
+
|
|
1134
|
+
|
|
623
1135
|
def get_clickhouse_id(id: str, *args, **kwargs) -> str:
|
|
624
1136
|
return send_to_core_get(MANAGER_CLICKHOUSE_ID(id), is_text=True, *args, **kwargs)
|
|
625
1137
|
|
|
626
1138
|
|
|
1139
|
+
async def get_clickhouse_id_async(id: str, *args, **kwargs) -> str:
|
|
1140
|
+
return await send_to_core_get_async(MANAGER_CLICKHOUSE_ID(id), is_text=True, *args, **kwargs)
|
|
1141
|
+
|
|
1142
|
+
|
|
627
1143
|
def get_manager_dagKeyValue_operationId(id: str, *args, **kwargs) -> Alias.Json:
|
|
628
1144
|
return send_to_core_get(MANAGER_DAG_KEY_VALUE_OPERATION_ID(id), *args, **kwargs)
|
|
629
1145
|
|
|
630
1146
|
|
|
1147
|
+
async def get_manager_dagKeyValue_operationId_async(id: str, *args, **kwargs) -> Alias.Json:
|
|
1148
|
+
return await send_to_core_get_async(MANAGER_DAG_KEY_VALUE_OPERATION_ID(id), *args, **kwargs)
|
|
1149
|
+
|
|
1150
|
+
|
|
631
1151
|
def post_manager_dagKeyValue(data: KeysValues, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
632
1152
|
return send_to_core_modify(MANAGER_DAG_KEY_VALUE(wait), data, *args, **kwargs)
|
|
633
1153
|
|
|
634
1154
|
|
|
1155
|
+
async def post_manager_dagKeyValue_async(data: KeysValues, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1156
|
+
return await send_to_core_modify_async(MANAGER_DAG_KEY_VALUE(wait), data, *args, **kwargs)
|
|
1157
|
+
|
|
1158
|
+
|
|
635
1159
|
def get_app_info(id: str, parse: bool, *args, **kwargs) -> Union[Alias.Json, AppFunctionsInfo]:
|
|
636
1160
|
res = send_to_core_get(MANAGER_APP_INFO(id), show_func = show_fail_app_info, *args, **kwargs)
|
|
637
1161
|
if parse:
|
|
@@ -639,6 +1163,13 @@ def get_app_info(id: str, parse: bool, *args, **kwargs) -> Union[Alias.Json, App
|
|
|
639
1163
|
return res
|
|
640
1164
|
|
|
641
1165
|
|
|
1166
|
+
async def get_app_info_async(id: str, parse: bool, *args, **kwargs) -> Union[Alias.Json, AppFunctionsInfo]:
|
|
1167
|
+
res = await send_to_core_get_async(MANAGER_APP_INFO(id), show_func = show_fail_app_info, *args, **kwargs)
|
|
1168
|
+
if parse:
|
|
1169
|
+
res = model_from_json(res, AppFunctionsInfo)
|
|
1170
|
+
return res
|
|
1171
|
+
|
|
1172
|
+
|
|
642
1173
|
def get_app_info_by_real_id(id: str, parse: bool, *args, **kwargs) -> Union[Alias.Json, AppFunctionsInfo]:
|
|
643
1174
|
res = send_to_core_get(MANAGER_APP_INFO_REAL_ID(id), show_func = show_fail_app_info, *args, **kwargs)
|
|
644
1175
|
if parse:
|
|
@@ -646,6 +1177,13 @@ def get_app_info_by_real_id(id: str, parse: bool, *args, **kwargs) -> Union[Alia
|
|
|
646
1177
|
return res
|
|
647
1178
|
|
|
648
1179
|
|
|
1180
|
+
async def get_app_info_by_real_id_async(id: str, parse: bool, *args, **kwargs) -> Union[Alias.Json, AppFunctionsInfo]:
|
|
1181
|
+
res = await send_to_core_get_async(MANAGER_APP_INFO_REAL_ID(id), show_func = show_fail_app_info, *args, **kwargs)
|
|
1182
|
+
if parse:
|
|
1183
|
+
res = model_from_json(res, AppFunctionsInfo)
|
|
1184
|
+
return res
|
|
1185
|
+
|
|
1186
|
+
|
|
649
1187
|
def get_image_info(data: JsonImage, parse: bool, *args, **kwargs) -> Union[Alias.Json, AppFunctionsInfo]:
|
|
650
1188
|
res = send_to_core_modify(MANAGER_IMAGE_INFO, data, with_auth=False, with_show=False, show_func = show_fail_app_info, *args, **kwargs)
|
|
651
1189
|
if parse:
|
|
@@ -653,6 +1191,13 @@ def get_image_info(data: JsonImage, parse: bool, *args, **kwargs) -> Union[Alias
|
|
|
653
1191
|
return res
|
|
654
1192
|
|
|
655
1193
|
|
|
1194
|
+
async def get_image_info_async(data: JsonImage, parse: bool, *args, **kwargs) -> Union[Alias.Json, AppFunctionsInfo]:
|
|
1195
|
+
res = await send_to_core_modify_async(MANAGER_IMAGE_INFO, data, with_auth=False, with_show=False, show_func = show_fail_app_info, *args, **kwargs)
|
|
1196
|
+
if parse:
|
|
1197
|
+
res = model_from_json(res, AppFunctionsInfo)
|
|
1198
|
+
return res
|
|
1199
|
+
|
|
1200
|
+
|
|
656
1201
|
def get_task_schedules(data: Operation, with_show: bool, *args, **kwargs) -> Schedules:
|
|
657
1202
|
res = model_from_json(send_to_core_modify(MANAGER_TASK_SCHEDULES, data, with_show=False, *args, **kwargs), Schedules)
|
|
658
1203
|
if with_show:
|
|
@@ -660,6 +1205,13 @@ def get_task_schedules(data: Operation, with_show: bool, *args, **kwargs) -> Sch
|
|
|
660
1205
|
return res
|
|
661
1206
|
|
|
662
1207
|
|
|
1208
|
+
async def get_task_schedules_async(data: Operation, with_show: bool, *args, **kwargs) -> Schedules:
|
|
1209
|
+
res = model_from_json(await send_to_core_modify_async(MANAGER_TASK_SCHEDULES, data, with_show=False, *args, **kwargs), Schedules)
|
|
1210
|
+
if with_show:
|
|
1211
|
+
Config.logger.info(res)
|
|
1212
|
+
return res
|
|
1213
|
+
|
|
1214
|
+
|
|
663
1215
|
def post_manager_task(data: MainTask, with_show: bool, long: bool, long_timeout: int, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) -> Union[Alias.Id, AppLogs]:
|
|
664
1216
|
check_profile_mode(data.profileMode)
|
|
665
1217
|
res = send_to_core_modify(MANAGER_TASK(wait and not long), data, with_show=with_show, show_func=show_logs_func, auth=auth, conn_url=conn_url, *args, **kwargs)
|
|
@@ -730,6 +1282,10 @@ def post_manager_task_unschedule(data: UnscheduleOperation, with_show: bool, wai
|
|
|
730
1282
|
return send_to_core_modify(MANAGER_TASK_UNSCHEDULE(wait), data, with_show=with_show, *args, **kwargs)
|
|
731
1283
|
|
|
732
1284
|
|
|
1285
|
+
async def post_manager_task_unschedule_async(data: UnscheduleOperation, with_show: bool, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1286
|
+
return await send_to_core_modify_async(MANAGER_TASK_UNSCHEDULE(wait), data, with_show=with_show, *args, **kwargs)
|
|
1287
|
+
|
|
1288
|
+
|
|
733
1289
|
def post_manager_task_stop(data: StopOperation, with_show: bool, wait: bool, *args, **kwargs) -> Optional[Union[Alias.Id, AppLogs]]:
|
|
734
1290
|
show_func = show_logs_func if data.withLogs else None
|
|
735
1291
|
res = send_to_core_modify(MANAGER_TASK_STOP(wait), data, with_show=with_show, show_func=show_func, *args, **kwargs)
|
|
@@ -760,90 +1316,178 @@ def post_manager_task_resume(data: Operation, wait: bool, *args, **kwargs) -> Al
|
|
|
760
1316
|
return send_to_core_modify(MANAGER_TASK_RESUME(wait), data, *args, **kwargs)
|
|
761
1317
|
|
|
762
1318
|
|
|
1319
|
+
async def post_manager_task_resume_async(data: Operation, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
1320
|
+
return await send_to_core_modify_async(MANAGER_TASK_RESUME(wait), data, *args, **kwargs)
|
|
1321
|
+
|
|
1322
|
+
|
|
763
1323
|
def post_manager_task_pause(data: Operation, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
764
1324
|
return send_to_core_modify(MANAGER_TASK_PAUSE(wait), data, *args, **kwargs)
|
|
765
1325
|
|
|
766
1326
|
|
|
1327
|
+
async def post_manager_task_pause_async(data: Operation, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
1328
|
+
return await send_to_core_modify_async(MANAGER_TASK_PAUSE(wait), data, *args, **kwargs)
|
|
1329
|
+
|
|
1330
|
+
|
|
767
1331
|
def post_manager_app_stop(data: AppManage, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
768
1332
|
return send_to_core_modify(MANAGER_APP_STOP(wait), data, *args, **kwargs)
|
|
769
1333
|
|
|
770
1334
|
|
|
1335
|
+
async def post_manager_app_stop_async(data: AppManage, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
1336
|
+
return await send_to_core_modify_async(MANAGER_APP_STOP(wait), data, *args, **kwargs)
|
|
1337
|
+
|
|
1338
|
+
|
|
771
1339
|
def post_manager_app_resume(data: AppManage, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
772
1340
|
return send_to_core_modify(MANAGER_APP_RESUME(wait), data, *args, **kwargs)
|
|
773
1341
|
|
|
774
1342
|
|
|
1343
|
+
async def post_manager_app_resume_async(data: AppManage, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
1344
|
+
return await send_to_core_modify_async(MANAGER_APP_RESUME(wait), data, *args, **kwargs)
|
|
1345
|
+
|
|
1346
|
+
|
|
775
1347
|
def post_manager_app_pause(data: AppManage, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
776
1348
|
return send_to_core_modify(MANAGER_APP_PAUSE(wait), data, *args, **kwargs)
|
|
777
1349
|
|
|
778
1350
|
|
|
1351
|
+
async def post_manager_app_pause_async(data: AppManage, wait: bool, *args, **kwargs) -> Alias.Empty:
|
|
1352
|
+
return await send_to_core_modify_async(MANAGER_APP_PAUSE(wait), data, *args, **kwargs)
|
|
1353
|
+
|
|
1354
|
+
|
|
779
1355
|
def get_limits(*args, **kwargs) -> UserLimits:
|
|
780
1356
|
return model_from_json(send_to_core_get(LIMITS(True), *args, **kwargs), UserLimits)
|
|
781
1357
|
|
|
782
1358
|
|
|
1359
|
+
async def get_limits_async(*args, **kwargs) -> UserLimits:
|
|
1360
|
+
return model_from_json(await send_to_core_get_async(LIMITS(True), *args, **kwargs), UserLimits)
|
|
1361
|
+
|
|
1362
|
+
|
|
783
1363
|
def post_limits(data: Limits, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
784
1364
|
return send_to_core_modify(LIMITS(wait), data, *args, **kwargs)
|
|
785
1365
|
|
|
786
1366
|
|
|
1367
|
+
async def post_limits_async(data: Limits, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1368
|
+
return await send_to_core_modify_async(LIMITS(wait), data, *args, **kwargs)
|
|
1369
|
+
|
|
1370
|
+
|
|
787
1371
|
def post_user_limits(data: LimitsScope, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
788
1372
|
return send_to_core_modify(LIMITS_USER(wait), data, *args, **kwargs)
|
|
789
1373
|
|
|
790
1374
|
|
|
1375
|
+
async def post_user_limits_async(data: LimitsScope, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1376
|
+
return await send_to_core_modify_async(LIMITS_USER(wait), data, *args, **kwargs)
|
|
1377
|
+
|
|
1378
|
+
|
|
791
1379
|
def get_handler_url(*args, **kwargs) -> str:
|
|
792
1380
|
return send_to_core_get(HANDLER_URL(None, True), is_text=True, *args, **kwargs)
|
|
793
1381
|
|
|
794
1382
|
|
|
1383
|
+
async def get_handler_url_async(*args, **kwargs) -> str:
|
|
1384
|
+
return await send_to_core_get_async(HANDLER_URL(None, True), is_text=True, *args, **kwargs)
|
|
1385
|
+
|
|
1386
|
+
|
|
795
1387
|
def post_handler_url(url: Optional[str], wait: bool, *args, **kwargs) -> Alias.Info:
|
|
796
1388
|
return send_to_core_modify(HANDLER_URL(url, wait), *args, **kwargs)
|
|
797
1389
|
|
|
798
1390
|
|
|
1391
|
+
async def post_handler_url_async(url: Optional[str], wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1392
|
+
return await send_to_core_modify_async(HANDLER_URL(url, wait), *args, **kwargs)
|
|
1393
|
+
|
|
1394
|
+
|
|
799
1395
|
def get_analytics(*args, **kwargs) -> UserAnalyticsBatch:
|
|
800
1396
|
return model_from_json(send_to_core_get(ANALYTICS(None), *args, **kwargs), UserAnalyticsBatch)
|
|
801
1397
|
|
|
802
1398
|
|
|
1399
|
+
async def get_analytics_async(*args, **kwargs) -> UserAnalyticsBatch:
|
|
1400
|
+
return model_from_json(await send_to_core_get_async(ANALYTICS(None), *args, **kwargs), UserAnalyticsBatch)
|
|
1401
|
+
|
|
1402
|
+
|
|
803
1403
|
def get_analytics_by_id(id: str, *args, **kwargs) -> UserAnalytics:
|
|
804
1404
|
return model_from_json(send_to_core_get(ANALYTICS_ID(id, None), *args, **kwargs), UserAnalytics)
|
|
805
1405
|
|
|
806
1406
|
|
|
1407
|
+
async def get_analytics_by_id_async(id: str, *args, **kwargs) -> UserAnalytics:
|
|
1408
|
+
return model_from_json(await send_to_core_get_async(ANALYTICS_ID(id, None), *args, **kwargs), UserAnalytics)
|
|
1409
|
+
|
|
1410
|
+
|
|
807
1411
|
def get_analytics_by_name(name: str, *args, **kwargs) -> UserAnalyticsBatch:
|
|
808
1412
|
return model_from_json(send_to_core_get(ANALYTICS_NAME(name, None), *args, **kwargs), UserAnalyticsBatch)
|
|
809
1413
|
|
|
810
1414
|
|
|
1415
|
+
async def get_analytics_by_name_async(name: str, *args, **kwargs) -> UserAnalyticsBatch:
|
|
1416
|
+
return model_from_json(await send_to_core_get_async(ANALYTICS_NAME(name, None), *args, **kwargs), UserAnalyticsBatch)
|
|
1417
|
+
|
|
1418
|
+
|
|
811
1419
|
def post_analytics(data: UserAnalytics, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
812
1420
|
return send_to_core_modify(ANALYTICS(wait), data, *args, **kwargs)
|
|
813
1421
|
|
|
814
1422
|
|
|
1423
|
+
async def post_analytics_async(data: UserAnalytics, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
1424
|
+
return await send_to_core_modify_async(ANALYTICS(wait), data, *args, **kwargs)
|
|
1425
|
+
|
|
1426
|
+
|
|
815
1427
|
def post_analytics_many(data: UserAnalyticsBatch, wait: bool, *args, **kwargs) -> ResultIds:
|
|
816
1428
|
return model_from_json(send_to_core_modify(ANALYTICS_MANY(wait), data, *args, **kwargs), ResultIds)
|
|
817
1429
|
|
|
818
1430
|
|
|
1431
|
+
async def post_analytics_many_async(data: UserAnalyticsBatch, wait: bool, *args, **kwargs) -> ResultIds:
|
|
1432
|
+
return model_from_json(await send_to_core_modify_async(ANALYTICS_MANY(wait), data, *args, **kwargs), ResultIds)
|
|
1433
|
+
|
|
1434
|
+
|
|
819
1435
|
def get_runsInfo_last_operation_ids(count: int, *args, **kwargs) -> ResultIds:
|
|
820
1436
|
return model_from_json(send_to_core_get(RUNS_INFO_LAST(count), *args, **kwargs), ResultIds)
|
|
821
1437
|
|
|
822
1438
|
|
|
1439
|
+
async def get_runsInfo_last_operation_ids_async(count: int, *args, **kwargs) -> ResultIds:
|
|
1440
|
+
return model_from_json(await send_to_core_get_async(RUNS_INFO_LAST(count), *args, **kwargs), ResultIds)
|
|
1441
|
+
|
|
1442
|
+
|
|
823
1443
|
def get_runsInfo_last_failed_operation_ids(count: int, *args, **kwargs) -> ResultIds:
|
|
824
1444
|
return model_from_json(send_to_core_get(RUNS_INFO_LAST_FAILED(count), *args, **kwargs), ResultIds)
|
|
825
1445
|
|
|
826
1446
|
|
|
1447
|
+
async def get_runsInfo_last_failed_operation_ids_async(count: int, *args, **kwargs) -> ResultIds:
|
|
1448
|
+
return model_from_json(await send_to_core_get_async(RUNS_INFO_LAST_FAILED(count), *args, **kwargs), ResultIds)
|
|
1449
|
+
|
|
1450
|
+
|
|
827
1451
|
def get_ws_apps(only_active: bool = False, full: bool = False, *args, **kwargs) -> Union[ResultIds, WSApps]:
|
|
828
1452
|
return model_from_json(send_to_core_get(WS_APPS(only_active, full), *args, **kwargs), WSApps if full else ResultIds)
|
|
829
1453
|
|
|
830
1454
|
|
|
1455
|
+
async def get_ws_apps_async(only_active: bool = False, full: bool = False, *args, **kwargs) -> Union[ResultIds, WSApps]:
|
|
1456
|
+
return model_from_json(await send_to_core_get_async(WS_APPS(only_active, full), *args, **kwargs), WSApps if full else ResultIds)
|
|
1457
|
+
|
|
1458
|
+
|
|
831
1459
|
def get_ws_apps_id(id: str, *args, **kwargs) -> WSApp:
|
|
832
1460
|
return model_from_json(send_to_core_get(WS_APPS_ID(id, None), *args, **kwargs), WSApp)
|
|
833
1461
|
|
|
834
1462
|
|
|
1463
|
+
async def get_ws_apps_id_async(id: str, *args, **kwargs) -> WSApp:
|
|
1464
|
+
return model_from_json(await send_to_core_get_async(WS_APPS_ID(id, None), *args, **kwargs), WSApp)
|
|
1465
|
+
|
|
1466
|
+
|
|
835
1467
|
def post_ws_apps(wait: bool, *args, **kwargs) -> WSApp:
|
|
836
1468
|
return model_from_json(send_to_core_modify(WS_APPS_(None, wait), *args, **kwargs), WSApp)
|
|
837
1469
|
|
|
838
1470
|
|
|
1471
|
+
async def post_ws_apps_async(wait: bool, *args, **kwargs) -> WSApp:
|
|
1472
|
+
return model_from_json(await send_to_core_modify_async(WS_APPS_(None, wait), *args, **kwargs), WSApp)
|
|
1473
|
+
|
|
1474
|
+
|
|
839
1475
|
def delete_ws_apps_id(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
840
1476
|
return send_to_core_modify(WS_APPS_ID(id, wait), *args, **kwargs)
|
|
841
1477
|
|
|
842
1478
|
|
|
1479
|
+
async def delete_ws_apps_id_async(id: str, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1480
|
+
return await send_to_core_modify_async(WS_APPS_ID(id, wait), *args, **kwargs)
|
|
1481
|
+
|
|
1482
|
+
|
|
843
1483
|
def delete_ws_apps(only_not_active: bool, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
844
1484
|
return send_to_core_modify(WS_APPS_(only_not_active, wait), *args, **kwargs)
|
|
845
1485
|
|
|
846
1486
|
|
|
1487
|
+
async def delete_ws_apps_async(only_not_active: bool, wait: bool, *args, **kwargs) -> Alias.Info:
|
|
1488
|
+
return await send_to_core_modify_async(WS_APPS_(only_not_active, wait), *args, **kwargs)
|
|
1489
|
+
|
|
1490
|
+
|
|
847
1491
|
async def kafka_send(data: KafkaMsg, *args, **kwargs) -> Union[Alias.Info, KafkaMsg]:
|
|
848
1492
|
result = await send_to_core_post_async(KAFKA_SEND, data, *args, **kwargs)
|
|
849
1493
|
try:
|
|
@@ -858,6 +1502,10 @@ def post_batch(data: BatchOperations, *args, **kwargs) -> BatchResponses:
|
|
|
858
1502
|
return model_from_json(send_to_core_modify(BATCH, data, *args, **kwargs), BatchResponses)
|
|
859
1503
|
|
|
860
1504
|
|
|
1505
|
+
async def post_batch_async(data: BatchOperations, *args, **kwargs) -> BatchResponses:
|
|
1506
|
+
return model_from_json(await send_to_core_modify_async(BATCH, data, *args, **kwargs), BatchResponses)
|
|
1507
|
+
|
|
1508
|
+
|
|
861
1509
|
##################################
|
|
862
1510
|
|
|
863
1511
|
|