malevich-coretools 0.3.41__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.

@@ -124,12 +124,15 @@ def get_docs(
124
124
  auth: Optional[AUTH] = None,
125
125
  conn_url: Optional[str] = None,
126
126
  batcher: Optional[Batcher] = None,
127
+ is_async: bool = False,
127
128
  ) -> ResultIds:
128
129
  """return list ids """
129
130
  if batcher is None:
130
131
  batcher = Config.BATCHER
131
132
  if batcher is not None:
132
133
  return batcher.add("getDocs", result_model=ResultIds)
134
+ if is_async:
135
+ return f.get_docs_async(auth=auth, conn_url=conn_url)
133
136
  return f.get_docs(auth=auth, conn_url=conn_url)
134
137
 
135
138
 
@@ -139,12 +142,15 @@ def get_doc(
139
142
  auth: Optional[AUTH] = None,
140
143
  conn_url: Optional[str] = None,
141
144
  batcher: Optional[Batcher] = None,
145
+ is_async: bool = False,
142
146
  ) -> ResultDoc:
143
147
  """return doc by `id` """
144
148
  if batcher is None:
145
149
  batcher = Config.BATCHER
146
150
  if batcher is not None:
147
151
  return batcher.add("getDocById", vars={"id": id}, result_model=ResultDoc)
152
+ if is_async:
153
+ return f.get_docs_id_async(id, auth=auth, conn_url=conn_url)
148
154
  return f.get_docs_id(id, auth=auth, conn_url=conn_url)
149
155
 
150
156
 
@@ -154,12 +160,15 @@ def get_doc_by_name(
154
160
  auth: Optional[AUTH] = None,
155
161
  conn_url: Optional[str] = None,
156
162
  batcher: Optional[Batcher] = None,
163
+ is_async: bool = False,
157
164
  ) -> ResultDoc:
158
165
  """return doc by `name` """
159
166
  if batcher is None:
160
167
  batcher = Config.BATCHER
161
168
  if batcher is not None:
162
169
  return batcher.add("getDocByName", vars={"name": name}, result_model=ResultDoc)
170
+ if is_async:
171
+ return f.get_docs_name_async(name, auth=auth, conn_url=conn_url)
163
172
  return f.get_docs_name(name, auth=auth, conn_url=conn_url)
164
173
 
165
174
 
@@ -171,6 +180,7 @@ def create_doc(
171
180
  auth: Optional[AUTH] = None,
172
181
  conn_url: Optional[str] = None,
173
182
  batcher: Optional[Batcher] = None,
183
+ is_async: bool = False,
174
184
  ) -> Alias.Id:
175
185
  """save doc with `data` and `name`, return `id` """
176
186
  if batcher is None:
@@ -182,6 +192,10 @@ def create_doc(
182
192
  data = DocWithName(data=data, name=name)
183
193
  if batcher is not None:
184
194
  return batcher.add("postDoc", data=data)
195
+ if is_async:
196
+ return f.post_docs_async(
197
+ data, wait=wait, auth=auth, conn_url=conn_url
198
+ )
185
199
  return f.post_docs(
186
200
  data, wait=wait, auth=auth, conn_url=conn_url
187
201
  )
@@ -196,6 +210,7 @@ def update_doc(
196
210
  auth: Optional[AUTH] = None,
197
211
  conn_url: Optional[str] = None,
198
212
  batcher: Optional[Batcher] = None,
213
+ is_async: bool = False,
199
214
  ) -> Alias.Id:
200
215
  """update doc by `id`, return `id` """
201
216
  if batcher is None:
@@ -203,6 +218,10 @@ def update_doc(
203
218
  data = DocWithName(data=data, name=name)
204
219
  if batcher is not None:
205
220
  return batcher.add("postDocById", data=data, vars={"id": id})
221
+ if is_async:
222
+ return f.post_docs_id_async(
223
+ id, data, wait=wait, auth=auth, conn_url=conn_url
224
+ )
206
225
  return f.post_docs_id(
207
226
  id, data, wait=wait, auth=auth, conn_url=conn_url
208
227
  )
@@ -215,12 +234,15 @@ def delete_doc(
215
234
  auth: Optional[AUTH] = None,
216
235
  conn_url: Optional[str] = None,
217
236
  batcher: Optional[Batcher] = None,
237
+ is_async: bool = False,
218
238
  ) -> Alias.Info:
219
239
  """delete doc by `id` """
220
240
  if batcher is None:
221
241
  batcher = Config.BATCHER
222
242
  if batcher is not None:
223
243
  return batcher.add("deleteDocById", vars={"id": id})
244
+ if is_async:
245
+ return f.delete_docs_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
224
246
  return f.delete_docs_id(id, wait=wait, auth=auth, conn_url=conn_url)
225
247
 
226
248
 
@@ -230,12 +252,15 @@ def delete_docs(
230
252
  auth: Optional[AUTH] = None,
231
253
  conn_url: Optional[str] = None,
232
254
  batcher: Optional[Batcher] = None,
255
+ is_async: bool = False,
233
256
  ) -> Alias.Info:
234
257
  """delete all docs"""
235
258
  if batcher is None:
236
259
  batcher = Config.BATCHER
237
260
  if batcher is not None:
238
261
  return batcher.add("deleteDocs")
262
+ if is_async:
263
+ return f.delete_docs_async(wait=wait, auth=auth, conn_url=conn_url)
239
264
  return f.delete_docs(wait=wait, auth=auth, conn_url=conn_url)
240
265
 
241
266
 
@@ -247,12 +272,15 @@ def get_collections(
247
272
  auth: Optional[AUTH] = None,
248
273
  conn_url: Optional[str] = None,
249
274
  batcher: Optional[Batcher] = None,
275
+ is_async: bool = False,
250
276
  ) -> ResultOwnAndSharedIds:
251
277
  """return 2 list: own collections ids and shared collections ids"""
252
278
  if batcher is None:
253
279
  batcher = Config.BATCHER
254
280
  if batcher is not None:
255
281
  return batcher.add("getCollections", result_model=ResultOwnAndSharedIds)
282
+ if is_async:
283
+ return f.get_collections_async(auth=auth, conn_url=conn_url)
256
284
  return f.get_collections(auth=auth, conn_url=conn_url)
257
285
 
258
286
 
@@ -264,6 +292,7 @@ def get_collections_by_name(
264
292
  auth: Optional[AUTH] = None,
265
293
  conn_url: Optional[str] = None,
266
294
  batcher: Optional[Batcher] = None,
295
+ is_async: bool = False,
267
296
  ) -> ResultOwnAndSharedIds:
268
297
  """return 2 list: own collections ids and shared collections ids by `name` and mb also `operation_id` and `run_id` with which it was saved"""
269
298
  assert not (
@@ -273,6 +302,10 @@ def get_collections_by_name(
273
302
  batcher = Config.BATCHER
274
303
  if batcher is not None:
275
304
  return batcher.add("getCollectionsByNameAndOperationId", vars={"name": name, "operationId": operation_id, "runId": run_id}, result_model=ResultOwnAndSharedIds)
305
+ if is_async:
306
+ return f.get_collections_name_async(
307
+ name, operation_id, run_id, auth=auth, conn_url=conn_url
308
+ )
276
309
  return f.get_collections_name(
277
310
  name, operation_id, run_id, auth=auth, conn_url=conn_url
278
311
  )
@@ -288,6 +321,7 @@ def get_collection_by_name(
288
321
  auth: Optional[AUTH] = None,
289
322
  conn_url: Optional[str] = None,
290
323
  batcher: Optional[Batcher] = None,
324
+ is_async: bool = False,
291
325
  ) -> ResultCollection:
292
326
  """return collection by `name` and mb also `operation_id` and `run_id` with which it was saved. raise if there are multiple collections, pagination: unlimited - `limit` < 0"""
293
327
  assert not (
@@ -297,6 +331,10 @@ def get_collection_by_name(
297
331
  batcher = Config.BATCHER
298
332
  if batcher is not None:
299
333
  return batcher.add("getCollectionByName", vars={"name": name, "operationId": operation_id, "runId": run_id, "offset": offset, "limit": limit}, result_model=ResultCollection)
334
+ if is_async:
335
+ return f.get_collection_name_async(
336
+ name, operation_id, run_id, offset, limit, auth=auth, conn_url=conn_url
337
+ )
300
338
  return f.get_collection_name(
301
339
  name, operation_id, run_id, offset, limit, auth=auth, conn_url=conn_url
302
340
  )
@@ -310,12 +348,15 @@ def get_collection(
310
348
  auth: Optional[AUTH] = None,
311
349
  conn_url: Optional[str] = None,
312
350
  batcher: Optional[Batcher] = None,
351
+ is_async: bool = False,
313
352
  ) -> ResultCollection:
314
353
  """return collection by `id`, pagination: unlimited - `limit` < 0"""
315
354
  if batcher is None:
316
355
  batcher = Config.BATCHER
317
356
  if batcher is not None:
318
357
  return batcher.add("getCollectionById", vars={"id": id, "offset": offset, "limit": limit}, result_model=ResultCollection)
358
+ if is_async:
359
+ return f.get_collections_id_async(id, offset, limit, auth=auth, conn_url=conn_url)
319
360
  return f.get_collections_id(id, offset, limit, auth=auth, conn_url=conn_url)
320
361
 
321
362
 
@@ -327,12 +368,17 @@ def get_collections_ids_by_group_name(
327
368
  auth: Optional[AUTH] = None,
328
369
  conn_url: Optional[str] = None,
329
370
  batcher: Optional[Batcher] = None,
371
+ is_async: bool = False,
330
372
  ) -> ResultIds:
331
373
  """return collections ids by `group_name`, `operation_id` and `run_id` with which it was saved"""
332
374
  if batcher is None:
333
375
  batcher = Config.BATCHER
334
376
  if batcher is not None:
335
377
  return batcher.add("getCollectionsIdsByGroupName", vars={"name": group_name, "operationId": operation_id, "runId": run_id}, result_model=ResultIds)
378
+ if is_async:
379
+ return f.get_collections_ids_groupName_async(
380
+ group_name, operation_id, run_id, auth=auth, conn_url=conn_url
381
+ )
336
382
  return f.get_collections_ids_groupName(
337
383
  group_name, operation_id, run_id, auth=auth, conn_url=conn_url
338
384
  )
@@ -346,12 +392,17 @@ def get_collections_by_group_name(
346
392
  auth: Optional[AUTH] = None,
347
393
  conn_url: Optional[str] = None,
348
394
  batcher: Optional[Batcher] = None,
395
+ is_async: bool = False,
349
396
  ) -> ResultCollections:
350
397
  """return collections by `group_name`, `operation_id` and `run_id` with which it was saved"""
351
398
  if batcher is None:
352
399
  batcher = Config.BATCHER
353
400
  if batcher is not None:
354
401
  return batcher.add("getCollectionsByGroupName", vars={"name": group_name, "operationId": operation_id, "runId": run_id}, result_model=ResultCollections)
402
+ if is_async:
403
+ return f.get_collections_groupName_async(
404
+ group_name, operation_id, run_id, auth=auth, conn_url=conn_url
405
+ )
355
406
  return f.get_collections_groupName(
356
407
  group_name, operation_id, run_id, auth=auth, conn_url=conn_url
357
408
  )
@@ -366,6 +417,7 @@ def create_collection(
366
417
  auth: Optional[AUTH] = None,
367
418
  conn_url: Optional[str] = None,
368
419
  batcher: Optional[Batcher] = None,
420
+ is_async: bool = False,
369
421
  ) -> Alias.Id:
370
422
  """save collection by list docs `ids`, return id"""
371
423
  if batcher is None:
@@ -373,6 +425,13 @@ def create_collection(
373
425
  data = DocsCollection(data=ids, name=name, metadata=metadata)
374
426
  if batcher is not None:
375
427
  return batcher.add("postCollection", data=data)
428
+ if is_async:
429
+ return f.post_collections_async(
430
+ data,
431
+ wait=wait,
432
+ auth=auth,
433
+ conn_url=conn_url,
434
+ )
376
435
  return f.post_collections(
377
436
  data,
378
437
  wait=wait,
@@ -391,6 +450,7 @@ def update_collection(
391
450
  auth: Optional[AUTH] = None,
392
451
  conn_url: Optional[str] = None,
393
452
  batcher: Optional[Batcher] = None,
453
+ is_async: bool = False,
394
454
  ) -> Alias.Id:
395
455
  """update collection with `id` by list docs `ids`, return `id` """
396
456
  if batcher is None:
@@ -398,6 +458,14 @@ def update_collection(
398
458
  data = DocsCollection(data=ids, name=name, metadata=metadata)
399
459
  if batcher is not None:
400
460
  return batcher.add("postCollectionById", data=data, vars={"id": id})
461
+ if is_async:
462
+ return f.post_collections_id_async(
463
+ id,
464
+ data,
465
+ wait=wait,
466
+ auth=auth,
467
+ conn_url=conn_url,
468
+ )
401
469
  return f.post_collections_id(
402
470
  id,
403
471
  data,
@@ -416,6 +484,7 @@ def s3_put_collection(
416
484
  auth: Optional[AUTH] = None,
417
485
  conn_url: Optional[str] = None,
418
486
  batcher: Optional[Batcher] = None,
487
+ is_async: bool = False,
419
488
  ) -> Alias.Info:
420
489
  """is_csv = false -> save json, key by default = id"""
421
490
  if batcher is None:
@@ -423,6 +492,14 @@ def s3_put_collection(
423
492
  data = PostS3Settings(isCsv=is_csv, key=key)
424
493
  if batcher is not None:
425
494
  return batcher.add("postCollectionByIdS3", data=data, vars={"id": id})
495
+ if is_async:
496
+ return f.post_collections_id_s3_async(
497
+ id,
498
+ data,
499
+ wait=wait,
500
+ auth=auth,
501
+ conn_url=conn_url,
502
+ )
426
503
  return f.post_collections_id_s3(
427
504
  id,
428
505
  data,
@@ -441,6 +518,7 @@ def create_collection_by_docs(
441
518
  auth: Optional[AUTH] = None,
442
519
  conn_url: Optional[str] = None,
443
520
  batcher: Optional[Batcher] = None,
521
+ is_async: bool = False,
444
522
  ) -> Alias.Id:
445
523
  """save collection by `docs`, return `id` """
446
524
  if batcher is None:
@@ -448,6 +526,13 @@ def create_collection_by_docs(
448
526
  data = DocsDataCollection(data=docs, name=name, metadata=metadata)
449
527
  if batcher is not None:
450
528
  return batcher.add("postCollectionByDocs", data=data)
529
+ if is_async:
530
+ return f.post_collections_data_async(
531
+ data,
532
+ wait=wait,
533
+ auth=auth,
534
+ conn_url=conn_url,
535
+ )
451
536
  return f.post_collections_data(
452
537
  data,
453
538
  wait=wait,
@@ -466,6 +551,7 @@ def update_collection_by_docs(
466
551
  auth: Optional[AUTH] = None,
467
552
  conn_url: Optional[str] = None,
468
553
  batcher: Optional[Batcher] = None,
554
+ is_async: bool = False,
469
555
  ) -> Alias.Id:
470
556
  """update collection by `id` with `docs`, return `id` """
471
557
  if batcher is None:
@@ -473,6 +559,14 @@ def update_collection_by_docs(
473
559
  data = DocsDataCollection(data=docs, name=name, metadata=metadata)
474
560
  if batcher is not None:
475
561
  return batcher.add("postCollectionByDocsAndId", data=data, vars={"id": id})
562
+ if is_async:
563
+ return f.post_collections_data_id_async(
564
+ id,
565
+ data,
566
+ wait=wait,
567
+ auth=auth,
568
+ conn_url=conn_url,
569
+ )
476
570
  return f.post_collections_data_id(
477
571
  id,
478
572
  data,
@@ -490,6 +584,7 @@ def add_to_collection(
490
584
  auth: Optional[AUTH] = None,
491
585
  conn_url: Optional[str] = None,
492
586
  batcher: Optional[Batcher] = None,
587
+ is_async: bool = False,
493
588
  ) -> Alias.Info:
494
589
  """add to collection with `id` docs with `ids` """
495
590
  if batcher is None:
@@ -497,6 +592,10 @@ def add_to_collection(
497
592
  data = DocsCollectionChange(data=ids)
498
593
  if batcher is not None:
499
594
  return batcher.add("postCollectionByIdAdd", data=data, vars={"id": id})
595
+ if is_async:
596
+ return f.post_collections_id_add_async(
597
+ id, data, wait=wait, auth=auth, conn_url=conn_url
598
+ )
500
599
  return f.post_collections_id_add(
501
600
  id, data, wait=wait, auth=auth, conn_url=conn_url
502
601
  )
@@ -510,12 +609,17 @@ def copy_collection(
510
609
  auth: Optional[AUTH] = None,
511
610
  conn_url: Optional[str] = None,
512
611
  batcher: Optional[Batcher] = None,
612
+ is_async: bool = False,
513
613
  ) -> Alias.Id:
514
614
  """copy collection with `id`, if not `full_copy` docs same as in collection with `id` """
515
615
  if batcher is None:
516
616
  batcher = Config.BATCHER
517
617
  if batcher is not None:
518
618
  return batcher.add("postCollectionByIdCopy", vars={"id": id, "fullCopy": full_copy})
619
+ if is_async:
620
+ return f.post_collections_id_copy_async(
621
+ id, full_copy=full_copy, wait=wait, auth=auth, conn_url=conn_url
622
+ )
519
623
  return f.post_collections_id_copy(
520
624
  id, full_copy=full_copy, wait=wait, auth=auth, conn_url=conn_url
521
625
  )
@@ -530,6 +634,7 @@ def apply_scheme(
530
634
  auth: Optional[AUTH] = None,
531
635
  conn_url: Optional[str] = None,
532
636
  batcher: Optional[Batcher] = None,
637
+ is_async: bool = False,
533
638
  ) -> Alias.Id:
534
639
  """apply scheme with `scheme_name` to collection with `coll_id` return new collection with another `coll_id` """
535
640
  if batcher is None:
@@ -537,6 +642,14 @@ def apply_scheme(
537
642
  data = FixScheme(schemeName=scheme_name, mode=mode)
538
643
  if batcher is not None:
539
644
  return batcher.add("postCollectionApplyScheme", data=data, vars={"id": coll_id})
645
+ if is_async:
646
+ return f.post_collections_id_applyScheme_async(
647
+ coll_id,
648
+ data,
649
+ wait=wait,
650
+ auth=auth,
651
+ conn_url=conn_url,
652
+ )
540
653
  return f.post_collections_id_applyScheme(
541
654
  coll_id,
542
655
  data,
@@ -555,6 +668,7 @@ def fix_scheme(
555
668
  auth: Optional[AUTH] = None,
556
669
  conn_url: Optional[str] = None,
557
670
  batcher: Optional[Batcher] = None,
671
+ is_async: bool = False,
558
672
  ) -> Alias.Info:
559
673
  """optimization to core (not necessary call), sets the schema with `scheme_name` for the collection with `coll_id` """
560
674
  if batcher is None:
@@ -562,6 +676,10 @@ def fix_scheme(
562
676
  data = FixScheme(schemeName=scheme_name, mode=mode)
563
677
  if batcher is not None:
564
678
  return batcher.add("postCollectionFixScheme", data=data, vars={"id": coll_id})
679
+ if is_async:
680
+ return f.post_collections_id_fixScheme_async(
681
+ coll_id, data, wait=wait, auth=auth, conn_url=conn_url
682
+ )
565
683
  return f.post_collections_id_fixScheme(
566
684
  coll_id, data, wait=wait, auth=auth, conn_url=conn_url
567
685
  )
@@ -574,12 +692,17 @@ def unfix_scheme(
574
692
  auth: Optional[AUTH] = None,
575
693
  conn_url: Optional[str] = None,
576
694
  batcher: Optional[Batcher] = None,
695
+ is_async: bool = False,
577
696
  ) -> Alias.Info:
578
697
  """unfix scheme for collection with `coll_id` """
579
698
  if batcher is None:
580
699
  batcher = Config.BATCHER
581
700
  if batcher is not None:
582
701
  return batcher.add("postCollectionUnfixScheme", vars={"id": coll_id})
702
+ if is_async:
703
+ return f.post_collections_id_unfixScheme_async(
704
+ coll_id, wait=wait, auth=auth, conn_url=conn_url
705
+ )
583
706
  return f.post_collections_id_unfixScheme(
584
707
  coll_id, wait=wait, auth=auth, conn_url=conn_url
585
708
  )
@@ -593,6 +716,7 @@ def update_metadata(
593
716
  auth: Optional[AUTH] = None,
594
717
  conn_url: Optional[str] = None,
595
718
  batcher: Optional[Batcher] = None,
719
+ is_async: bool = False,
596
720
  ) -> Alias.Info:
597
721
  """update `metadata` for collection with `coll_id` """
598
722
  if batcher is None:
@@ -600,6 +724,10 @@ def update_metadata(
600
724
  data = CollectionMetadata(data=metadata)
601
725
  if batcher is not None:
602
726
  return batcher.add("postCollectionMetadata", data=data, vars={"id": coll_id})
727
+ if is_async:
728
+ return f.post_collections_metadata_async(
729
+ coll_id, data, wait=wait, auth=auth, conn_url=conn_url
730
+ )
603
731
  return f.post_collections_metadata(
604
732
  coll_id, data, wait=wait, auth=auth, conn_url=conn_url
605
733
  )
@@ -611,12 +739,15 @@ def delete_collections(
611
739
  auth: Optional[AUTH] = None,
612
740
  conn_url: Optional[str] = None,
613
741
  batcher: Optional[Batcher] = None,
742
+ is_async: bool = False,
614
743
  ) -> Alias.Info:
615
744
  """delete all collections"""
616
745
  if batcher is None:
617
746
  batcher = Config.BATCHER
618
747
  if batcher is not None:
619
748
  return batcher.add("deleteCollections")
749
+ if is_async:
750
+ return f.delete_collections_async(wait=wait, auth=auth, conn_url=conn_url)
620
751
  return f.delete_collections(wait=wait, auth=auth, conn_url=conn_url)
621
752
 
622
753
 
@@ -627,12 +758,15 @@ def delete_collection(
627
758
  auth: Optional[AUTH] = None,
628
759
  conn_url: Optional[str] = None,
629
760
  batcher: Optional[Batcher] = None,
761
+ is_async: bool = False,
630
762
  ) -> Alias.Info:
631
763
  """delete collection with `id` """
632
764
  if batcher is None:
633
765
  batcher = Config.BATCHER
634
766
  if batcher is not None:
635
767
  return batcher.add("deleteCollectionById", vars={"id": id})
768
+ if is_async:
769
+ return f.delete_collections_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
636
770
  return f.delete_collections_id(id, wait=wait, auth=auth, conn_url=conn_url)
637
771
 
638
772
 
@@ -643,12 +777,15 @@ def s3_delete_collection(
643
777
  auth: Optional[AUTH] = None,
644
778
  conn_url: Optional[str] = None,
645
779
  batcher: Optional[Batcher] = None,
780
+ is_async: bool = False,
646
781
  ) -> Alias.Info:
647
782
  """delete collection from s3 by `key` (that =id if not specified in s3_save_collection)"""
648
783
  if batcher is None:
649
784
  batcher = Config.BATCHER
650
785
  if batcher is not None:
651
786
  return batcher.add("deleteCollectionByIdS3", vars={"id": key})
787
+ if is_async:
788
+ return f.delete_collections_id_s3_async(key, wait=wait, auth=auth, conn_url=conn_url)
652
789
  return f.delete_collections_id_s3(key, wait=wait, auth=auth, conn_url=conn_url)
653
790
 
654
791
 
@@ -660,6 +797,7 @@ def delete_from_collection(
660
797
  auth: Optional[AUTH] = None,
661
798
  conn_url: Optional[str] = None,
662
799
  batcher: Optional[Batcher] = None,
800
+ is_async: bool = False,
663
801
  ) -> Alias.Info:
664
802
  """delete docs with `ids` from collection with `id` """
665
803
  if batcher is None:
@@ -667,6 +805,10 @@ def delete_from_collection(
667
805
  data = DocsCollectionChange(data=ids)
668
806
  if batcher is not None:
669
807
  return batcher.add("deleteCollectionByIdDel", data=data, vars={"id": id})
808
+ if is_async:
809
+ return f.delete_collections_id_del_async(
810
+ id, data, wait=wait, auth=auth, conn_url=conn_url
811
+ )
670
812
  return f.delete_collections_id_del(
671
813
  id, data, wait=wait, auth=auth, conn_url=conn_url
672
814
  )
@@ -682,12 +824,15 @@ def get_collection_objects(
682
824
  auth: Optional[AUTH] = None,
683
825
  conn_url: Optional[str] = None,
684
826
  batcher: Optional[Batcher] = None,
827
+ is_async: bool = False,
685
828
  ) -> FilesDirs:
686
829
  """return struct with list of paths: directories and files: walk if `recursive` else ls"""
687
830
  if batcher is None:
688
831
  batcher = Config.BATCHER
689
832
  if batcher is not None:
690
833
  return batcher.add("getCollectionObjects", vars={"path": path, "recursive": recursive}, result_model=FilesDirs)
834
+ if is_async:
835
+ return f.get_collection_objects_async(path, recursive, auth=auth, conn_url=conn_url)
691
836
  return f.get_collection_objects(path, recursive, auth=auth, conn_url=conn_url)
692
837
 
693
838
 
@@ -697,12 +842,17 @@ def get_collection_object(
697
842
  auth: Optional[AUTH] = None,
698
843
  conn_url: Optional[str] = None,
699
844
  batcher: Optional[Batcher] = None,
845
+ is_async: bool = False,
700
846
  ) -> bytes:
701
847
  """return collection object bytes by `path`"""
702
848
  if batcher is None:
703
849
  batcher = Config.BATCHER
704
850
  if batcher is not None:
705
851
  return batcher.add("getCollectionObject", vars={"path": path})
852
+ if is_async:
853
+ return f.get_collection_object_async(
854
+ path, auth=auth, conn_url=conn_url
855
+ )
706
856
  return f.get_collection_object(
707
857
  path, auth=auth, conn_url=conn_url
708
858
  )
@@ -717,12 +867,15 @@ def post_collection_object_presigned_url(
717
867
  auth: Optional[AUTH] = None,
718
868
  conn_url: Optional[str] = None,
719
869
  batcher: Optional[Batcher] = None,
870
+ is_async: bool = False,
720
871
  ) -> str:
721
872
  """get presigned url to put object with `path`, valid only `expiresIn` seconds, one-time use"""
722
873
  if batcher is None:
723
874
  batcher = Config.BATCHER
724
875
  if batcher is not None:
725
876
  return batcher.add("presignCollectionObject", vars={"path": path, "callbackUrl": callback_url, "expiresIn": expires_in})
877
+ if is_async:
878
+ return f.post_collection_object_presigned_url_async(path, callback_url, expires_in, wait=wait, auth=auth, conn_url=conn_url)
726
879
  return f.post_collection_object_presigned_url(path, callback_url, expires_in, wait=wait, auth=auth, conn_url=conn_url)
727
880
 
728
881
 
@@ -735,12 +888,15 @@ def get_collection_object_presigned_url(
735
888
  auth: Optional[AUTH] = None,
736
889
  conn_url: Optional[str] = None,
737
890
  batcher: Optional[Batcher] = None,
891
+ is_async: bool = False,
738
892
  ) -> str:
739
893
  """get presigned url to get object with `path`, valid only `expiresIn` seconds, one-time use"""
740
894
  if batcher is None:
741
895
  batcher = Config.BATCHER
742
896
  if batcher is not None:
743
897
  return batcher.add("presignGetCollectionObject", vars={"path": path, "callbackUrl": callback_url, "expiresIn": expires_in})
898
+ if is_async:
899
+ return f.get_collection_object_presigned_url_async(path, callback_url, expires_in, wait=wait, auth=auth, conn_url=conn_url)
744
900
  return f.get_collection_object_presigned_url(path, callback_url, expires_in, wait=wait, auth=auth, conn_url=conn_url)
745
901
 
746
902
 
@@ -750,12 +906,15 @@ def load_collection_object_presigned(
750
906
  auth: Optional[AUTH] = None,
751
907
  conn_url: Optional[str] = None,
752
908
  batcher: Optional[Batcher] = None,
909
+ is_async: bool = False,
753
910
  ) -> bytes:
754
911
  """get collection object by presigned `signature`"""
755
912
  if batcher is None:
756
913
  batcher = Config.BATCHER
757
914
  if batcher is not None:
758
915
  return batcher.add("getPresignCollectionObject", vars={"signature": signature})
916
+ if is_async:
917
+ return f.get_collections_object_presigned_async(signature, auth=auth, conn_url=conn_url)
759
918
  return f.get_collections_object_presigned(signature, auth=auth, conn_url=conn_url)
760
919
 
761
920
 
@@ -768,12 +927,15 @@ def update_collection_object(
768
927
  auth: Optional[AUTH] = None,
769
928
  conn_url: Optional[str] = None,
770
929
  batcher: Optional[Batcher] = None,
930
+ is_async: bool = False,
771
931
  ) -> Alias.Info:
772
932
  """update collection object with `path` by `data` """
773
933
  if batcher is None:
774
934
  batcher = Config.BATCHER
775
935
  if batcher is not None:
776
936
  return batcher.add("postCollectionObject", data=data, vars={"path": path, "zip": zip})
937
+ if is_async:
938
+ return f.post_collections_object_async(path, data, zip, wait=wait, auth=auth, conn_url=conn_url)
777
939
  return f.post_collections_object(path, data, zip, wait=wait, auth=auth, conn_url=conn_url)
778
940
 
779
941
 
@@ -785,12 +947,15 @@ def update_collection_object_presigned(
785
947
  auth: Optional[AUTH] = None,
786
948
  conn_url: Optional[str] = None,
787
949
  batcher: Optional[Batcher] = None,
950
+ is_async: bool = False,
788
951
  ) -> Alias.Info:
789
952
  """update collection object by `data` with presigned `signature`"""
790
953
  if batcher is None:
791
954
  batcher = Config.BATCHER
792
955
  if batcher is not None:
793
956
  return batcher.add("postPresignCollectionObject", data=data, vars={"signature": signature, "zip": zip})
957
+ if is_async:
958
+ return f.post_collections_object_presigned_async(signature, data, zip, auth=auth, conn_url=conn_url)
794
959
  return f.post_collections_object_presigned(signature, data, zip, auth=auth, conn_url=conn_url)
795
960
 
796
961
 
@@ -800,12 +965,15 @@ def delete_collection_objects(
800
965
  auth: Optional[AUTH] = None,
801
966
  conn_url: Optional[str] = None,
802
967
  batcher: Optional[Batcher] = None,
968
+ is_async: bool = False,
803
969
  ) -> Alias.Info:
804
970
  """delete all collection objects"""
805
971
  if batcher is None:
806
972
  batcher = Config.BATCHER
807
973
  if batcher is not None:
808
974
  return batcher.add("deleteCollectionObjects")
975
+ if is_async:
976
+ return f.delete_collection_objects_async(wait=wait, auth=auth, conn_url=conn_url)
809
977
  return f.delete_collection_objects(wait=wait, auth=auth, conn_url=conn_url)
810
978
 
811
979
 
@@ -816,12 +984,15 @@ def delete_collection_object(
816
984
  auth: Optional[AUTH] = None,
817
985
  conn_url: Optional[str] = None,
818
986
  batcher: Optional[Batcher] = None,
987
+ is_async: bool = False,
819
988
  ) -> Alias.Info:
820
989
  """delete collection object with `path` (or directory with them) """
821
990
  if batcher is None:
822
991
  batcher = Config.BATCHER
823
992
  if batcher is not None:
824
993
  return batcher.add("deleteCollectionObjectByPath", vars={"path": path})
994
+ if is_async:
995
+ return f.delete_collection_object_async(path, wait=wait, auth=auth, conn_url=conn_url)
825
996
  return f.delete_collection_object(path, wait=wait, auth=auth, conn_url=conn_url)
826
997
 
827
998
 
@@ -833,12 +1004,15 @@ def get_endpoints(
833
1004
  auth: Optional[AUTH] = None,
834
1005
  conn_url: Optional[str] = None,
835
1006
  batcher: Optional[Batcher] = None,
1007
+ is_async: bool = False,
836
1008
  ) -> Endpoints:
837
1009
  """get registered endpoints structs"""
838
1010
  if batcher is None:
839
1011
  batcher = Config.BATCHER
840
1012
  if batcher is not None:
841
1013
  return batcher.add("getEndpoints", result_model=Endpoints)
1014
+ if is_async:
1015
+ return f.get_endpoints_async(auth=auth, conn_url=conn_url)
842
1016
  return f.get_endpoints(auth=auth, conn_url=conn_url)
843
1017
 
844
1018
 
@@ -848,12 +1022,15 @@ def get_endpoint(
848
1022
  auth: Optional[AUTH] = None,
849
1023
  conn_url: Optional[str] = None,
850
1024
  batcher: Optional[Batcher] = None,
1025
+ is_async: bool = False,
851
1026
  ) -> Endpoint:
852
1027
  """get endpoint struct by hash"""
853
1028
  if batcher is None:
854
1029
  batcher = Config.BATCHER
855
1030
  if batcher is not None:
856
1031
  return batcher.add("getEndpointByHash", result_model=Endpoint)
1032
+ if is_async:
1033
+ return f.get_endpoint_by_hash_async(hash, auth=auth, conn_url=conn_url)
857
1034
  return f.get_endpoint_by_hash(hash, auth=auth, conn_url=conn_url)
858
1035
 
859
1036
 
@@ -863,12 +1040,15 @@ def get_run_endpoint(
863
1040
  auth: Optional[AUTH] = None,
864
1041
  conn_url: Optional[str] = None,
865
1042
  batcher: Optional[Batcher] = None,
1043
+ is_async: bool = False,
866
1044
  ) -> EndpointRunInfo:
867
1045
  """get info for endpoint"""
868
1046
  if batcher is None:
869
1047
  batcher = Config.BATCHER
870
1048
  if batcher is not None:
871
1049
  return batcher.add("getEndpointRun", vars={"hash": hash}, result_model=EndpointRunInfo)
1050
+ if is_async:
1051
+ return f.get_endpoint_run_async(hash, auth=auth, conn_url=conn_url)
872
1052
  return f.get_endpoint_run(hash, auth=auth, conn_url=conn_url)
873
1053
 
874
1054
 
@@ -881,6 +1061,7 @@ def run_endpoint(
881
1061
  auth: Optional[AUTH] = None,
882
1062
  conn_url: Optional[str] = None,
883
1063
  batcher: Optional[Batcher] = None,
1064
+ is_async: bool = False,
884
1065
  ) -> Union[AppLogsWithResults, FlattenAppLogsWithResults, Any]:
885
1066
  """run by endpoint, failed if `taskId`, `cfgId` not set or it is not active"""
886
1067
  if batcher is None:
@@ -891,6 +1072,8 @@ def run_endpoint(
891
1072
  else:
892
1073
  model = AppLogsWithResults
893
1074
  return batcher.add("postEndpointRun", data=endpoint_override, vars={"hash": hash}, result_model=model)
1075
+ if is_async:
1076
+ return f.run_endpoint_async(hash, endpoint_override, with_show=with_show, with_auth=with_auth, auth=auth, conn_url=conn_url)
894
1077
  return f.run_endpoint(hash, endpoint_override, with_show=with_show, with_auth=with_auth, auth=auth, conn_url=conn_url)
895
1078
 
896
1079
 
@@ -910,6 +1093,7 @@ def create_endpoint(
910
1093
  auth: Optional[AUTH] = None,
911
1094
  conn_url: Optional[str] = None,
912
1095
  batcher: Optional[Batcher] = None,
1096
+ is_async: bool = False,
913
1097
  ) -> Alias.Id:
914
1098
  """create endpoint, return hash, url - api/v1/endpoints/run/{hash}. fields may not be initialized - this will only cause an error at startup"""
915
1099
  assert task_id is None or pipeline_id is None, "endpoint should be defined in one way"
@@ -919,6 +1103,8 @@ def create_endpoint(
919
1103
  enableNotAuthorized=enable_not_auth, expectedCollectionsWithSchemes=expected_colls_with_schemes, description=description)
920
1104
  if batcher is not None:
921
1105
  return batcher.add("postEndpointCreate", data=data)
1106
+ if is_async:
1107
+ return f.create_endpoint_async(data, wait=wait, auth=auth, conn_url=conn_url)
922
1108
  return f.create_endpoint(data, wait=wait, auth=auth, conn_url=conn_url)
923
1109
 
924
1110
 
@@ -939,6 +1125,7 @@ def update_endpoint(
939
1125
  auth: Optional[AUTH] = None,
940
1126
  conn_url: Optional[str] = None,
941
1127
  batcher: Optional[Batcher] = None,
1128
+ is_async: bool = False,
942
1129
  ) -> Alias.Id:
943
1130
  """update endpoint, return hash, url - api/v1/endpoints/run/{hash}. update field if it is not None"""
944
1131
  assert task_id is None or pipeline_id is None, "endpoint should be defined in one way"
@@ -948,6 +1135,8 @@ def update_endpoint(
948
1135
  enableNotAuthorized=enable_not_auth, expectedCollectionsWithSchemes=expected_colls_with_schemes, description=description)
949
1136
  if batcher is not None:
950
1137
  return batcher.add("postEndpointUpdate", data=data)
1138
+ if is_async:
1139
+ return f.update_endpoint_async(data, wait=wait, auth=auth, conn_url=conn_url)
951
1140
  return f.update_endpoint(data, wait=wait, auth=auth, conn_url=conn_url)
952
1141
 
953
1142
 
@@ -958,11 +1147,14 @@ def pause_endpoint(
958
1147
  auth: Optional[AUTH] = None,
959
1148
  conn_url: Optional[str] = None,
960
1149
  batcher: Optional[Batcher] = None,
1150
+ is_async: bool = False,
961
1151
  ) -> Alias.Info:
962
1152
  if batcher is None:
963
1153
  batcher = Config.BATCHER
964
1154
  if batcher is not None:
965
1155
  return batcher.add("postEndpointPause", vars={"hash": hash})
1156
+ if is_async:
1157
+ return f.pause_endpoint_async(hash, wait=wait, auth=auth, conn_url=conn_url)
966
1158
  return f.pause_endpoint(hash, wait=wait, auth=auth, conn_url=conn_url)
967
1159
 
968
1160
 
@@ -973,11 +1165,14 @@ def resume_endpoint(
973
1165
  auth: Optional[AUTH] = None,
974
1166
  conn_url: Optional[str] = None,
975
1167
  batcher: Optional[Batcher] = None,
1168
+ is_async: bool = False,
976
1169
  ) -> Alias.Info:
977
1170
  if batcher is None:
978
1171
  batcher = Config.BATCHER
979
1172
  if batcher is not None:
980
1173
  return batcher.add("postEndpointResume", vars={"hash": hash})
1174
+ if is_async:
1175
+ return f.resume_endpoint_async(hash, wait=wait, auth=auth, conn_url=conn_url)
981
1176
  return f.resume_endpoint(hash, wait=wait, auth=auth, conn_url=conn_url)
982
1177
 
983
1178
 
@@ -987,12 +1182,15 @@ def delete_endpoints(
987
1182
  auth: Optional[AUTH] = None,
988
1183
  conn_url: Optional[str] = None,
989
1184
  batcher: Optional[Batcher] = None,
1185
+ is_async: bool = False,
990
1186
  ) -> Alias.Info:
991
1187
  """delete all endpoints"""
992
1188
  if batcher is None:
993
1189
  batcher = Config.BATCHER
994
1190
  if batcher is not None:
995
1191
  return batcher.add("deleteEndpoints")
1192
+ if is_async:
1193
+ return f.delete_endpoints_async(wait=wait, auth=auth, conn_url=conn_url)
996
1194
  return f.delete_endpoints(wait=wait, auth=auth, conn_url=conn_url)
997
1195
 
998
1196
 
@@ -1003,12 +1201,15 @@ def delete_endpoint(
1003
1201
  auth: Optional[AUTH] = None,
1004
1202
  conn_url: Optional[str] = None,
1005
1203
  batcher: Optional[Batcher] = None,
1204
+ is_async: bool = False,
1006
1205
  ) -> Alias.Info:
1007
1206
  """delete endpoint with `hash` """
1008
1207
  if batcher is None:
1009
1208
  batcher = Config.BATCHER
1010
1209
  if batcher is not None:
1011
1210
  return batcher.add("deleteEndpoint", vars={"hash": hash})
1211
+ if is_async:
1212
+ return f.delete_endpoint_async(hash, wait=wait, auth=auth, conn_url=conn_url)
1012
1213
  return f.delete_endpoint(hash, wait=wait, auth=auth, conn_url=conn_url)
1013
1214
 
1014
1215
 
@@ -1020,12 +1221,15 @@ def get_schemes(
1020
1221
  auth: Optional[AUTH] = None,
1021
1222
  conn_url: Optional[str] = None,
1022
1223
  batcher: Optional[Batcher] = None,
1224
+ is_async: bool = False,
1023
1225
  ) -> ResultOwnAndSharedIds:
1024
1226
  """return 2 list: own schemes ids and shared schemes ids"""
1025
1227
  if batcher is None:
1026
1228
  batcher = Config.BATCHER
1027
1229
  if batcher is not None:
1028
1230
  return batcher.add("getSchemes", result_model=ResultOwnAndSharedIds)
1231
+ if is_async:
1232
+ return f.get_schemes_async(auth=auth, conn_url=conn_url)
1029
1233
  return f.get_schemes(auth=auth, conn_url=conn_url)
1030
1234
 
1031
1235
 
@@ -1035,12 +1239,15 @@ def get_scheme(
1035
1239
  auth: Optional[AUTH] = None,
1036
1240
  conn_url: Optional[str] = None,
1037
1241
  batcher: Optional[Batcher] = None,
1242
+ is_async: bool = False,
1038
1243
  ) -> ResultScheme:
1039
1244
  """return scheme by `id` """
1040
1245
  if batcher is None:
1041
1246
  batcher = Config.BATCHER
1042
1247
  if batcher is not None:
1043
1248
  return batcher.add("getSchemeById", vars={"id": id}, result_model=ResultScheme)
1249
+ if is_async:
1250
+ return f.get_schemes_id_async(id, auth=auth, conn_url=conn_url)
1044
1251
  return f.get_schemes_id(id, auth=auth, conn_url=conn_url)
1045
1252
 
1046
1253
 
@@ -1050,12 +1257,15 @@ def get_scheme_raw(
1050
1257
  auth: Optional[AUTH] = None,
1051
1258
  conn_url: Optional[str] = None,
1052
1259
  batcher: Optional[Batcher] = None,
1260
+ is_async: bool = False,
1053
1261
  ) -> Alias.Json:
1054
1262
  """return raw scheme data by `id` """
1055
1263
  if batcher is None:
1056
1264
  batcher = Config.BATCHER
1057
1265
  if batcher is not None:
1058
1266
  return batcher.add("getSchemeRawById", vars={"id": id})
1267
+ if is_async:
1268
+ return f.get_schemes_id_raw_async(id, auth=auth, conn_url=conn_url)
1059
1269
  return f.get_schemes_id_raw(id, auth=auth, conn_url=conn_url)
1060
1270
 
1061
1271
 
@@ -1066,12 +1276,17 @@ def get_schemes_mapping(
1066
1276
  auth: Optional[AUTH] = None,
1067
1277
  conn_url: Optional[str] = None,
1068
1278
  batcher: Optional[Batcher] = None,
1279
+ is_async: bool = False,
1069
1280
  ) -> ResultMapping:
1070
1281
  """return mapping by schemes ids, does not assume if it is not"""
1071
1282
  if batcher is None:
1072
1283
  batcher = Config.BATCHER
1073
1284
  if batcher is not None:
1074
1285
  return batcher.add("getSchemesMapping", vars={"schemeFromId": scheme_from_id, "schemeToId": scheme_to_id}, result_model=ResultMapping)
1286
+ if is_async:
1287
+ return f.get_schemes_mapping_async(
1288
+ scheme_from_id, scheme_to_id, auth=auth, conn_url=conn_url
1289
+ )
1075
1290
  return f.get_schemes_mapping(
1076
1291
  scheme_from_id, scheme_to_id, auth=auth, conn_url=conn_url
1077
1292
  )
@@ -1085,6 +1300,7 @@ def create_scheme(
1085
1300
  auth: Optional[AUTH] = None,
1086
1301
  conn_url: Optional[str] = None,
1087
1302
  batcher: Optional[Batcher] = None,
1303
+ is_async: bool = False,
1088
1304
  ) -> Alias.Id:
1089
1305
  """create scheme\n
1090
1306
  `scheme_data` must be json or dict
@@ -1096,6 +1312,8 @@ def create_scheme(
1096
1312
  data = SchemeWithName(data=scheme_json, name=name)
1097
1313
  if batcher is not None:
1098
1314
  return batcher.add("postScheme", data=data)
1315
+ if is_async:
1316
+ return f.post_schemes_async(data, wait=wait, auth=auth, conn_url=conn_url)
1099
1317
  return f.post_schemes(data, wait=wait, auth=auth, conn_url=conn_url)
1100
1318
 
1101
1319
 
@@ -1108,6 +1326,7 @@ def update_scheme(
1108
1326
  auth: Optional[AUTH] = None,
1109
1327
  conn_url: Optional[str] = None,
1110
1328
  batcher: Optional[Batcher] = None,
1329
+ is_async: bool = False,
1111
1330
  ) -> Alias.Id:
1112
1331
  """update scheme\n
1113
1332
  `scheme_data` must be json or dict
@@ -1119,6 +1338,8 @@ def update_scheme(
1119
1338
  data = SchemeWithName(data=scheme_json, name=name)
1120
1339
  if batcher is not None:
1121
1340
  return batcher.add("postSchemeById", data=data, vars={"id": id})
1341
+ if is_async:
1342
+ return f.post_schemes_id_async(id, data, wait=wait, auth=auth, conn_url=conn_url)
1122
1343
  return f.post_schemes_id(id, data, wait=wait, auth=auth, conn_url=conn_url)
1123
1344
 
1124
1345
 
@@ -1131,6 +1352,7 @@ def create_schemes_mapping(
1131
1352
  auth: Optional[AUTH] = None,
1132
1353
  conn_url: Optional[str] = None,
1133
1354
  batcher: Optional[Batcher] = None,
1355
+ is_async: bool = False,
1134
1356
  ) -> Alias.Id:
1135
1357
  """save mapping between schemes with ids"""
1136
1358
  if batcher is None:
@@ -1140,6 +1362,13 @@ def create_schemes_mapping(
1140
1362
  )
1141
1363
  if batcher is not None:
1142
1364
  return batcher.add("postSchemesFixMapping", data=data)
1365
+ if is_async:
1366
+ return f.post_schemes_mapping_async(
1367
+ data,
1368
+ wait=wait,
1369
+ auth=auth,
1370
+ conn_url=conn_url,
1371
+ )
1143
1372
  return f.post_schemes_mapping(
1144
1373
  data,
1145
1374
  wait=wait,
@@ -1154,12 +1383,15 @@ def delete_schemes(
1154
1383
  auth: Optional[AUTH] = None,
1155
1384
  conn_url: Optional[str] = None,
1156
1385
  batcher: Optional[Batcher] = None,
1386
+ is_async: bool = False,
1157
1387
  ) -> Alias.Info:
1158
1388
  """delete all schemes"""
1159
1389
  if batcher is None:
1160
1390
  batcher = Config.BATCHER
1161
1391
  if batcher is not None:
1162
1392
  return batcher.add("deleteSchemes")
1393
+ if is_async:
1394
+ return f.delete_schemes_async(wait=wait, auth=auth, conn_url=conn_url)
1163
1395
  return f.delete_schemes(wait=wait, auth=auth, conn_url=conn_url)
1164
1396
 
1165
1397
 
@@ -1170,12 +1402,15 @@ def delete_scheme(
1170
1402
  auth: Optional[AUTH] = None,
1171
1403
  conn_url: Optional[str] = None,
1172
1404
  batcher: Optional[Batcher] = None,
1405
+ is_async: bool = False,
1173
1406
  ) -> Alias.Info:
1174
1407
  """delete scheme by `id` """
1175
1408
  if batcher is None:
1176
1409
  batcher = Config.BATCHER
1177
1410
  if batcher is not None:
1178
1411
  return batcher.add("deleteSchemeById", vars={"id": id})
1412
+ if is_async:
1413
+ return f.delete_schemes_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
1179
1414
  return f.delete_schemes_id(id, wait=wait, auth=auth, conn_url=conn_url)
1180
1415
 
1181
1416
 
@@ -1187,6 +1422,7 @@ def delete_schemes_mapping(
1187
1422
  auth: Optional[AUTH] = None,
1188
1423
  conn_url: Optional[str] = None,
1189
1424
  batcher: Optional[Batcher] = None,
1425
+ is_async: bool = False,
1190
1426
  ) -> Alias.Info:
1191
1427
  """delete mapping between schemes with ids"""
1192
1428
  if batcher is None:
@@ -1194,6 +1430,13 @@ def delete_schemes_mapping(
1194
1430
  data = SchemesIds(schemeFromId=scheme_from_id, schemeToId=scheme_to_id)
1195
1431
  if batcher is not None:
1196
1432
  return batcher.add("deleteSchemesMapping", data=data)
1433
+ if is_async:
1434
+ return f.delete_schemes_mapping_async(
1435
+ data,
1436
+ wait=wait,
1437
+ auth=auth,
1438
+ conn_url=conn_url,
1439
+ )
1197
1440
  return f.delete_schemes_mapping(
1198
1441
  data,
1199
1442
  wait=wait,
@@ -1210,12 +1453,15 @@ def check_auth(
1210
1453
  auth: Optional[AUTH] = None,
1211
1454
  conn_url: Optional[str] = None,
1212
1455
  batcher: Optional[Batcher] = None,
1456
+ is_async: bool = False,
1213
1457
  ) -> Alias.Info:
1214
1458
  """check auth in core for current user"""
1215
1459
  if batcher is None:
1216
1460
  batcher = Config.BATCHER
1217
1461
  if batcher is not None:
1218
1462
  return batcher.add("home")
1463
+ if is_async:
1464
+ return f.get_check_auth_async(auth=auth, conn_url=conn_url)
1219
1465
  return f.get_check_auth(auth=auth, conn_url=conn_url)
1220
1466
 
1221
1467
 
@@ -1231,8 +1477,7 @@ def ping(
1231
1477
  return batcher.add("ping")
1232
1478
  if is_async:
1233
1479
  return f.get_ping_async(with_auth=False, conn_url=conn_url)
1234
- else:
1235
- return f.get_ping(with_auth=False, conn_url=conn_url)
1480
+ return f.get_ping(with_auth=False, conn_url=conn_url)
1236
1481
 
1237
1482
  # UserShare
1238
1483
 
@@ -1243,12 +1488,15 @@ def get_shared_collection(
1243
1488
  auth: Optional[AUTH] = None,
1244
1489
  conn_url: Optional[str] = None,
1245
1490
  batcher: Optional[Batcher] = None,
1491
+ is_async: bool = False,
1246
1492
  ) -> ResultLogins:
1247
1493
  """return list logins to which user has given access to the collection with `id` """
1248
1494
  if batcher is None:
1249
1495
  batcher = Config.BATCHER
1250
1496
  if batcher is not None:
1251
1497
  return batcher.add("getShareByCollection", vars={"id": id}, result_model=ResultLogins)
1498
+ if is_async:
1499
+ return f.get_share_collection_id_async(id, auth=auth, conn_url=conn_url)
1252
1500
  return f.get_share_collection_id(id, auth=auth, conn_url=conn_url)
1253
1501
 
1254
1502
 
@@ -1258,12 +1506,15 @@ def get_shared_scheme(
1258
1506
  auth: Optional[AUTH] = None,
1259
1507
  conn_url: Optional[str] = None,
1260
1508
  batcher: Optional[Batcher] = None,
1509
+ is_async: bool = False,
1261
1510
  ) -> ResultLogins:
1262
1511
  """return list logins to which user has given access to the scheme with `id` """
1263
1512
  if batcher is None:
1264
1513
  batcher = Config.BATCHER
1265
1514
  if batcher is not None:
1266
1515
  return batcher.add("getShareByScheme", vars={"id": id}, result_model=ResultLogins)
1516
+ if is_async:
1517
+ return f.get_share_scheme_id_async(id, auth=auth, conn_url=conn_url)
1267
1518
  return f.get_share_scheme_id(id, auth=auth, conn_url=conn_url)
1268
1519
 
1269
1520
 
@@ -1273,12 +1524,15 @@ def get_shared_app(
1273
1524
  auth: Optional[AUTH] = None,
1274
1525
  conn_url: Optional[str] = None,
1275
1526
  batcher: Optional[Batcher] = None,
1527
+ is_async: bool = False,
1276
1528
  ) -> ResultLogins:
1277
1529
  """return list logins to which user has given access to the app with `id` """
1278
1530
  if batcher is None:
1279
1531
  batcher = Config.BATCHER
1280
1532
  if batcher is not None:
1281
1533
  return batcher.add("getShareByUserApp", vars={"id": id}, result_model=ResultLogins)
1534
+ if is_async:
1535
+ return f.get_share_userApp_id_async(id, auth=auth, conn_url=conn_url)
1282
1536
  return f.get_share_userApp_id(id, auth=auth, conn_url=conn_url)
1283
1537
 
1284
1538
 
@@ -1288,12 +1542,15 @@ def get_shared_by_login(
1288
1542
  auth: Optional[AUTH] = None,
1289
1543
  conn_url: Optional[str] = None,
1290
1544
  batcher: Optional[Batcher] = None,
1545
+ is_async: bool = False,
1291
1546
  ) -> ResultSharedForLogin:
1292
1547
  """return structure with all info about share to user with `login` """
1293
1548
  if batcher is None:
1294
1549
  batcher = Config.BATCHER
1295
1550
  if batcher is not None:
1296
1551
  return batcher.add("getShareByLogin", vars={"login": login}, result_model=ResultSharedForLogin)
1552
+ if is_async:
1553
+ return f.get_share_login_async(login, auth=auth, conn_url=conn_url)
1297
1554
  return f.get_share_login(login, auth=auth, conn_url=conn_url)
1298
1555
 
1299
1556
 
@@ -1305,6 +1562,7 @@ def share_collection(
1305
1562
  auth: Optional[AUTH] = None,
1306
1563
  conn_url: Optional[str] = None,
1307
1564
  batcher: Optional[Batcher] = None,
1565
+ is_async: bool = False,
1308
1566
  ) -> Alias.Info:
1309
1567
  """gives access to the collection with `id` to all users with `user_logins` """
1310
1568
  if batcher is None:
@@ -1312,6 +1570,14 @@ def share_collection(
1312
1570
  data = SharedWithUsers(userLogins=user_logins)
1313
1571
  if batcher is not None:
1314
1572
  return batcher.add("postShareByCollection", data=data, vars={"id": id})
1573
+ if is_async:
1574
+ return f.post_share_collection_id_async(
1575
+ id,
1576
+ data,
1577
+ wait=wait,
1578
+ auth=auth,
1579
+ conn_url=conn_url,
1580
+ )
1315
1581
  return f.post_share_collection_id(
1316
1582
  id,
1317
1583
  data,
@@ -1329,6 +1595,7 @@ def share_scheme(
1329
1595
  auth: Optional[AUTH] = None,
1330
1596
  conn_url: Optional[str] = None,
1331
1597
  batcher: Optional[Batcher] = None,
1598
+ is_async: bool = False,
1332
1599
  ) -> Alias.Info:
1333
1600
  """gives access to the scheme with `id` to all users with `user_logins` """
1334
1601
  if batcher is None:
@@ -1336,6 +1603,14 @@ def share_scheme(
1336
1603
  data = SharedWithUsers(userLogins=user_logins)
1337
1604
  if batcher is not None:
1338
1605
  return batcher.add("postShareByScheme", data=data, vars={"id": id})
1606
+ if is_async:
1607
+ return f.post_share_scheme_id_async(
1608
+ id,
1609
+ data,
1610
+ wait=wait,
1611
+ auth=auth,
1612
+ conn_url=conn_url,
1613
+ )
1339
1614
  return f.post_share_scheme_id(
1340
1615
  id,
1341
1616
  data,
@@ -1353,6 +1628,7 @@ def share_app(
1353
1628
  auth: Optional[AUTH] = None,
1354
1629
  conn_url: Optional[str] = None,
1355
1630
  batcher: Optional[Batcher] = None,
1631
+ is_async: bool = False,
1356
1632
  ) -> Alias.Info:
1357
1633
  """gives access to the app with `id` to all users with `user_logins` """
1358
1634
  if batcher is None:
@@ -1360,6 +1636,14 @@ def share_app(
1360
1636
  data = SharedWithUsers(userLogins=user_logins)
1361
1637
  if batcher is not None:
1362
1638
  return batcher.add("postShareByUserApp", data=data, vars={"id": id})
1639
+ if is_async:
1640
+ return f.post_share_userApp_id_async(
1641
+ id,
1642
+ data,
1643
+ wait=wait,
1644
+ auth=auth,
1645
+ conn_url=conn_url,
1646
+ )
1363
1647
  return f.post_share_userApp_id(
1364
1648
  id,
1365
1649
  data,
@@ -1379,6 +1663,7 @@ def share(
1379
1663
  auth: Optional[AUTH] = None,
1380
1664
  conn_url: Optional[str] = None,
1381
1665
  batcher: Optional[Batcher] = None,
1666
+ is_async: bool = False,
1382
1667
  ) -> Alias.Info:
1383
1668
  """gives access to everything listed to all users with `user_logins` """
1384
1669
  assert user_logins is not None, '"user_logins" is empty'
@@ -1395,6 +1680,13 @@ def share(
1395
1680
  )
1396
1681
  if batcher is not None:
1397
1682
  return batcher.add("postShare", data=data)
1683
+ if is_async:
1684
+ return f.post_share_async(
1685
+ data,
1686
+ wait=wait,
1687
+ auth=auth,
1688
+ conn_url=conn_url,
1689
+ )
1398
1690
  return f.post_share(
1399
1691
  data,
1400
1692
  wait=wait,
@@ -1413,6 +1705,7 @@ def delete_shared(
1413
1705
  auth: Optional[AUTH] = None,
1414
1706
  conn_url: Optional[str] = None,
1415
1707
  batcher: Optional[Batcher] = None,
1708
+ is_async: bool = False,
1416
1709
  ) -> Alias.Info:
1417
1710
  """removes access to everything listed to all users with `user_logins` """
1418
1711
  assert user_logins is not None, '"user_logins" is empty'
@@ -1429,6 +1722,13 @@ def delete_shared(
1429
1722
  )
1430
1723
  if batcher is not None:
1431
1724
  return batcher.add("deleteShare", data=data)
1725
+ if is_async:
1726
+ return f.delete_share_async(
1727
+ data,
1728
+ wait=wait,
1729
+ auth=auth,
1730
+ conn_url=conn_url,
1731
+ )
1432
1732
  return f.delete_share(
1433
1733
  data,
1434
1734
  wait=wait,
@@ -1443,12 +1743,15 @@ def delete_shared_all(
1443
1743
  auth: Optional[AUTH] = None,
1444
1744
  conn_url: Optional[str] = None,
1445
1745
  batcher: Optional[Batcher] = None,
1746
+ is_async: bool = False,
1446
1747
  ) -> Alias.Info:
1447
1748
  """removes access to everything for all for current user"""
1448
1749
  if batcher is None:
1449
1750
  batcher = Config.BATCHER
1450
1751
  if batcher is not None:
1451
1752
  return batcher.add("deleteShareAll")
1753
+ if is_async:
1754
+ return f.delete_share_all_async(wait=wait, auth=auth, conn_url=conn_url)
1452
1755
  return f.delete_share_all(wait=wait, auth=auth, conn_url=conn_url)
1453
1756
 
1454
1757
 
@@ -1461,12 +1764,15 @@ def get_user(
1461
1764
  auth: Optional[AUTH] = None,
1462
1765
  conn_url: Optional[str] = None,
1463
1766
  batcher: Optional[Batcher] = None,
1767
+ is_async: bool = False,
1464
1768
  ) -> Alias.Info:
1465
1769
  """admin: displays saved information about the user"""
1466
1770
  if batcher is None:
1467
1771
  batcher = Config.BATCHER
1468
1772
  if batcher is not None:
1469
1773
  return batcher.add("getRegisterByLogin", vars={"login": login})
1774
+ if is_async:
1775
+ return f.get_register_login_async(login, auth=auth, conn_url=conn_url)
1470
1776
  return f.get_register_login(login, auth=auth, conn_url=conn_url)
1471
1777
 
1472
1778
 
@@ -1475,12 +1781,15 @@ def get_users(
1475
1781
  auth: Optional[AUTH] = None,
1476
1782
  conn_url: Optional[str] = None,
1477
1783
  batcher: Optional[Batcher] = None,
1784
+ is_async: bool = False,
1478
1785
  ) -> ResultLogins:
1479
1786
  """admin: returns a list of all logins"""
1480
1787
  if batcher is None:
1481
1788
  batcher = Config.BATCHER
1482
1789
  if batcher is not None:
1483
1790
  return batcher.add("getRegisterAll", result_model=ResultLogins)
1791
+ if is_async:
1792
+ return f.get_register_all_async(auth=auth, conn_url=conn_url)
1484
1793
  return f.get_register_all(auth=auth, conn_url=conn_url)
1485
1794
 
1486
1795
 
@@ -1491,6 +1800,7 @@ def create_user(
1491
1800
  auth: Optional[AUTH] = None,
1492
1801
  conn_url: Optional[str] = None,
1493
1802
  batcher: Optional[Batcher] = None,
1803
+ is_async: bool = False,
1494
1804
  ) -> Alias.Info:
1495
1805
  """create user in malevich-core, all operations will continue on his behalf"""
1496
1806
  if batcher is None:
@@ -1498,6 +1808,8 @@ def create_user(
1498
1808
  data = User(login=login, password=password)
1499
1809
  if batcher is not None:
1500
1810
  return batcher.add("postRegister", data=data)
1811
+ if is_async:
1812
+ return f.post_register_async(data, auth=auth, conn_url=conn_url)
1501
1813
  return f.post_register(data, auth=auth, conn_url=conn_url)
1502
1814
 
1503
1815
 
@@ -1508,12 +1820,15 @@ def delete_user_login(
1508
1820
  auth: Optional[AUTH] = None,
1509
1821
  conn_url: Optional[str] = None,
1510
1822
  batcher: Optional[Batcher] = None,
1823
+ is_async: bool = False,
1511
1824
  ) -> None:
1512
1825
  """admin: delete user by `login` """
1513
1826
  if batcher is None:
1514
1827
  batcher = Config.BATCHER
1515
1828
  if batcher is not None:
1516
1829
  return batcher.add("deleteRegisterByLogin", vars={"login": login})
1830
+ if is_async:
1831
+ f.delete_register_login_async(login, wait=wait, auth=auth, conn_url=conn_url)
1517
1832
  f.delete_register_login(login, wait=wait, auth=auth, conn_url=conn_url)
1518
1833
 
1519
1834
 
@@ -1522,12 +1837,15 @@ def delete_user(
1522
1837
  auth: Optional[AUTH] = None,
1523
1838
  conn_url: Optional[str] = None,
1524
1839
  batcher: Optional[Batcher] = None,
1840
+ is_async: bool = False,
1525
1841
  ) -> Alias.Info:
1526
1842
  """delete current user, not raise if user not exist"""
1527
1843
  if batcher is None:
1528
1844
  batcher = Config.BATCHER
1529
1845
  if batcher is not None:
1530
1846
  return batcher.add("deleteRegister")
1847
+ if is_async:
1848
+ return f.delete_register_async(auth=auth, conn_url=conn_url)
1531
1849
  return f.delete_register(auth=auth, conn_url=conn_url)
1532
1850
 
1533
1851
 
@@ -1539,12 +1857,15 @@ def get_apps(
1539
1857
  auth: Optional[AUTH] = None,
1540
1858
  conn_url: Optional[str] = None,
1541
1859
  batcher: Optional[Batcher] = None,
1860
+ is_async: bool = False,
1542
1861
  ) -> ResultOwnAndSharedIds:
1543
1862
  """return apps ids for current user"""
1544
1863
  if batcher is None:
1545
1864
  batcher = Config.BATCHER
1546
1865
  if batcher is not None:
1547
1866
  return batcher.add("getApps", result_model=ResultOwnAndSharedIds)
1867
+ if is_async:
1868
+ return f.get_userApps_async(auth=auth, conn_url=conn_url)
1548
1869
  return f.get_userApps(auth=auth, conn_url=conn_url)
1549
1870
 
1550
1871
 
@@ -1553,12 +1874,15 @@ def get_apps_real(
1553
1874
  auth: Optional[AUTH] = None,
1554
1875
  conn_url: Optional[str] = None,
1555
1876
  batcher: Optional[Batcher] = None,
1877
+ is_async: bool = False,
1556
1878
  ) -> ResultOwnAndSharedIds:
1557
1879
  """return apps real ids for current user"""
1558
1880
  if batcher is None:
1559
1881
  batcher = Config.BATCHER
1560
1882
  if batcher is not None:
1561
1883
  return batcher.add("getAppsReal", result_model=ResultOwnAndSharedIds)
1884
+ if is_async:
1885
+ return f.get_userApps_realIds_async(auth=auth, conn_url=conn_url)
1562
1886
  return f.get_userApps_realIds(auth=auth, conn_url=conn_url)
1563
1887
 
1564
1888
 
@@ -1567,12 +1891,15 @@ def get_apps_map(
1567
1891
  auth: Optional[AUTH] = None,
1568
1892
  conn_url: Optional[str] = None,
1569
1893
  batcher: Optional[Batcher] = None,
1894
+ is_async: bool = False,
1570
1895
  ) -> ResultOwnAndSharedIdsMap:
1571
1896
  """return apps ids with real ids for current user"""
1572
1897
  if batcher is None:
1573
1898
  batcher = Config.BATCHER
1574
1899
  if batcher is not None:
1575
1900
  return batcher.add("getAppsMapIds", result_model=ResultOwnAndSharedIdsMap)
1901
+ if is_async:
1902
+ return f.get_userApps_mapIds_async(auth=auth, conn_url=conn_url)
1576
1903
  return f.get_userApps_mapIds(auth=auth, conn_url=conn_url)
1577
1904
 
1578
1905
 
@@ -1582,12 +1909,15 @@ def get_app_map(
1582
1909
  auth: Optional[AUTH] = None,
1583
1910
  conn_url: Optional[str] = None,
1584
1911
  batcher: Optional[Batcher] = None,
1912
+ is_async: bool = False,
1585
1913
  ) -> Alias.Id:
1586
1914
  """return real id by app id for current user"""
1587
1915
  if batcher is None:
1588
1916
  batcher = Config.BATCHER
1589
1917
  if batcher is not None:
1590
1918
  return batcher.add("getAppsMapIdsById", vars={"id": id})
1919
+ if is_async:
1920
+ return f.get_userApps_mapId_async(id, auth=auth, conn_url=conn_url)
1591
1921
  return f.get_userApps_mapId(id, auth=auth, conn_url=conn_url)
1592
1922
 
1593
1923
 
@@ -1596,13 +1926,16 @@ def get_app(
1596
1926
  *,
1597
1927
  auth: Optional[AUTH] = None,
1598
1928
  conn_url: Optional[str] = None,
1599
- batcher: Optional[Batcher] = None
1929
+ batcher: Optional[Batcher] = None,
1930
+ is_async: bool = False,
1600
1931
  ) -> UserApp:
1601
1932
  """return app by `id` """
1602
1933
  if batcher is None:
1603
1934
  batcher = Config.BATCHER
1604
1935
  if batcher is not None:
1605
1936
  return batcher.add("getAppById", vars={"id": id}, result_model=UserApp)
1937
+ if is_async:
1938
+ return f.get_userApps_id_async(id, auth=auth, conn_url=conn_url)
1606
1939
  return f.get_userApps_id(id, auth=auth, conn_url=conn_url)
1607
1940
 
1608
1941
 
@@ -1612,12 +1945,15 @@ def get_app_real(
1612
1945
  auth: Optional[AUTH] = None,
1613
1946
  conn_url: Optional[str] = None,
1614
1947
  batcher: Optional[Batcher] = None,
1948
+ is_async: bool = False,
1615
1949
  ) -> UserApp:
1616
1950
  """return app by real `id` """
1617
1951
  if batcher is None:
1618
1952
  batcher = Config.BATCHER
1619
1953
  if batcher is not None:
1620
1954
  return batcher.add("getAppByRealId", vars={"id": id}, result_model=UserApp)
1955
+ if is_async:
1956
+ return f.get_userApps_realId_async(id, auth=auth, conn_url=conn_url)
1621
1957
  return f.get_userApps_realId(id, auth=auth, conn_url=conn_url)
1622
1958
 
1623
1959
 
@@ -1638,6 +1974,7 @@ def create_app(
1638
1974
  auth: Optional[AUTH] = None,
1639
1975
  conn_url: Optional[str] = None,
1640
1976
  batcher: Optional[Batcher] = None,
1977
+ is_async: bool = False,
1641
1978
  ) -> Alias.Id:
1642
1979
  """create app\n
1643
1980
  `app_cfg` must be json or dict or None\n
@@ -1671,6 +2008,8 @@ def create_app(
1671
2008
  )
1672
2009
  if batcher is not None:
1673
2010
  return batcher.add("postApp", data=data)
2011
+ if is_async:
2012
+ return f.post_userApps_async(data, wait=wait, auth=auth, conn_url=conn_url)
1674
2013
  return f.post_userApps(data, wait=wait, auth=auth, conn_url=conn_url)
1675
2014
 
1676
2015
 
@@ -1692,6 +2031,7 @@ def update_app(
1692
2031
  auth: Optional[AUTH] = None,
1693
2032
  conn_url: Optional[str] = None,
1694
2033
  batcher: Optional[Batcher] = None,
2034
+ is_async: bool = False,
1695
2035
  ) -> Alias.Info:
1696
2036
  """update app by `id`\n
1697
2037
  `app_cfg` must be json or dict or None"""
@@ -1724,6 +2064,8 @@ def update_app(
1724
2064
  )
1725
2065
  if batcher is not None:
1726
2066
  return batcher.add("postAppById", data=data, vars={"id": id})
2067
+ if is_async:
2068
+ return f.post_userApps_id_async(id, data, wait=wait, auth=auth, conn_url=conn_url)
1727
2069
  return f.post_userApps_id(id, data, wait=wait, auth=auth, conn_url=conn_url)
1728
2070
 
1729
2071
 
@@ -1733,12 +2075,15 @@ def delete_apps(
1733
2075
  auth: Optional[AUTH] = None,
1734
2076
  conn_url: Optional[str] = None,
1735
2077
  batcher: Optional[Batcher] = None,
2078
+ is_async: bool = False,
1736
2079
  ) -> Alias.Info:
1737
2080
  """delete all user apps"""
1738
2081
  if batcher is None:
1739
2082
  batcher = Config.BATCHER
1740
2083
  if batcher is not None:
1741
2084
  return batcher.add("deleteApps")
2085
+ if is_async:
2086
+ return f.delete_userApps_async(wait=wait, auth=auth, conn_url=conn_url)
1742
2087
  return f.delete_userApps(wait=wait, auth=auth, conn_url=conn_url)
1743
2088
 
1744
2089
 
@@ -1749,12 +2094,15 @@ def delete_app(
1749
2094
  auth: Optional[AUTH] = None,
1750
2095
  conn_url: Optional[str] = None,
1751
2096
  batcher: Optional[Batcher] = None,
2097
+ is_async: bool = False,
1752
2098
  ) -> Alias.Info:
1753
2099
  """delete user app by `id` """
1754
2100
  if batcher is None:
1755
2101
  batcher = Config.BATCHER
1756
2102
  if batcher is not None:
1757
2103
  return batcher.add("deleteAppById", vars={"id": id})
2104
+ if is_async:
2105
+ return f.delete_userApps_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
1758
2106
  return f.delete_userApps_id(id, wait=wait, auth=auth, conn_url=conn_url)
1759
2107
 
1760
2108
 
@@ -1766,12 +2114,15 @@ def get_tasks(
1766
2114
  auth: Optional[AUTH] = None,
1767
2115
  conn_url: Optional[str] = None,
1768
2116
  batcher: Optional[Batcher] = None,
2117
+ is_async: bool = False,
1769
2118
  ) -> ResultIds:
1770
2119
  """return tasks ids for current user"""
1771
2120
  if batcher is None:
1772
2121
  batcher = Config.BATCHER
1773
2122
  if batcher is not None:
1774
2123
  return batcher.add("getTasks", result_model=ResultIds)
2124
+ if is_async:
2125
+ return f.get_userTasks(auth=auth, conn_url=conn_url)
1775
2126
  return f.get_userTasks(auth=auth, conn_url=conn_url)
1776
2127
 
1777
2128
 
@@ -1780,12 +2131,15 @@ def get_tasks_real(
1780
2131
  auth: Optional[AUTH] = None,
1781
2132
  conn_url: Optional[str] = None,
1782
2133
  batcher: Optional[Batcher] = None,
2134
+ is_async: bool = False,
1783
2135
  ) -> ResultIds:
1784
2136
  """return tasks real ids for current user"""
1785
2137
  if batcher is None:
1786
2138
  batcher = Config.BATCHER
1787
2139
  if batcher is not None:
1788
2140
  return batcher.add("getTasksReal", result_model=ResultIds)
2141
+ if is_async:
2142
+ return f.get_userTasks_realIds_async(auth=auth, conn_url=conn_url)
1789
2143
  return f.get_userTasks_realIds(auth=auth, conn_url=conn_url)
1790
2144
 
1791
2145
 
@@ -1794,12 +2148,15 @@ def get_tasks_map(
1794
2148
  auth: Optional[AUTH] = None,
1795
2149
  conn_url: Optional[str] = None,
1796
2150
  batcher: Optional[Batcher] = None,
2151
+ is_async: bool = False,
1797
2152
  ) -> ResultIdsMap:
1798
2153
  """return tasks ids with real ids for current user"""
1799
2154
  if batcher is None:
1800
2155
  batcher = Config.BATCHER
1801
2156
  if batcher is not None:
1802
2157
  return batcher.add("getTasksMapIds", result_model=ResultIdsMap)
2158
+ if is_async:
2159
+ return f.get_userTasks_mapIds_async(auth=auth, conn_url=conn_url)
1803
2160
  return f.get_userTasks_mapIds(auth=auth, conn_url=conn_url)
1804
2161
 
1805
2162
 
@@ -1809,12 +2166,15 @@ def get_task_map(
1809
2166
  auth: Optional[AUTH] = None,
1810
2167
  conn_url: Optional[str] = None,
1811
2168
  batcher: Optional[Batcher] = None,
2169
+ is_async: bool = False,
1812
2170
  ) -> Alias.Id:
1813
2171
  """return real id by task id for current user"""
1814
2172
  if batcher is None:
1815
2173
  batcher = Config.BATCHER
1816
2174
  if batcher is not None:
1817
2175
  return batcher.add("getTasksMapIdsById", vars={"id": id})
2176
+ if is_async:
2177
+ return f.get_userTasks_mapId_async(id, auth=auth, conn_url=conn_url)
1818
2178
  return f.get_userTasks_mapId(id, auth=auth, conn_url=conn_url)
1819
2179
 
1820
2180
 
@@ -1824,12 +2184,15 @@ def get_task(
1824
2184
  auth: Optional[AUTH] = None,
1825
2185
  conn_url: Optional[str] = None,
1826
2186
  batcher: Optional[Batcher] = None,
2187
+ is_async: bool = False,
1827
2188
  ) -> UserTask:
1828
2189
  """return task by `id` """
1829
2190
  if batcher is None:
1830
2191
  batcher = Config.BATCHER
1831
2192
  if batcher is not None:
1832
2193
  return batcher.add("getTaskById", vars={"id": id}, result_model=UserTask)
2194
+ if is_async:
2195
+ return f.get_userTasks_id_async(id, auth=auth, conn_url=conn_url)
1833
2196
  return f.get_userTasks_id(id, auth=auth, conn_url=conn_url)
1834
2197
 
1835
2198
 
@@ -1839,12 +2202,15 @@ def get_task_real(
1839
2202
  auth: Optional[AUTH] = None,
1840
2203
  conn_url: Optional[str] = None,
1841
2204
  batcher: Optional[Batcher] = None,
2205
+ is_async: bool = False,
1842
2206
  ) -> UserTask:
1843
2207
  """return task by real `id` """
1844
2208
  if batcher is None:
1845
2209
  batcher = Config.BATCHER
1846
2210
  if batcher is not None:
1847
2211
  return batcher.add("getTaskByRealId", vars={"id": id}, result_model=UserTask)
2212
+ if is_async:
2213
+ return f.get_userTasks_realId_async(id, auth=auth, conn_url=conn_url)
1848
2214
  return f.get_userTasks_realId(id, auth=auth, conn_url=conn_url)
1849
2215
 
1850
2216
 
@@ -1859,6 +2225,7 @@ def create_task(
1859
2225
  auth: Optional[AUTH] = None,
1860
2226
  conn_url: Optional[str] = None,
1861
2227
  batcher: Optional[Batcher] = None,
2228
+ is_async: bool = False,
1862
2229
  ) -> Alias.Id:
1863
2230
  """create task"""
1864
2231
  if synthetic:
@@ -1880,6 +2247,8 @@ def create_task(
1880
2247
  )
1881
2248
  if batcher is not None:
1882
2249
  return batcher.add("postTask", data=data)
2250
+ if is_async:
2251
+ return f.post_userTasks_async(data, wait=wait, auth=auth, conn_url=conn_url)
1883
2252
  return f.post_userTasks(data, wait=wait, auth=auth, conn_url=conn_url)
1884
2253
 
1885
2254
 
@@ -1894,6 +2263,7 @@ def update_task(
1894
2263
  auth: Optional[AUTH] = None,
1895
2264
  conn_url: Optional[str] = None,
1896
2265
  batcher: Optional[Batcher] = None,
2266
+ is_async: bool = False,
1897
2267
  ) -> Alias.Info:
1898
2268
  """update task by `id` """
1899
2269
  if batcher is None:
@@ -1910,6 +2280,8 @@ def update_task(
1910
2280
  )
1911
2281
  if batcher is not None:
1912
2282
  return batcher.add("postTaskById", data=data, vars={"id": id})
2283
+ if is_async:
2284
+ return f.post_userTasks_id_async(id, data, wait=wait, auth=auth, conn_url=conn_url)
1913
2285
  return f.post_userTasks_id(id, data, wait=wait, auth=auth, conn_url=conn_url)
1914
2286
 
1915
2287
 
@@ -1919,12 +2291,15 @@ def delete_tasks(
1919
2291
  auth: Optional[AUTH] = None,
1920
2292
  conn_url: Optional[str] = None,
1921
2293
  batcher: Optional[Batcher] = None,
2294
+ is_async: bool = False,
1922
2295
  ) -> Alias.Info:
1923
2296
  """delete all user tasks"""
1924
2297
  if batcher is None:
1925
2298
  batcher = Config.BATCHER
1926
2299
  if batcher is not None:
1927
2300
  return batcher.add("deleteTasks")
2301
+ if is_async:
2302
+ return f.delete_userTasks_async(wait=wait, auth=auth, conn_url=conn_url)
1928
2303
  return f.delete_userTasks(wait=wait, auth=auth, conn_url=conn_url)
1929
2304
 
1930
2305
 
@@ -1935,12 +2310,15 @@ def delete_task(
1935
2310
  auth: Optional[AUTH] = None,
1936
2311
  conn_url: Optional[str] = None,
1937
2312
  batcher: Optional[Batcher] = None,
2313
+ is_async: bool = False,
1938
2314
  ) -> Alias.Info:
1939
2315
  """delete user task by `id` """
1940
2316
  if batcher is None:
1941
2317
  batcher = Config.BATCHER
1942
2318
  if batcher is not None:
1943
2319
  return batcher.add("deleteTaskById", vars={"id": id})
2320
+ if is_async:
2321
+ return f.delete_userTasks_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
1944
2322
  return f.delete_userTasks_id(id, wait=wait, auth=auth, conn_url=conn_url)
1945
2323
 
1946
2324
 
@@ -1952,12 +2330,15 @@ def get_pipelines(
1952
2330
  auth: Optional[AUTH] = None,
1953
2331
  conn_url: Optional[str] = None,
1954
2332
  batcher: Optional[Batcher] = None,
2333
+ is_async: bool = False,
1955
2334
  ) -> ResultIds:
1956
2335
  """return pipelines ids for current user"""
1957
2336
  if batcher is None:
1958
2337
  batcher = Config.BATCHER
1959
2338
  if batcher is not None:
1960
2339
  return batcher.add("getPipelines", result_model=ResultIds)
2340
+ if is_async:
2341
+ return f.get_userPipelines_async(auth=auth, conn_url=conn_url)
1961
2342
  return f.get_userPipelines(auth=auth, conn_url=conn_url)
1962
2343
 
1963
2344
 
@@ -1966,12 +2347,15 @@ def get_pipelines_real(
1966
2347
  auth: Optional[AUTH] = None,
1967
2348
  conn_url: Optional[str] = None,
1968
2349
  batcher: Optional[Batcher] = None,
2350
+ is_async: bool = False,
1969
2351
  ) -> ResultIds:
1970
2352
  """return pipelines real ids for current user"""
1971
2353
  if batcher is None:
1972
2354
  batcher = Config.BATCHER
1973
2355
  if batcher is not None:
1974
2356
  return batcher.add("getPipelinesReal", result_model=ResultIds)
2357
+ if is_async:
2358
+ return f.get_userPipelines_realIds_async(auth=auth, conn_url=conn_url)
1975
2359
  return f.get_userPipelines_realIds(auth=auth, conn_url=conn_url)
1976
2360
 
1977
2361
 
@@ -1980,12 +2364,15 @@ def get_pipelines_map(
1980
2364
  auth: Optional[AUTH] = None,
1981
2365
  conn_url: Optional[str] = None,
1982
2366
  batcher: Optional[Batcher] = None,
2367
+ is_async: bool = False,
1983
2368
  ) -> ResultIdsMap:
1984
2369
  """return pipelines ids with real ids for current user"""
1985
2370
  if batcher is None:
1986
2371
  batcher = Config.BATCHER
1987
2372
  if batcher is not None:
1988
2373
  return batcher.add("getPipelinesMapIds", result_model=ResultIdsMap)
2374
+ if is_async:
2375
+ return f.get_userPipelines_mapIds_async(auth=auth, conn_url=conn_url)
1989
2376
  return f.get_userPipelines_mapIds(auth=auth, conn_url=conn_url)
1990
2377
 
1991
2378
 
@@ -1995,12 +2382,15 @@ def get_pipeline_map(
1995
2382
  auth: Optional[AUTH] = None,
1996
2383
  conn_url: Optional[str] = None,
1997
2384
  batcher: Optional[Batcher] = None,
2385
+ is_async: bool = False,
1998
2386
  ) -> Alias.Id:
1999
2387
  """return real id by pipeline id for current user"""
2000
2388
  if batcher is None:
2001
2389
  batcher = Config.BATCHER
2002
2390
  if batcher is not None:
2003
2391
  return batcher.add("getPipelinesMapIdsById", vars={"id": id})
2392
+ if is_async:
2393
+ return f.get_userPipelines_mapId_async(id, auth=auth, conn_url=conn_url)
2004
2394
  return f.get_userPipelines_mapId(id, auth=auth, conn_url=conn_url)
2005
2395
 
2006
2396
 
@@ -2010,12 +2400,15 @@ def get_pipeline(
2010
2400
  auth: Optional[AUTH] = None,
2011
2401
  conn_url: Optional[str] = None,
2012
2402
  batcher: Optional[Batcher] = None,
2403
+ is_async: bool = False,
2013
2404
  ) -> Pipeline:
2014
2405
  """return pipeline by `id` """
2015
2406
  if batcher is None:
2016
2407
  batcher = Config.BATCHER
2017
2408
  if batcher is not None:
2018
2409
  return batcher.add("getPipelineById", vars={"id": id}, result_model=Pipeline)
2410
+ if is_async:
2411
+ return f.get_userPipelines_id_async(id, auth=auth, conn_url=conn_url)
2019
2412
  return f.get_userPipelines_id(id, auth=auth, conn_url=conn_url)
2020
2413
 
2021
2414
 
@@ -2025,12 +2418,15 @@ def get_pipeline_real(
2025
2418
  auth: Optional[AUTH] = None,
2026
2419
  conn_url: Optional[str] = None,
2027
2420
  batcher: Optional[Batcher] = None,
2421
+ is_async: bool = False,
2028
2422
  ) -> Pipeline:
2029
2423
  """return pipeline by real `id` """
2030
2424
  if batcher is None:
2031
2425
  batcher = Config.BATCHER
2032
2426
  if batcher is not None:
2033
2427
  return batcher.add("getPipelineByRealId", vars={"id": id}, result_model=Pipeline)
2428
+ if is_async:
2429
+ return f.get_userPipelines_realId_async(id, auth=auth, conn_url=conn_url)
2034
2430
  return f.get_userPipelines_realId(id, auth=auth, conn_url=conn_url)
2035
2431
 
2036
2432
 
@@ -2045,6 +2441,7 @@ def create_pipeline(
2045
2441
  auth: Optional[AUTH] = None,
2046
2442
  conn_url: Optional[str] = None,
2047
2443
  batcher: Optional[Batcher] = None,
2444
+ is_async: bool = False,
2048
2445
  ) -> Alias.Id:
2049
2446
  """create pipeline"""
2050
2447
  if batcher is None:
@@ -2064,6 +2461,8 @@ def create_pipeline(
2064
2461
  ).internal()
2065
2462
  if batcher is not None:
2066
2463
  return batcher.add("postPipeline", data=data)
2464
+ if is_async:
2465
+ return f.post_userPipelines_async(data, wait=wait, auth=auth, conn_url=conn_url)
2067
2466
  return f.post_userPipelines(data, wait=wait, auth=auth, conn_url=conn_url)
2068
2467
 
2069
2468
 
@@ -2079,6 +2478,7 @@ def update_pipeline(
2079
2478
  auth: Optional[AUTH] = None,
2080
2479
  conn_url: Optional[str] = None,
2081
2480
  batcher: Optional[Batcher] = None,
2481
+ is_async: bool = False,
2082
2482
  ) -> Alias.Info:
2083
2483
  """update pipeline by `id` """
2084
2484
  if batcher is None:
@@ -2098,6 +2498,8 @@ def update_pipeline(
2098
2498
  ).internal()
2099
2499
  if batcher is not None:
2100
2500
  return batcher.add("postPipelineById", data=data, vars={"id": id})
2501
+ if is_async:
2502
+ return f.post_userPipelines_id_async(id, data, wait=wait, auth=auth, conn_url=conn_url)
2101
2503
  return f.post_userPipelines_id(id, data, wait=wait, auth=auth, conn_url=conn_url)
2102
2504
 
2103
2505
 
@@ -2107,12 +2509,15 @@ def delete_pipelines(
2107
2509
  auth: Optional[AUTH] = None,
2108
2510
  conn_url: Optional[str] = None,
2109
2511
  batcher: Optional[Batcher] = None,
2512
+ is_async: bool = False,
2110
2513
  ) -> Alias.Info:
2111
2514
  """delete all user pipelines"""
2112
2515
  if batcher is None:
2113
2516
  batcher = Config.BATCHER
2114
2517
  if batcher is not None:
2115
2518
  return batcher.add("deletePipelines")
2519
+ if is_async:
2520
+ return f.delete_userPipelines_async(wait=wait, auth=auth, conn_url=conn_url)
2116
2521
  return f.delete_userPipelines(wait=wait, auth=auth, conn_url=conn_url)
2117
2522
 
2118
2523
 
@@ -2123,12 +2528,15 @@ def delete_pipeline(
2123
2528
  auth: Optional[AUTH] = None,
2124
2529
  conn_url: Optional[str] = None,
2125
2530
  batcher: Optional[Batcher] = None,
2531
+ is_async: bool = False,
2126
2532
  ) -> Alias.Info:
2127
2533
  """delete user pipeline by `id` """
2128
2534
  if batcher is None:
2129
2535
  batcher = Config.BATCHER
2130
2536
  if batcher is not None:
2131
2537
  return batcher.add("deletePipelineById", vars={"id": id})
2538
+ if is_async:
2539
+ return f.delete_userPipelines_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
2132
2540
  return f.delete_userPipelines_id(id, wait=wait, auth=auth, conn_url=conn_url)
2133
2541
 
2134
2542
 
@@ -2140,12 +2548,15 @@ def get_cfgs(
2140
2548
  auth: Optional[AUTH] = None,
2141
2549
  conn_url: Optional[str] = None,
2142
2550
  batcher: Optional[Batcher] = None,
2551
+ is_async: bool = False,
2143
2552
  ) -> ResultIds:
2144
2553
  """return cfgs ids for current user"""
2145
2554
  if batcher is None:
2146
2555
  batcher = Config.BATCHER
2147
2556
  if batcher is not None:
2148
2557
  return batcher.add("getCfgs", result_model=ResultIds)
2558
+ if is_async:
2559
+ return f.get_userCfgs_async(auth=auth, conn_url=conn_url)
2149
2560
  return f.get_userCfgs(auth=auth, conn_url=conn_url)
2150
2561
 
2151
2562
 
@@ -2154,12 +2565,15 @@ def get_cfgs_real(
2154
2565
  auth: Optional[AUTH] = None,
2155
2566
  conn_url: Optional[str] = None,
2156
2567
  batcher: Optional[Batcher] = None,
2568
+ is_async: bool = False,
2157
2569
  ) -> ResultIds:
2158
2570
  """return cfgs real ids for current user"""
2159
2571
  if batcher is None:
2160
2572
  batcher = Config.BATCHER
2161
2573
  if batcher is not None:
2162
2574
  return batcher.add("getCfgsReal", result_model=ResultIds)
2575
+ if is_async:
2576
+ return f.get_userCfgs_realIds_async(auth=auth, conn_url=conn_url)
2163
2577
  return f.get_userCfgs_realIds(auth=auth, conn_url=conn_url)
2164
2578
 
2165
2579
 
@@ -2168,12 +2582,15 @@ def get_cfgs_map(
2168
2582
  auth: Optional[AUTH] = None,
2169
2583
  conn_url: Optional[str] = None,
2170
2584
  batcher: Optional[Batcher] = None,
2585
+ is_async: bool = False,
2171
2586
  ) -> ResultIdsMap:
2172
2587
  """return cfgs ids with real ids for current user"""
2173
2588
  if batcher is None:
2174
2589
  batcher = Config.BATCHER
2175
2590
  if batcher is not None:
2176
2591
  return batcher.add("getCfgsMapIds", result_model=ResultIdsMap)
2592
+ if is_async:
2593
+ return f.get_userCfgs_mapIds_async(auth=auth, conn_url=conn_url)
2177
2594
  return f.get_userCfgs_mapIds(auth=auth, conn_url=conn_url)
2178
2595
 
2179
2596
 
@@ -2184,12 +2601,15 @@ def get_cfg_map(
2184
2601
  auth: Optional[AUTH] = None,
2185
2602
  conn_url: Optional[str] = None,
2186
2603
  batcher: Optional[Batcher] = None,
2604
+ is_async: bool = False,
2187
2605
  ) -> Alias.Id:
2188
2606
  """return real id by cfg id for current user"""
2189
2607
  if batcher is None:
2190
2608
  batcher = Config.BATCHER
2191
2609
  if batcher is not None:
2192
2610
  return batcher.add("getCfgsMapIdsById", vars={"id": id})
2611
+ if is_async:
2612
+ return f.get_userCfgs_mapId_async(id, auth=auth, conn_url=conn_url)
2193
2613
  return f.get_userCfgs_mapId(id, auth=auth, conn_url=conn_url)
2194
2614
 
2195
2615
 
@@ -2199,12 +2619,15 @@ def get_cfg(
2199
2619
  auth: Optional[AUTH] = None,
2200
2620
  conn_url: Optional[str] = None,
2201
2621
  batcher: Optional[Batcher] = None,
2622
+ is_async: bool = False,
2202
2623
  ) -> ResultUserCfg:
2203
2624
  """return cfg by `id` """
2204
2625
  if batcher is None:
2205
2626
  batcher = Config.BATCHER
2206
2627
  if batcher is not None:
2207
2628
  return batcher.add("getCfgById", vars={"id": id}, result_model=ResultUserCfg)
2629
+ if is_async:
2630
+ return f.get_userCfgs_id_async(id, auth=auth, conn_url=conn_url)
2208
2631
  return f.get_userCfgs_id(id, auth=auth, conn_url=conn_url)
2209
2632
 
2210
2633
 
@@ -2214,12 +2637,15 @@ def get_cfg_real(
2214
2637
  auth: Optional[AUTH] = None,
2215
2638
  conn_url: Optional[str] = None,
2216
2639
  batcher: Optional[Batcher] = None,
2640
+ is_async: bool = False,
2217
2641
  ) -> ResultUserCfg:
2218
2642
  """return cfg by real `id` """
2219
2643
  if batcher is None:
2220
2644
  batcher = Config.BATCHER
2221
2645
  if batcher is not None:
2222
2646
  return batcher.add("getCfgByRealId", vars={"id": id}, result_model=ResultUserCfg)
2647
+ if is_async:
2648
+ return f.get_userCfgs_realId_async(id, auth=auth, conn_url=conn_url)
2223
2649
  return f.get_userCfgs_realId(id, auth=auth, conn_url=conn_url)
2224
2650
 
2225
2651
 
@@ -2248,6 +2674,7 @@ def create_cfg(
2248
2674
  auth: Optional[AUTH] = None,
2249
2675
  conn_url: Optional[str] = None,
2250
2676
  batcher: Optional[Batcher] = None,
2677
+ is_async: bool = False,
2251
2678
  ) -> Alias.Id:
2252
2679
  """create configuration file\n
2253
2680
  `cfg` must be json or dict or Cfg\n
@@ -2257,6 +2684,8 @@ def create_cfg(
2257
2684
  data = UserCfg(cfgId=cfg_id, cfg=__fix_cfg(cfg))
2258
2685
  if batcher is not None:
2259
2686
  return batcher.add("postCfg", data=data)
2687
+ if is_async:
2688
+ return f.post_userCfgs_async(data, wait=wait, auth=auth, conn_url=conn_url)
2260
2689
  return f.post_userCfgs(data, wait=wait, auth=auth, conn_url=conn_url)
2261
2690
 
2262
2691
 
@@ -2269,6 +2698,7 @@ def update_cfg(
2269
2698
  auth: Optional[AUTH] = None,
2270
2699
  conn_url: Optional[str] = None,
2271
2700
  batcher: Optional[Batcher] = None,
2701
+ is_async: bool = False,
2272
2702
  ) -> Alias.Info:
2273
2703
  """update configuration file\n
2274
2704
  `cfg` must be json or dict or Cfg"""
@@ -2277,6 +2707,8 @@ def update_cfg(
2277
2707
  data = UserCfg(cfgId=cfg_id, cfg=__fix_cfg(cfg))
2278
2708
  if batcher is not None:
2279
2709
  return batcher.add("postCfgById", data=data, vars={"id": id})
2710
+ if is_async:
2711
+ return f.post_userCfgs_id_async(id, data, wait=wait, auth=auth, conn_url=conn_url)
2280
2712
  return f.post_userCfgs_id(id, data, wait=wait, auth=auth, conn_url=conn_url)
2281
2713
 
2282
2714
 
@@ -2286,12 +2718,15 @@ def delete_cfgs(
2286
2718
  auth: Optional[AUTH] = None,
2287
2719
  conn_url: Optional[str] = None,
2288
2720
  batcher: Optional[Batcher] = None,
2721
+ is_async: bool = False,
2289
2722
  ) -> Alias.Info:
2290
2723
  """delete all user cfgs"""
2291
2724
  if batcher is None:
2292
2725
  batcher = Config.BATCHER
2293
2726
  if batcher is not None:
2294
2727
  return batcher.add("deleteCfgs")
2728
+ if is_async:
2729
+ return f.delete_userCfgs_async(wait=wait, auth=auth, conn_url=conn_url)
2295
2730
  return f.delete_userCfgs(wait=wait, auth=auth, conn_url=conn_url)
2296
2731
 
2297
2732
 
@@ -2302,12 +2737,15 @@ def delete_cfg(
2302
2737
  auth: Optional[AUTH] = None,
2303
2738
  conn_url: Optional[str] = None,
2304
2739
  batcher: Optional[Batcher] = None,
2740
+ is_async: bool = False,
2305
2741
  ) -> Alias.Info:
2306
2742
  """delete user cfg by `id` """
2307
2743
  if batcher is None:
2308
2744
  batcher = Config.BATCHER
2309
2745
  if batcher is not None:
2310
2746
  return batcher.add("deleteCfgs", vars={"id": id})
2747
+ if is_async:
2748
+ return f.delete_userCfgs_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
2311
2749
  return f.delete_userCfgs_id(id, wait=wait, auth=auth, conn_url=conn_url)
2312
2750
 
2313
2751
 
@@ -2319,12 +2757,15 @@ def get_operations_results(
2319
2757
  auth: Optional[AUTH] = None,
2320
2758
  conn_url: Optional[str] = None,
2321
2759
  batcher: Optional[Batcher] = None,
2760
+ is_async: bool = False,
2322
2761
  ) -> ResultIds:
2323
2762
  """return list of operations ids"""
2324
2763
  if batcher is None:
2325
2764
  batcher = Config.BATCHER
2326
2765
  if batcher is not None:
2327
2766
  return batcher.add("getOperationResults", result_model=ResultIds)
2767
+ if is_async:
2768
+ return f.get_operationResults_async(auth=auth, conn_url=conn_url)
2328
2769
  return f.get_operationResults(auth=auth, conn_url=conn_url)
2329
2770
 
2330
2771
 
@@ -2334,12 +2775,15 @@ def get_operation_result(
2334
2775
  auth: Optional[AUTH] = None,
2335
2776
  conn_url: Optional[str] = None,
2336
2777
  batcher: Optional[Batcher] = None,
2778
+ is_async: bool = False,
2337
2779
  ) -> str:
2338
2780
  """return result by operation `id` if operation status is `OK` """
2339
2781
  if batcher is None:
2340
2782
  batcher = Config.BATCHER
2341
2783
  if batcher is not None:
2342
2784
  return batcher.add("getOperationResultById", vars={"id": id})
2785
+ if is_async:
2786
+ return f.get_operationResults_id_async(id, auth=auth, conn_url=conn_url)
2343
2787
  return f.get_operationResults_id(id, auth=auth, conn_url=conn_url)
2344
2788
 
2345
2789
 
@@ -2349,12 +2793,15 @@ def delete_operations_results(
2349
2793
  auth: Optional[AUTH] = None,
2350
2794
  conn_url: Optional[str] = None,
2351
2795
  batcher: Optional[Batcher] = None,
2796
+ is_async: bool = False,
2352
2797
  ) -> Alias.Info:
2353
2798
  """delete all operations results"""
2354
2799
  if batcher is None:
2355
2800
  batcher = Config.BATCHER
2356
2801
  if batcher is not None:
2357
2802
  return batcher.add("deleteOperationResults")
2803
+ if is_async:
2804
+ return f.delete_operationResults_async(wait=wait, auth=auth, conn_url=conn_url)
2358
2805
  return f.delete_operationResults(wait=wait, auth=auth, conn_url=conn_url)
2359
2806
 
2360
2807
 
@@ -2365,12 +2812,15 @@ def delete_operation_result(
2365
2812
  auth: Optional[AUTH] = None,
2366
2813
  conn_url: Optional[str] = None,
2367
2814
  batcher: Optional[Batcher] = None,
2815
+ is_async: bool = False,
2368
2816
  ) -> Alias.Info:
2369
2817
  """delete operation result by `id` """
2370
2818
  if batcher is None:
2371
2819
  batcher = Config.BATCHER
2372
2820
  if batcher is not None:
2373
2821
  return batcher.add("deleteOperationResultById", vars={"id": id})
2822
+ if is_async:
2823
+ return f.delete_operationResults_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
2374
2824
  return f.delete_operationResults_id(id, wait=wait, auth=auth, conn_url=conn_url)
2375
2825
 
2376
2826
 
@@ -2383,12 +2833,15 @@ def get_run_condition(
2383
2833
  auth: Optional[AUTH] = None,
2384
2834
  conn_url: Optional[str] = None,
2385
2835
  batcher: Optional[Batcher] = None,
2836
+ is_async: bool = False,
2386
2837
  ) -> Condition:
2387
2838
  """return run condition by operation `id` for running task"""
2388
2839
  if batcher is None:
2389
2840
  batcher = Config.BATCHER
2390
2841
  if batcher is not None:
2391
2842
  return batcher.add("getCondition", vars={"operationId": id}, result_model=Condition)
2843
+ if is_async:
2844
+ return f.get_run_condition_async(id, auth=auth, conn_url=conn_url)
2392
2845
  return f.get_run_condition(id, auth=auth, conn_url=conn_url)
2393
2846
 
2394
2847
 
@@ -2397,12 +2850,15 @@ def get_run_active_runs(
2397
2850
  auth: Optional[AUTH] = None,
2398
2851
  conn_url: Optional[str] = None,
2399
2852
  batcher: Optional[Batcher] = None,
2853
+ is_async: bool = False,
2400
2854
  ) -> ResultIds:
2401
2855
  """return list running operationIds"""
2402
2856
  if batcher is None:
2403
2857
  batcher = Config.BATCHER
2404
2858
  if batcher is not None:
2405
2859
  return batcher.add("getActiveRuns", result_model=ResultIds)
2860
+ if is_async:
2861
+ return f.get_run_activeRuns_async(auth=auth, conn_url=conn_url)
2406
2862
  return f.get_run_activeRuns(auth=auth, conn_url=conn_url)
2407
2863
 
2408
2864
 
@@ -2412,12 +2868,15 @@ def get_run_main_task_cfg(
2412
2868
  auth: Optional[AUTH] = None,
2413
2869
  conn_url: Optional[str] = None,
2414
2870
  batcher: Optional[Batcher] = None,
2871
+ is_async: bool = False,
2415
2872
  ) -> MainTaskCfg:
2416
2873
  """return mainTaskCfg by operation `id` for running task"""
2417
2874
  if batcher is None:
2418
2875
  batcher = Config.BATCHER
2419
2876
  if batcher is not None:
2420
2877
  return batcher.add("getMainTaskCfg", vars={"operationId": id}, result_model=MainTaskCfg)
2878
+ if is_async:
2879
+ return f.get_run_mainTaskCfg_async(id, auth=auth, conn_url=conn_url)
2421
2880
  return f.get_run_mainTaskCfg(id, auth=auth, conn_url=conn_url)
2422
2881
 
2423
2882
 
@@ -2427,12 +2886,15 @@ def get_run_main_pipeline_cfg(
2427
2886
  auth: Optional[AUTH] = None,
2428
2887
  conn_url: Optional[str] = None,
2429
2888
  batcher: Optional[Batcher] = None,
2889
+ is_async: bool = False,
2430
2890
  ) -> MainPipelineCfg:
2431
2891
  """return mainPipelineCfg by operation `id` for running pipeline"""
2432
2892
  if batcher is None:
2433
2893
  batcher = Config.BATCHER
2434
2894
  if batcher is not None:
2435
2895
  return batcher.add("getMainPipelineCfg", vars={"operationId": id}, result_model=MainPipelineCfg)
2896
+ if is_async:
2897
+ return f.get_run_mainPipelineCfg_async(id, auth=auth, conn_url=conn_url)
2436
2898
  return f.get_run_mainPipelineCfg(id, auth=auth, conn_url=conn_url)
2437
2899
 
2438
2900
 
@@ -2443,6 +2905,7 @@ def get_task_runs(
2443
2905
  auth: Optional[AUTH] = None,
2444
2906
  conn_url: Optional[str] = None,
2445
2907
  batcher: Optional[Batcher] = None,
2908
+ is_async: bool = False,
2446
2909
  ) -> ResultIds:
2447
2910
  """return list running operationIds with `task_id` and `cfg_id` if specified"""
2448
2911
  if batcher is None:
@@ -2452,6 +2915,8 @@ def get_task_runs(
2452
2915
  if cfg_id is not None:
2453
2916
  vars["cfgId"] = cfg_id
2454
2917
  return batcher.add("getOperationsIds", vars=vars, result_model=ResultIds)
2918
+ if is_async:
2919
+ return f.get_run_operationsIds_async(task_id, cfg_id, auth=auth, conn_url=conn_url)
2455
2920
  return f.get_run_operationsIds(task_id, cfg_id, auth=auth, conn_url=conn_url)
2456
2921
 
2457
2922
 
@@ -2467,6 +2932,7 @@ def logs(
2467
2932
  auth: Optional[AUTH] = None,
2468
2933
  conn_url: Optional[str] = None,
2469
2934
  batcher: Optional[Batcher] = None,
2935
+ is_async: bool = False,
2470
2936
  ) -> AppLogs:
2471
2937
  """return task logs by operation `id` and `run_id` """
2472
2938
  if batcher is None:
@@ -2474,6 +2940,8 @@ def logs(
2474
2940
  data = LogsTask(operationId=id, runId=run_id, force=force)
2475
2941
  if batcher is not None:
2476
2942
  return batcher.add("logs", data=data, result_model=AppLogs)
2943
+ if is_async:
2944
+ return f.get_manager_logs_async(data, with_show=with_show, auth=auth, conn_url=conn_url)
2477
2945
  return f.get_manager_logs(data, with_show=with_show, auth=auth, conn_url=conn_url)
2478
2946
 
2479
2947
 
@@ -2488,6 +2956,7 @@ def logs_app(
2488
2956
  auth: Optional[AUTH] = None,
2489
2957
  conn_url: Optional[str] = None,
2490
2958
  batcher: Optional[Batcher] = None,
2959
+ is_async: bool = False,
2491
2960
  ) -> AppLogs:
2492
2961
  """return app logs by operation `id`, `run_id`, `task_id` (that "null" if not exist) and `app_id` """
2493
2962
  if batcher is None:
@@ -2497,6 +2966,8 @@ def logs_app(
2497
2966
  )
2498
2967
  if batcher is not None:
2499
2968
  return batcher.add("logs", data=data, result_model=AppLogs)
2969
+ if is_async:
2970
+ return f.get_manager_logs_async(data, with_show=with_show, auth=auth, conn_url=conn_url)
2500
2971
  return f.get_manager_logs(data, with_show=with_show, auth=auth, conn_url=conn_url)
2501
2972
 
2502
2973
 
@@ -2505,12 +2976,15 @@ def logs_clickhouse(
2505
2976
  auth: Optional[AUTH] = None,
2506
2977
  conn_url: Optional[str] = None,
2507
2978
  batcher: Optional[Batcher] = None,
2979
+ is_async: bool = False,
2508
2980
  ) -> Alias.Json:
2509
2981
  """return all clickhouse logs"""
2510
2982
  if batcher is None:
2511
2983
  batcher = Config.BATCHER
2512
2984
  if batcher is not None:
2513
2985
  return batcher.add("clickhouseAll")
2986
+ if is_async:
2987
+ return f.get_clickhouse_all_async(auth=auth, conn_url=conn_url)
2514
2988
  return f.get_clickhouse_all(auth=auth, conn_url=conn_url)
2515
2989
 
2516
2990
 
@@ -2520,12 +2994,15 @@ def logs_clickhouse_id(
2520
2994
  auth: Optional[AUTH] = None,
2521
2995
  conn_url: Optional[str] = None,
2522
2996
  batcher: Optional[Batcher] = None,
2997
+ is_async: bool = False,
2523
2998
  ) -> Alias.Json:
2524
2999
  """return clickhouse logs by operation `id` """
2525
3000
  if batcher is None:
2526
3001
  batcher = Config.BATCHER
2527
3002
  if batcher is not None:
2528
3003
  return batcher.add("clickhouseId", vars={"operationId": id})
3004
+ if is_async:
3005
+ return f.get_clickhouse_id_async(id, auth=auth, conn_url=conn_url)
2529
3006
  return f.get_clickhouse_id(id, auth=auth, conn_url=conn_url)
2530
3007
 
2531
3008
 
@@ -2535,12 +3012,15 @@ def get_dag_key_value(
2535
3012
  auth: Optional[AUTH] = None,
2536
3013
  conn_url: Optional[str] = None,
2537
3014
  batcher: Optional[Batcher] = None,
3015
+ is_async: bool = False,
2538
3016
  ) -> Alias.Json:
2539
3017
  """return key-value cfg from dag by operation `id` """
2540
3018
  if batcher is None:
2541
3019
  batcher = Config.BATCHER
2542
3020
  if batcher is not None:
2543
3021
  return batcher.add("getDagKeyValue", vars={"operationId": id})
3022
+ if is_async:
3023
+ return f.get_manager_dagKeyValue_operationId_async(id, auth=auth, conn_url=conn_url)
2544
3024
  return f.get_manager_dagKeyValue_operationId(id, auth=auth, conn_url=conn_url)
2545
3025
 
2546
3026
 
@@ -2552,6 +3032,7 @@ def update_dag_key_value(
2552
3032
  auth: Optional[AUTH] = None,
2553
3033
  conn_url: Optional[str] = None,
2554
3034
  batcher: Optional[Batcher] = None,
3035
+ is_async: bool = False,
2555
3036
  ) -> None:
2556
3037
  """update key-value cfg from dag by operation `id` and `data` """
2557
3038
  if batcher is None:
@@ -2559,6 +3040,13 @@ def update_dag_key_value(
2559
3040
  data = KeysValues(data=data, operationId=operationId)
2560
3041
  if batcher is not None:
2561
3042
  return batcher.add("postDagKeyValue", data=data)
3043
+ if is_async:
3044
+ return f.post_manager_dagKeyValue_async(
3045
+ data,
3046
+ wait=wait,
3047
+ auth=auth,
3048
+ conn_url=conn_url,
3049
+ )
2562
3050
  return f.post_manager_dagKeyValue(
2563
3051
  data,
2564
3052
  wait=wait,
@@ -2574,12 +3062,15 @@ def get_app_info(
2574
3062
  auth: Optional[AUTH] = None,
2575
3063
  conn_url: Optional[str] = None,
2576
3064
  batcher: Optional[Batcher] = None,
3065
+ is_async: bool = False,
2577
3066
  ) -> Union[Alias.Json, AppFunctionsInfo]:
2578
3067
  """return json with functions app info, `id` is appId"""
2579
3068
  if batcher is None:
2580
3069
  batcher = Config.BATCHER
2581
3070
  if batcher is not None:
2582
3071
  return batcher.add("appInfo", vars={"appId": id}, result_model=AppFunctionsInfo if parse else None)
3072
+ if is_async:
3073
+ return f.get_app_info_async(id, parse=parse, auth=auth, conn_url=conn_url)
2583
3074
  return f.get_app_info(id, parse=parse, auth=auth, conn_url=conn_url)
2584
3075
 
2585
3076
 
@@ -2590,12 +3081,15 @@ def get_app_info_by_real_id(
2590
3081
  auth: Optional[AUTH] = None,
2591
3082
  conn_url: Optional[str] = None,
2592
3083
  batcher: Optional[Batcher] = None,
3084
+ is_async: bool = False,
2593
3085
  ) -> Union[Alias.Json, AppFunctionsInfo]:
2594
3086
  """return json with functions app info, `id` is real id for app"""
2595
3087
  if batcher is None:
2596
3088
  batcher = Config.BATCHER
2597
3089
  if batcher is not None:
2598
3090
  return batcher.add("appInfoRealId", vars={"appId": id}, result_model=AppFunctionsInfo if parse else None)
3091
+ if is_async:
3092
+ return f.get_app_info_by_real_id_async(id, parse=parse, auth=auth, conn_url=conn_url)
2599
3093
  return f.get_app_info_by_real_id(id, parse=parse, auth=auth, conn_url=conn_url)
2600
3094
 
2601
3095
 
@@ -2608,6 +3102,7 @@ def get_image_info(
2608
3102
  auth: Optional[AUTH] = None,
2609
3103
  conn_url: Optional[str] = None,
2610
3104
  batcher: Optional[Batcher] = None,
3105
+ is_async: bool = False,
2611
3106
  ) -> Union[Alias.Json, AppFunctionsInfo]:
2612
3107
  """return json with functions image info"""
2613
3108
  if batcher is None:
@@ -2619,6 +3114,8 @@ def get_image_info(
2619
3114
  data = JsonImage(ref=image_ref, user=image_user, token=image_token)
2620
3115
  if batcher is not None:
2621
3116
  return batcher.add("imageInfo", data=data, result_model=AppFunctionsInfo if parse else None)
3117
+ if is_async:
3118
+ return f.get_image_info_async(data, parse=parse, auth=auth, conn_url=conn_url)
2622
3119
  return f.get_image_info(data, parse=parse, auth=auth, conn_url=conn_url)
2623
3120
 
2624
3121
 
@@ -2629,6 +3126,7 @@ def get_task_schedules(
2629
3126
  auth: Optional[AUTH] = None,
2630
3127
  conn_url: Optional[str] = None,
2631
3128
  batcher: Optional[Batcher] = None,
3129
+ is_async: bool = False,
2632
3130
  ) -> Schedules:
2633
3131
  """return schedule ids by `operation_id` """
2634
3132
  if batcher is None:
@@ -2636,6 +3134,10 @@ def get_task_schedules(
2636
3134
  data = Operation(operationId=operation_id)
2637
3135
  if batcher is not None:
2638
3136
  return batcher.add("sendTaskSchedules", data=data, result_model=Schedules)
3137
+ if is_async:
3138
+ return f.get_task_schedules_async(
3139
+ data, with_show=with_show, auth=auth, conn_url=conn_url
3140
+ )
2639
3141
  return f.get_task_schedules(
2640
3142
  data, with_show=with_show, auth=auth, conn_url=conn_url
2641
3143
  )
@@ -2728,16 +3230,15 @@ def task_full(
2728
3230
  auth=auth,
2729
3231
  conn_url=conn_url,
2730
3232
  )
2731
- else:
2732
- return f.post_manager_task(
2733
- data,
2734
- with_show=with_show,
2735
- long=long,
2736
- long_timeout=long_timeout,
2737
- wait=wait,
2738
- auth=auth,
2739
- conn_url=conn_url,
2740
- )
3233
+ return f.post_manager_task(
3234
+ data,
3235
+ with_show=with_show,
3236
+ long=long,
3237
+ long_timeout=long_timeout,
3238
+ wait=wait,
3239
+ auth=auth,
3240
+ conn_url=conn_url,
3241
+ )
2741
3242
 
2742
3243
 
2743
3244
  def task_prepare(
@@ -2844,16 +3345,15 @@ def task_prepare(
2844
3345
  auth=auth,
2845
3346
  conn_url=conn_url,
2846
3347
  )
2847
- else:
2848
- return f.post_manager_task(
2849
- data,
2850
- with_show=with_show,
2851
- long=long,
2852
- long_timeout=long_timeout,
2853
- wait=wait,
2854
- auth=auth,
2855
- conn_url=conn_url,
2856
- )
3348
+ return f.post_manager_task(
3349
+ data,
3350
+ with_show=with_show,
3351
+ long=long,
3352
+ long_timeout=long_timeout,
3353
+ wait=wait,
3354
+ auth=auth,
3355
+ conn_url=conn_url,
3356
+ )
2857
3357
 
2858
3358
 
2859
3359
  def task_run(
@@ -2922,16 +3422,15 @@ def task_run(
2922
3422
  auth=auth,
2923
3423
  conn_url=conn_url,
2924
3424
  )
2925
- else:
2926
- return f.post_manager_task_run(
2927
- data,
2928
- with_show=with_show,
2929
- long=long,
2930
- long_timeout=long_timeout,
2931
- wait=wait,
2932
- auth=auth,
2933
- conn_url=conn_url,
2934
- )
3425
+ return f.post_manager_task_run(
3426
+ data,
3427
+ with_show=with_show,
3428
+ long=long,
3429
+ long_timeout=long_timeout,
3430
+ wait=wait,
3431
+ auth=auth,
3432
+ conn_url=conn_url,
3433
+ )
2935
3434
 
2936
3435
 
2937
3436
  def pipeline_full(
@@ -3004,17 +3503,16 @@ def pipeline_full(
3004
3503
  auth=auth,
3005
3504
  conn_url=conn_url,
3006
3505
  )
3007
- else:
3008
- return f.post_manager_pipeline(
3009
- data,
3010
- with_show=with_show,
3011
- long=long,
3012
- long_timeout=long_timeout,
3013
- return_response=return_response,
3014
- wait=wait,
3015
- auth=auth,
3016
- conn_url=conn_url,
3017
- )
3506
+ return f.post_manager_pipeline(
3507
+ data,
3508
+ with_show=with_show,
3509
+ long=long,
3510
+ long_timeout=long_timeout,
3511
+ return_response=return_response,
3512
+ wait=wait,
3513
+ auth=auth,
3514
+ conn_url=conn_url,
3515
+ )
3018
3516
 
3019
3517
 
3020
3518
  def pipeline_prepare(
@@ -3093,17 +3591,16 @@ def pipeline_prepare(
3093
3591
  auth=auth,
3094
3592
  conn_url=conn_url,
3095
3593
  )
3096
- else:
3097
- return f.post_manager_pipeline(
3098
- data,
3099
- with_show=with_show,
3100
- long=long,
3101
- long_timeout=long_timeout,
3102
- return_response=return_response,
3103
- wait=wait,
3104
- auth=auth,
3105
- conn_url=conn_url,
3106
- )
3594
+ return f.post_manager_pipeline(
3595
+ data,
3596
+ with_show=with_show,
3597
+ long=long,
3598
+ long_timeout=long_timeout,
3599
+ return_response=return_response,
3600
+ wait=wait,
3601
+ auth=auth,
3602
+ conn_url=conn_url,
3603
+ )
3107
3604
 
3108
3605
 
3109
3606
  def task_unschedule(
@@ -3114,6 +3611,7 @@ def task_unschedule(
3114
3611
  auth: Optional[AUTH] = None,
3115
3612
  conn_url: Optional[str] = None,
3116
3613
  batcher: Optional[Batcher] = None,
3614
+ is_async: bool = False,
3117
3615
  ) -> Alias.Info:
3118
3616
  """unschedule task by `schedule_id` """
3119
3617
  if batcher is None:
@@ -3121,6 +3619,10 @@ def task_unschedule(
3121
3619
  data = UnscheduleOperation(scheduleId=schedule_id)
3122
3620
  if batcher is not None:
3123
3621
  return batcher.add("sendTaskUnschedule", data=data)
3622
+ if is_async:
3623
+ return f.post_manager_task_unschedule_async(
3624
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3625
+ )
3124
3626
  return f.post_manager_task_unschedule(
3125
3627
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3126
3628
  )
@@ -3158,10 +3660,9 @@ def task_stop(
3158
3660
  return f.post_manager_task_stop_async(
3159
3661
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3160
3662
  )
3161
- else:
3162
- return f.post_manager_task_stop(
3163
- data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3164
- )
3663
+ return f.post_manager_task_stop(
3664
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3665
+ )
3165
3666
 
3166
3667
 
3167
3668
  def task_stop_all(
@@ -3185,10 +3686,9 @@ def task_stop_all(
3185
3686
  return f.post_manager_task_stop_all_async(
3186
3687
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3187
3688
  )
3188
- else:
3189
- return f.post_manager_task_stop_all(
3190
- data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3191
- )
3689
+ return f.post_manager_task_stop_all(
3690
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3691
+ )
3192
3692
 
3193
3693
 
3194
3694
  def task_resume(
@@ -3199,6 +3699,7 @@ def task_resume(
3199
3699
  auth: Optional[AUTH] = None,
3200
3700
  conn_url: Optional[str] = None,
3201
3701
  batcher: Optional[Batcher] = None,
3702
+ is_async: bool = False,
3202
3703
  ) -> Alias.Empty:
3203
3704
  """resume task by `operation_id` """
3204
3705
  if batcher is None:
@@ -3206,6 +3707,10 @@ def task_resume(
3206
3707
  data = Operation(operationId=operation_id)
3207
3708
  if batcher is not None:
3208
3709
  return batcher.add("sendTaskResume", data=data)
3710
+ if is_async:
3711
+ return f.post_manager_task_resume_async(
3712
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3713
+ )
3209
3714
  return f.post_manager_task_resume(
3210
3715
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3211
3716
  )
@@ -3219,6 +3724,7 @@ def task_pause(
3219
3724
  auth: Optional[AUTH] = None,
3220
3725
  conn_url: Optional[str] = None,
3221
3726
  batcher: Optional[Batcher] = None,
3727
+ is_async: bool = False,
3222
3728
  ) -> Alias.Empty:
3223
3729
  """pause task by `operation_id` """
3224
3730
  if batcher is None:
@@ -3226,6 +3732,10 @@ def task_pause(
3226
3732
  data = Operation(operationId=operation_id)
3227
3733
  if batcher is not None:
3228
3734
  return batcher.add("sendTaskPause", data=data)
3735
+ if is_async:
3736
+ return f.post_manager_task_pause_async(
3737
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3738
+ )
3229
3739
  return f.post_manager_task_pause(
3230
3740
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3231
3741
  )
@@ -3242,6 +3752,7 @@ def app_stop(
3242
3752
  auth: Optional[AUTH] = None,
3243
3753
  conn_url: Optional[str] = None,
3244
3754
  batcher: Optional[Batcher] = None,
3755
+ is_async: bool = False,
3245
3756
  ) -> Alias.Empty:
3246
3757
  """stop app by `operation_id`, `task_id` and `app_id` """
3247
3758
  if batcher is None:
@@ -3251,6 +3762,10 @@ def app_stop(
3251
3762
  )
3252
3763
  if batcher is not None:
3253
3764
  return batcher.add("sendAppStop", data=data)
3765
+ if is_async:
3766
+ return f.post_manager_app_stop_async(
3767
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3768
+ )
3254
3769
  return f.post_manager_app_stop(
3255
3770
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3256
3771
  )
@@ -3267,6 +3782,7 @@ def app_resume(
3267
3782
  auth: Optional[AUTH] = None,
3268
3783
  conn_url: Optional[str] = None,
3269
3784
  batcher: Optional[Batcher] = None,
3785
+ is_async: bool = False,
3270
3786
  ) -> Alias.Empty:
3271
3787
  """resume app by `operation_id`, `task_id` and `app_id` """
3272
3788
  if batcher is None:
@@ -3276,6 +3792,10 @@ def app_resume(
3276
3792
  )
3277
3793
  if batcher is not None:
3278
3794
  return batcher.add("sendAppResume", data=data)
3795
+ if is_async:
3796
+ return f.post_manager_app_resume_async(
3797
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3798
+ )
3279
3799
  return f.post_manager_app_resume(
3280
3800
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3281
3801
  )
@@ -3292,6 +3812,7 @@ def app_pause(
3292
3812
  auth: Optional[AUTH] = None,
3293
3813
  conn_url: Optional[str] = None,
3294
3814
  batcher: Optional[Batcher] = None,
3815
+ is_async: bool = False,
3295
3816
  ) -> Alias.Empty:
3296
3817
  """pause app by `operation_id`, `task_id` and `app_id` """
3297
3818
  if batcher is None:
@@ -3301,6 +3822,10 @@ def app_pause(
3301
3822
  )
3302
3823
  if batcher is not None:
3303
3824
  return batcher.add("sendAppPause", data=data)
3825
+ if is_async:
3826
+ return f.post_manager_app_pause_async(
3827
+ data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3828
+ )
3304
3829
  return f.post_manager_app_pause(
3305
3830
  data, with_show=with_show, wait=wait, auth=auth, conn_url=conn_url
3306
3831
  )
@@ -3314,12 +3839,15 @@ def get_user_limits(
3314
3839
  auth: Optional[AUTH] = None,
3315
3840
  conn_url: Optional[str] = None,
3316
3841
  batcher: Optional[Batcher] = None,
3842
+ is_async: bool = False,
3317
3843
  ) -> UserLimits:
3318
3844
  """return limits for user"""
3319
3845
  if batcher is None:
3320
3846
  batcher = Config.BATCHER
3321
3847
  if batcher is not None:
3322
3848
  return batcher.add("getLimits", result_model=UserLimits)
3849
+ if is_async:
3850
+ return f.get_limits_async(auth=auth, conn_url=conn_url)
3323
3851
  return f.get_limits(auth=auth, conn_url=conn_url)
3324
3852
 
3325
3853
 
@@ -3336,6 +3864,7 @@ def update_user_limits(
3336
3864
  auth: Optional[AUTH] = None,
3337
3865
  conn_url: Optional[str] = None,
3338
3866
  batcher: Optional[Batcher] = None,
3867
+ is_async: bool = False,
3339
3868
  ) -> Alias.Info:
3340
3869
  """update limits for user"""
3341
3870
  if batcher is None:
@@ -3343,6 +3872,10 @@ def update_user_limits(
3343
3872
  data = Limits(memoryRequest=memory_request, memoryLimit=memory_limit, cpuRequest=cpu_request, cpuLimit=cpu_limit, storageRequest=storage_request, storageLimit=storage_limit, gpuDisk=gpu_disk)
3344
3873
  if batcher is not None:
3345
3874
  return batcher.add("postLimits", data=data)
3875
+ if is_async:
3876
+ return f.post_limits_async(
3877
+ data, wait=wait, auth=auth, conn_url=conn_url
3878
+ )
3346
3879
  return f.post_limits(
3347
3880
  data, wait=wait, auth=auth, conn_url=conn_url
3348
3881
  )
@@ -3364,6 +3897,7 @@ def update_user_limits_scope(
3364
3897
  auth: Optional[AUTH] = None,
3365
3898
  conn_url: Optional[str] = None,
3366
3899
  batcher: Optional[Batcher] = None,
3900
+ is_async: bool = False,
3367
3901
  ) -> Alias.Info:
3368
3902
  """update limits scope for user, for superuser/admin"""
3369
3903
  if batcher is None:
@@ -3371,6 +3905,10 @@ def update_user_limits_scope(
3371
3905
  data = LimitsScope(login=login, appMemoryRequest=app_memory_request, appMemoryLimit=app_memory_limit, appCpuRequest=app_cpu_request, appCpuLimit=app_cpu_limit, appStorageRequest=app_storage_request, appStorageLimit=app_storage_limit, assetsLimit=assets_limit, allowCommonGpu=allow_common_gpu, gpuDiskMax=gpu_disk_max)
3372
3906
  if batcher is not None:
3373
3907
  return batcher.add("postUserLimits", data=data)
3908
+ if is_async:
3909
+ return f.post_user_limits_async(
3910
+ data, wait=wait, auth=auth, conn_url=conn_url
3911
+ )
3374
3912
  return f.post_user_limits(
3375
3913
  data, wait=wait, auth=auth, conn_url=conn_url
3376
3914
  )
@@ -3384,12 +3922,15 @@ def get_user_handler_url(
3384
3922
  auth: Optional[AUTH] = None,
3385
3923
  conn_url: Optional[str] = None,
3386
3924
  batcher: Optional[Batcher] = None,
3925
+ is_async: bool = False,
3387
3926
  ) -> str:
3388
3927
  """return handler url for user"""
3389
3928
  if batcher is None:
3390
3929
  batcher = Config.BATCHER
3391
3930
  if batcher is not None:
3392
3931
  return batcher.add("getHandlerUrls")
3932
+ if is_async:
3933
+ return f.get_handler_url_async(auth=auth, conn_url=conn_url)
3393
3934
  return f.get_handler_url(auth=auth, conn_url=conn_url)
3394
3935
 
3395
3936
 
@@ -3400,12 +3941,17 @@ def update_user_handler_url(
3400
3941
  auth: Optional[AUTH] = None,
3401
3942
  conn_url: Optional[str] = None,
3402
3943
  batcher: Optional[Batcher] = None,
3944
+ is_async: bool = False,
3403
3945
  ) -> Alias.Info:
3404
3946
  """update handler url for user"""
3405
3947
  if batcher is None:
3406
3948
  batcher = Config.BATCHER
3407
3949
  if batcher is not None:
3408
3950
  return batcher.add("postHandlerUrls", vars={"url": url})
3951
+ if is_async:
3952
+ return f.post_handler_url_async(
3953
+ url, wait=wait, auth=auth, conn_url=conn_url
3954
+ )
3409
3955
  return f.post_handler_url(
3410
3956
  url, wait=wait, auth=auth, conn_url=conn_url
3411
3957
  )
@@ -3419,12 +3965,15 @@ def get_analytics(
3419
3965
  auth: Optional[AUTH] = None,
3420
3966
  conn_url: Optional[str] = None,
3421
3967
  batcher: Optional[Batcher] = None,
3968
+ is_async: bool = False,
3422
3969
  ) -> UserAnalyticsBatch:
3423
3970
  """return all analytics for current user """
3424
3971
  if batcher is None:
3425
3972
  batcher = Config.BATCHER
3426
3973
  if batcher is not None:
3427
3974
  return batcher.add("getAnalytics", result_model=UserAnalyticsBatch)
3975
+ if is_async:
3976
+ return f.get_analytics_async(auth=auth, conn_url=conn_url)
3428
3977
  return f.get_analytics(auth=auth, conn_url=conn_url)
3429
3978
 
3430
3979
 
@@ -3434,12 +3983,15 @@ def get_analytics_by_id(
3434
3983
  auth: Optional[AUTH] = None,
3435
3984
  conn_url: Optional[str] = None,
3436
3985
  batcher: Optional[Batcher] = None,
3986
+ is_async: bool = False,
3437
3987
  ) -> UserAnalytics:
3438
3988
  """return analytics by `id` """
3439
3989
  if batcher is None:
3440
3990
  batcher = Config.BATCHER
3441
3991
  if batcher is not None:
3442
3992
  return batcher.add("getAnalyticsById", vars={"id": id}, result_model=UserAnalytics)
3993
+ if is_async:
3994
+ return f.get_analytics_by_id_async(id, auth=auth, conn_url=conn_url)
3443
3995
  return f.get_analytics_by_id(id, auth=auth, conn_url=conn_url)
3444
3996
 
3445
3997
 
@@ -3449,12 +4001,15 @@ def get_analytics_by_name(
3449
4001
  auth: Optional[AUTH] = None,
3450
4002
  conn_url: Optional[str] = None,
3451
4003
  batcher: Optional[Batcher] = None,
4004
+ is_async: bool = False,
3452
4005
  ) -> UserAnalyticsBatch:
3453
4006
  """return analytics by `name` """
3454
4007
  if batcher is None:
3455
4008
  batcher = Config.BATCHER
3456
4009
  if batcher is not None:
3457
4010
  return batcher.add("getAnalyticsByName", vars={"name": name}, result_model=UserAnalyticsBatch)
4011
+ if is_async:
4012
+ return f.get_analytics_by_name_async(name, auth=auth, conn_url=conn_url)
3458
4013
  return f.get_analytics_by_name(name, auth=auth, conn_url=conn_url)
3459
4014
 
3460
4015
 
@@ -3467,6 +4022,7 @@ def create_analytics(
3467
4022
  auth: Optional[AUTH] = None,
3468
4023
  conn_url: Optional[str] = None,
3469
4024
  batcher: Optional[Batcher] = None,
4025
+ is_async: bool = False,
3470
4026
  ) -> Alias.Id:
3471
4027
  """save analytics with `data`, `name` and `timestamp`, return `id` """
3472
4028
  if batcher is None:
@@ -3474,6 +4030,10 @@ def create_analytics(
3474
4030
  data = UserAnalytics(name=name, data=data, timestamp=timestamp)
3475
4031
  if batcher is not None:
3476
4032
  return batcher.add("postAnalytics", data=data)
4033
+ if is_async:
4034
+ return f.post_analytics_async(
4035
+ data, wait=wait, auth=auth, conn_url=conn_url
4036
+ )
3477
4037
  return f.post_analytics(
3478
4038
  data, wait=wait, auth=auth, conn_url=conn_url
3479
4039
  )
@@ -3489,6 +4049,7 @@ def update_analytics(
3489
4049
  auth: Optional[AUTH] = None,
3490
4050
  conn_url: Optional[str] = None,
3491
4051
  batcher: Optional[Batcher] = None,
4052
+ is_async: bool = False,
3492
4053
  ) -> Alias.Id:
3493
4054
  """update analytics by `id` with `data`, `name` and `timestamp`, return `id` """
3494
4055
  if batcher is None:
@@ -3496,6 +4057,10 @@ def update_analytics(
3496
4057
  data = UserAnalytics(name=name, data=data, timestamp=timestamp, id=id)
3497
4058
  if batcher is not None:
3498
4059
  return batcher.add("postAnalytics", data=data)
4060
+ if is_async:
4061
+ return f.post_analytics_async(
4062
+ data, wait=wait, auth=auth, conn_url=conn_url
4063
+ )
3499
4064
  return f.post_analytics(
3500
4065
  data, wait=wait, auth=auth, conn_url=conn_url
3501
4066
  )
@@ -3508,6 +4073,7 @@ def update_analytics_many(
3508
4073
  auth: Optional[AUTH] = None,
3509
4074
  conn_url: Optional[str] = None,
3510
4075
  batcher: Optional[Batcher] = None,
4076
+ is_async: bool = False,
3511
4077
  ) -> ResultIds:
3512
4078
  """update analytics by list of UserAnalytics, return ResultIds """
3513
4079
  if batcher is None:
@@ -3515,6 +4081,10 @@ def update_analytics_many(
3515
4081
  data = UserAnalyticsBatch(data=data)
3516
4082
  if batcher is not None:
3517
4083
  return batcher.add("postAnalyticsMany", data=data, result_model=ResultIds)
4084
+ if is_async:
4085
+ return f.post_analytics_many_async(
4086
+ data, wait=wait, auth=auth, conn_url=conn_url
4087
+ )
3518
4088
  return f.post_analytics_many(
3519
4089
  data, wait=wait, auth=auth, conn_url=conn_url
3520
4090
  )
@@ -3528,13 +4098,16 @@ def get_last_runs(
3528
4098
  *,
3529
4099
  auth: Optional[AUTH] = None,
3530
4100
  conn_url: Optional[str] = None,
3531
- batcher: Optional[Batcher] = None
4101
+ batcher: Optional[Batcher] = None,
4102
+ is_async: bool = False,
3532
4103
  ) -> ResultIds:
3533
4104
  """return last operationIds (prepared task/pipeline)"""
3534
4105
  if batcher is None:
3535
4106
  batcher = Config.BATCHER
3536
4107
  if batcher is not None:
3537
4108
  return batcher.add("getLastOperationsIds", vars={"count": count}, result_model=ResultIds)
4109
+ if is_async:
4110
+ return f.get_runsInfo_last_operation_ids_async(count, auth=auth, conn_url=conn_url)
3538
4111
  return f.get_runsInfo_last_operation_ids(count, auth=auth, conn_url=conn_url)
3539
4112
 
3540
4113
 
@@ -3543,13 +4116,16 @@ def get_last_failed_runs(
3543
4116
  *,
3544
4117
  auth: Optional[AUTH] = None,
3545
4118
  conn_url: Optional[str] = None,
3546
- batcher: Optional[Batcher] = None
4119
+ batcher: Optional[Batcher] = None,
4120
+ is_async: bool = False,
3547
4121
  ) -> ResultIds:
3548
4122
  """return last operationIds (failed prepare/run of task/pipeline)"""
3549
4123
  if batcher is None:
3550
4124
  batcher = Config.BATCHER
3551
4125
  if batcher is not None:
3552
4126
  return batcher.add("getLastFailedOperationsIds", vars={"count": count}, result_model=ResultIds)
4127
+ if is_async:
4128
+ return f.get_runsInfo_last_failed_operation_ids_async(count, auth=auth, conn_url=conn_url)
3553
4129
  return f.get_runsInfo_last_failed_operation_ids(count, auth=auth, conn_url=conn_url)
3554
4130
 
3555
4131
 
@@ -3563,12 +4139,15 @@ def get_ws_apps(
3563
4139
  auth: Optional[AUTH] = None,
3564
4140
  conn_url: Optional[str] = None,
3565
4141
  batcher: Optional[Batcher] = None,
4142
+ is_async: bool = False,
3566
4143
  ) -> Union[ResultIds, WSApps]:
3567
4144
  """return list ids or list ws apps structure"""
3568
4145
  if batcher is None:
3569
4146
  batcher = Config.BATCHER
3570
4147
  if batcher is not None:
3571
4148
  return batcher.add("getWSApps", vars={"onlyActive": only_active, "full": full}, result_model=WSApps if full else ResultIds)
4149
+ if is_async:
4150
+ return f.get_ws_apps_async(only_active, full, auth=auth, conn_url=conn_url)
3572
4151
  return f.get_ws_apps(only_active, full, auth=auth, conn_url=conn_url)
3573
4152
 
3574
4153
 
@@ -3578,12 +4157,15 @@ def get_ws_app(
3578
4157
  auth: Optional[AUTH] = None,
3579
4158
  conn_url: Optional[str] = None,
3580
4159
  batcher: Optional[Batcher] = None,
4160
+ is_async: bool = False,
3581
4161
  ) -> WSApp:
3582
4162
  """return ws app struct by `id` """
3583
4163
  if batcher is None:
3584
4164
  batcher = Config.BATCHER
3585
4165
  if batcher is not None:
3586
4166
  return batcher.add("getWSAppById", vars={"id": id}, result_model=WSApp)
4167
+ if is_async:
4168
+ return f.get_ws_apps_id_async(id, auth=auth, conn_url=conn_url)
3587
4169
  return f.get_ws_apps_id(id, auth=auth, conn_url=conn_url)
3588
4170
 
3589
4171
 
@@ -3593,12 +4175,15 @@ def create_ws_app(
3593
4175
  auth: Optional[AUTH] = None,
3594
4176
  conn_url: Optional[str] = None,
3595
4177
  batcher: Optional[Batcher] = None,
4178
+ is_async: bool = False,
3596
4179
  ) -> WSApp:
3597
4180
  """save ws app, return ws app struct"""
3598
4181
  if batcher is None:
3599
4182
  batcher = Config.BATCHER
3600
4183
  if batcher is not None:
3601
4184
  return batcher.add("postWSApp")
4185
+ if is_async:
4186
+ return f.post_ws_apps_async(wait=wait, auth=auth, conn_url=conn_url)
3602
4187
  return f.post_ws_apps(wait=wait, auth=auth, conn_url=conn_url)
3603
4188
 
3604
4189
 
@@ -3609,12 +4194,15 @@ def delete_ws_app(
3609
4194
  auth: Optional[AUTH] = None,
3610
4195
  conn_url: Optional[str] = None,
3611
4196
  batcher: Optional[Batcher] = None,
4197
+ is_async: bool = False,
3612
4198
  ) -> Alias.Info:
3613
4199
  """delete ws app by `id` """
3614
4200
  if batcher is None:
3615
4201
  batcher = Config.BATCHER
3616
4202
  if batcher is not None:
3617
4203
  return batcher.add("deleteWSAppById", vars={"id": id})
4204
+ if is_async:
4205
+ return f.delete_ws_apps_id_async(id, wait=wait, auth=auth, conn_url=conn_url)
3618
4206
  return f.delete_ws_apps_id(id, wait=wait, auth=auth, conn_url=conn_url)
3619
4207
 
3620
4208
 
@@ -3625,12 +4213,15 @@ def delete_ws_apps(
3625
4213
  auth: Optional[AUTH] = None,
3626
4214
  conn_url: Optional[str] = None,
3627
4215
  batcher: Optional[Batcher] = None,
4216
+ is_async: bool = False,
3628
4217
  ) -> Alias.Info:
3629
4218
  """delete all ws apps (only not active if `only_not_active`)"""
3630
4219
  if batcher is None:
3631
4220
  batcher = Config.BATCHER
3632
4221
  if batcher is not None:
3633
4222
  return batcher.add("deleteWSApps", vars={"onlyNotActive": only_not_active})
4223
+ if is_async:
4224
+ return f.delete_ws_apps_async(only_not_active, wait=wait, auth=auth, conn_url=conn_url)
3634
4225
  return f.delete_ws_apps(only_not_active, wait=wait, auth=auth, conn_url=conn_url)
3635
4226
 
3636
4227
 
@@ -3686,11 +4277,12 @@ def create_collection_from_file(
3686
4277
  auth: Optional[AUTH] = None,
3687
4278
  conn_url: Optional[str] = None,
3688
4279
  batcher: Optional[Batcher] = None,
4280
+ is_async: bool = False,
3689
4281
  ) -> Alias.Id:
3690
4282
  """create collection\n
3691
4283
  return collection id"""
3692
4284
  return fh.create_collection_from_file_df(
3693
- filename, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher
4285
+ filename, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher, is_async=is_async
3694
4286
  )
3695
4287
 
3696
4288
 
@@ -3703,11 +4295,12 @@ def update_collection_from_file(
3703
4295
  auth: Optional[AUTH] = None,
3704
4296
  conn_url: Optional[str] = None,
3705
4297
  batcher: Optional[Batcher] = None,
4298
+ is_async: bool = False,
3706
4299
  ) -> Alias.Id:
3707
4300
  """create collection\n
3708
4301
  return collection id"""
3709
4302
  return fh.update_collection_from_file_df(
3710
- id, filename, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher
4303
+ id, filename, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher, is_async=is_async
3711
4304
  )
3712
4305
 
3713
4306
 
@@ -3719,11 +4312,12 @@ def create_collection_from_df(
3719
4312
  auth: Optional[AUTH] = None,
3720
4313
  conn_url: Optional[str] = None,
3721
4314
  batcher: Optional[Batcher] = None,
4315
+ is_async: bool = False,
3722
4316
  ) -> Alias.Id:
3723
4317
  """create collection\n
3724
4318
  return collection id"""
3725
4319
  return fh.create_collection_from_df(
3726
- data, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher
4320
+ data, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher, is_async=is_async
3727
4321
  )
3728
4322
 
3729
4323
 
@@ -3736,14 +4330,30 @@ def update_collection_from_df(
3736
4330
  auth: Optional[AUTH] = None,
3737
4331
  conn_url: Optional[str] = None,
3738
4332
  batcher: Optional[Batcher] = None,
4333
+ is_async: bool = False,
3739
4334
  ) -> Alias.Id:
3740
4335
  """update collection by id\n
3741
4336
  return collection id"""
3742
4337
  return fh.update_collection_from_df(
3743
- id, data, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher
4338
+ id, data, name, metadata, auth=auth, conn_url=conn_url, batcher=batcher, is_async=is_async
3744
4339
  )
3745
4340
 
3746
4341
 
4342
+ async def get_collection_to_df_async(
4343
+ id: str,
4344
+ offset: int = 0,
4345
+ limit: int = -1,
4346
+ *,
4347
+ auth: Optional[AUTH] = None,
4348
+ conn_url: Optional[str] = None,
4349
+ batcher: Optional[Batcher] = None,
4350
+ ) -> pd.DataFrame:
4351
+ """return df from collection by `id`, pagination: unlimited - `limit` < 0"""
4352
+ collection = await get_collection(id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher, is_async=True)
4353
+ records = list(map(lambda x: json.loads(x.data), collection.docs))
4354
+ return pd.DataFrame.from_records(records)
4355
+
4356
+
3747
4357
  def get_collection_to_df(
3748
4358
  id: str,
3749
4359
  offset: int = 0,
@@ -3752,9 +4362,31 @@ def get_collection_to_df(
3752
4362
  auth: Optional[AUTH] = None,
3753
4363
  conn_url: Optional[str] = None,
3754
4364
  batcher: Optional[Batcher] = None,
4365
+ is_async: bool = False,
3755
4366
  ) -> pd.DataFrame:
3756
4367
  """return df from collection by `id`, pagination: unlimited - `limit` < 0"""
3757
- collection = get_collection(id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher)
4368
+ if is_async:
4369
+ return get_collection_to_df_async(id, offset, limit, conn_url=conn_url, batcher=batcher)
4370
+ collection = get_collection(id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher, is_async=False)
4371
+ records = list(map(lambda x: json.loads(x.data), collection.docs))
4372
+ return pd.DataFrame.from_records(records)
4373
+
4374
+
4375
+ async def get_collection_by_name_to_df_async(
4376
+ name: str,
4377
+ operation_id: Optional[str] = None,
4378
+ run_id: Optional[str] = None,
4379
+ offset: int = 0,
4380
+ limit: int = -1,
4381
+ *,
4382
+ auth: Optional[AUTH] = None,
4383
+ conn_url: Optional[str] = None,
4384
+ batcher: Optional[Batcher] = None,
4385
+ ) -> pd.DataFrame:
4386
+ """return df from collection by `name` and mb also `operation_id` and `run_id` with which it was saved. raise if there are multiple collections, pagination: unlimited - `limit` < 0"""
4387
+ collection = await get_collection_by_name(
4388
+ name, operation_id, run_id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher, is_async=True
4389
+ )
3758
4390
  records = list(map(lambda x: json.loads(x.data), collection.docs))
3759
4391
  return pd.DataFrame.from_records(records)
3760
4392
 
@@ -3769,10 +4401,15 @@ def get_collection_by_name_to_df(
3769
4401
  auth: Optional[AUTH] = None,
3770
4402
  conn_url: Optional[str] = None,
3771
4403
  batcher: Optional[Batcher] = None,
4404
+ is_async: bool = False,
3772
4405
  ) -> pd.DataFrame:
3773
4406
  """return df from collection by `name` and mb also `operation_id` and `run_id` with which it was saved. raise if there are multiple collections, pagination: unlimited - `limit` < 0"""
4407
+ if is_async:
4408
+ return get_collection_by_name_to_df_async(
4409
+ name, operation_id, run_id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher
4410
+ )
3774
4411
  collection = get_collection_by_name(
3775
- name, operation_id, run_id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher
4412
+ name, operation_id, run_id, offset, limit, auth=auth, conn_url=conn_url, batcher=batcher, is_async=False
3776
4413
  )
3777
4414
  records = list(map(lambda x: json.loads(x.data), collection.docs))
3778
4415
  return pd.DataFrame.from_records(records)
@@ -3785,13 +4422,14 @@ def create_doc_from_file(
3785
4422
  auth: Optional[AUTH] = None,
3786
4423
  conn_url: Optional[str] = None,
3787
4424
  batcher: Optional[Batcher] = None,
4425
+ is_async: bool = False,
3788
4426
  ) -> Alias.Id:
3789
4427
  """create doc\n
3790
4428
  return doc id"""
3791
4429
  with open(filename) as f:
3792
4430
  data = json.load(f)
3793
4431
  return create_doc(
3794
- data, name, auth=auth, conn_url=conn_url, batcher=batcher
4432
+ data, name, auth=auth, conn_url=conn_url, batcher=batcher, is_async=is_async
3795
4433
  )
3796
4434
 
3797
4435
 
@@ -3802,6 +4440,7 @@ def create_schemes_by_path(
3802
4440
  auth: Optional[AUTH] = None,
3803
4441
  conn_url: Optional[str] = None,
3804
4442
  batcher: Optional[Batcher] = None,
4443
+ is_async: bool = False,
3805
4444
  ) -> Dict[str, Alias.Id]:
3806
4445
  """schemes are created from json along the path to the directory, scheme_name - is the name of the file without '.json', returned a dict from the name of the created scheme to id"""
3807
4446
  res = dict()
@@ -3811,6 +4450,6 @@ def create_schemes_by_path(
3811
4450
  with open(f"{path}/{filename}") as f:
3812
4451
  data = f.read()
3813
4452
  res[name] = create_scheme(
3814
- data, name, wait=wait, auth=auth, conn_url=conn_url, batcher=batcher
4453
+ data, name, wait=wait, auth=auth, conn_url=conn_url, batcher=batcher, is_async=is_async
3815
4454
  )
3816
4455
  return res