mixpeek 0.18.13__py3-none-any.whl → 0.18.14__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.
- mixpeek/_version.py +3 -3
- mixpeek/assets.py +182 -98
- mixpeek/collections.py +130 -70
- mixpeek/featureextractors.py +26 -14
- mixpeek/features.py +130 -70
- mixpeek/ingestassets.py +78 -42
- mixpeek/namespaces.py +182 -98
- mixpeek/organizations.py +130 -70
- mixpeek/tasks.py +78 -42
- mixpeek/taxonomies.py +78 -42
- mixpeek/taxonomyentities.py +182 -98
- mixpeek/users.py +78 -42
- {mixpeek-0.18.13.dist-info → mixpeek-0.18.14.dist-info}/METADATA +32 -1
- {mixpeek-0.18.13.dist-info → mixpeek-0.18.14.dist-info}/RECORD +15 -15
- {mixpeek-0.18.13.dist-info → mixpeek-0.18.14.dist-info}/WHEEL +0 -0
mixpeek/organizations.py
CHANGED
@@ -72,20 +72,26 @@ class Organizations(BaseSDK):
|
|
72
72
|
retry_config=retry_config,
|
73
73
|
)
|
74
74
|
|
75
|
-
|
75
|
+
response_data: Any = None
|
76
76
|
if utils.match_response(http_res, "200", "application/json"):
|
77
77
|
return utils.unmarshal_json(http_res.text, models.OrganizationModel)
|
78
78
|
if utils.match_response(
|
79
79
|
http_res, ["400", "401", "403", "404"], "application/json"
|
80
80
|
):
|
81
|
-
|
82
|
-
|
81
|
+
response_data = utils.unmarshal_json(
|
82
|
+
http_res.text, models.ErrorResponseData
|
83
|
+
)
|
84
|
+
raise models.ErrorResponse(data=response_data)
|
83
85
|
if utils.match_response(http_res, "422", "application/json"):
|
84
|
-
|
85
|
-
|
86
|
+
response_data = utils.unmarshal_json(
|
87
|
+
http_res.text, models.HTTPValidationErrorData
|
88
|
+
)
|
89
|
+
raise models.HTTPValidationError(data=response_data)
|
86
90
|
if utils.match_response(http_res, "500", "application/json"):
|
87
|
-
|
88
|
-
|
91
|
+
response_data = utils.unmarshal_json(
|
92
|
+
http_res.text, models.ErrorResponseData
|
93
|
+
)
|
94
|
+
raise models.ErrorResponse(data=response_data)
|
89
95
|
if utils.match_response(http_res, "4XX", "*"):
|
90
96
|
http_res_text = utils.stream_to_text(http_res)
|
91
97
|
raise models.APIError(
|
@@ -168,20 +174,26 @@ class Organizations(BaseSDK):
|
|
168
174
|
retry_config=retry_config,
|
169
175
|
)
|
170
176
|
|
171
|
-
|
177
|
+
response_data: Any = None
|
172
178
|
if utils.match_response(http_res, "200", "application/json"):
|
173
179
|
return utils.unmarshal_json(http_res.text, models.OrganizationModel)
|
174
180
|
if utils.match_response(
|
175
181
|
http_res, ["400", "401", "403", "404"], "application/json"
|
176
182
|
):
|
177
|
-
|
178
|
-
|
183
|
+
response_data = utils.unmarshal_json(
|
184
|
+
http_res.text, models.ErrorResponseData
|
185
|
+
)
|
186
|
+
raise models.ErrorResponse(data=response_data)
|
179
187
|
if utils.match_response(http_res, "422", "application/json"):
|
180
|
-
|
181
|
-
|
188
|
+
response_data = utils.unmarshal_json(
|
189
|
+
http_res.text, models.HTTPValidationErrorData
|
190
|
+
)
|
191
|
+
raise models.HTTPValidationError(data=response_data)
|
182
192
|
if utils.match_response(http_res, "500", "application/json"):
|
183
|
-
|
184
|
-
|
193
|
+
response_data = utils.unmarshal_json(
|
194
|
+
http_res.text, models.ErrorResponseData
|
195
|
+
)
|
196
|
+
raise models.ErrorResponse(data=response_data)
|
185
197
|
if utils.match_response(http_res, "4XX", "*"):
|
186
198
|
http_res_text = await utils.stream_to_text_async(http_res)
|
187
199
|
raise models.APIError(
|
@@ -264,20 +276,26 @@ class Organizations(BaseSDK):
|
|
264
276
|
retry_config=retry_config,
|
265
277
|
)
|
266
278
|
|
267
|
-
|
279
|
+
response_data: Any = None
|
268
280
|
if utils.match_response(http_res, "200", "application/json"):
|
269
281
|
return utils.unmarshal_json(http_res.text, models.Usage)
|
270
282
|
if utils.match_response(
|
271
283
|
http_res, ["400", "401", "403", "404"], "application/json"
|
272
284
|
):
|
273
|
-
|
274
|
-
|
285
|
+
response_data = utils.unmarshal_json(
|
286
|
+
http_res.text, models.ErrorResponseData
|
287
|
+
)
|
288
|
+
raise models.ErrorResponse(data=response_data)
|
275
289
|
if utils.match_response(http_res, "422", "application/json"):
|
276
|
-
|
277
|
-
|
290
|
+
response_data = utils.unmarshal_json(
|
291
|
+
http_res.text, models.HTTPValidationErrorData
|
292
|
+
)
|
293
|
+
raise models.HTTPValidationError(data=response_data)
|
278
294
|
if utils.match_response(http_res, "500", "application/json"):
|
279
|
-
|
280
|
-
|
295
|
+
response_data = utils.unmarshal_json(
|
296
|
+
http_res.text, models.ErrorResponseData
|
297
|
+
)
|
298
|
+
raise models.ErrorResponse(data=response_data)
|
281
299
|
if utils.match_response(http_res, "4XX", "*"):
|
282
300
|
http_res_text = utils.stream_to_text(http_res)
|
283
301
|
raise models.APIError(
|
@@ -360,20 +378,26 @@ class Organizations(BaseSDK):
|
|
360
378
|
retry_config=retry_config,
|
361
379
|
)
|
362
380
|
|
363
|
-
|
381
|
+
response_data: Any = None
|
364
382
|
if utils.match_response(http_res, "200", "application/json"):
|
365
383
|
return utils.unmarshal_json(http_res.text, models.Usage)
|
366
384
|
if utils.match_response(
|
367
385
|
http_res, ["400", "401", "403", "404"], "application/json"
|
368
386
|
):
|
369
|
-
|
370
|
-
|
387
|
+
response_data = utils.unmarshal_json(
|
388
|
+
http_res.text, models.ErrorResponseData
|
389
|
+
)
|
390
|
+
raise models.ErrorResponse(data=response_data)
|
371
391
|
if utils.match_response(http_res, "422", "application/json"):
|
372
|
-
|
373
|
-
|
392
|
+
response_data = utils.unmarshal_json(
|
393
|
+
http_res.text, models.HTTPValidationErrorData
|
394
|
+
)
|
395
|
+
raise models.HTTPValidationError(data=response_data)
|
374
396
|
if utils.match_response(http_res, "500", "application/json"):
|
375
|
-
|
376
|
-
|
397
|
+
response_data = utils.unmarshal_json(
|
398
|
+
http_res.text, models.ErrorResponseData
|
399
|
+
)
|
400
|
+
raise models.ErrorResponse(data=response_data)
|
377
401
|
if utils.match_response(http_res, "4XX", "*"):
|
378
402
|
http_res_text = await utils.stream_to_text_async(http_res)
|
379
403
|
raise models.APIError(
|
@@ -484,20 +508,26 @@ class Organizations(BaseSDK):
|
|
484
508
|
retry_config=retry_config,
|
485
509
|
)
|
486
510
|
|
487
|
-
|
511
|
+
response_data: Any = None
|
488
512
|
if utils.match_response(http_res, "200", "application/json"):
|
489
513
|
return utils.unmarshal_json(http_res.text, models.UserModelOutput)
|
490
514
|
if utils.match_response(
|
491
515
|
http_res, ["400", "401", "403", "404"], "application/json"
|
492
516
|
):
|
493
|
-
|
494
|
-
|
517
|
+
response_data = utils.unmarshal_json(
|
518
|
+
http_res.text, models.ErrorResponseData
|
519
|
+
)
|
520
|
+
raise models.ErrorResponse(data=response_data)
|
495
521
|
if utils.match_response(http_res, "422", "application/json"):
|
496
|
-
|
497
|
-
|
522
|
+
response_data = utils.unmarshal_json(
|
523
|
+
http_res.text, models.HTTPValidationErrorData
|
524
|
+
)
|
525
|
+
raise models.HTTPValidationError(data=response_data)
|
498
526
|
if utils.match_response(http_res, "500", "application/json"):
|
499
|
-
|
500
|
-
|
527
|
+
response_data = utils.unmarshal_json(
|
528
|
+
http_res.text, models.ErrorResponseData
|
529
|
+
)
|
530
|
+
raise models.ErrorResponse(data=response_data)
|
501
531
|
if utils.match_response(http_res, "4XX", "*"):
|
502
532
|
http_res_text = utils.stream_to_text(http_res)
|
503
533
|
raise models.APIError(
|
@@ -608,20 +638,26 @@ class Organizations(BaseSDK):
|
|
608
638
|
retry_config=retry_config,
|
609
639
|
)
|
610
640
|
|
611
|
-
|
641
|
+
response_data: Any = None
|
612
642
|
if utils.match_response(http_res, "200", "application/json"):
|
613
643
|
return utils.unmarshal_json(http_res.text, models.UserModelOutput)
|
614
644
|
if utils.match_response(
|
615
645
|
http_res, ["400", "401", "403", "404"], "application/json"
|
616
646
|
):
|
617
|
-
|
618
|
-
|
647
|
+
response_data = utils.unmarshal_json(
|
648
|
+
http_res.text, models.ErrorResponseData
|
649
|
+
)
|
650
|
+
raise models.ErrorResponse(data=response_data)
|
619
651
|
if utils.match_response(http_res, "422", "application/json"):
|
620
|
-
|
621
|
-
|
652
|
+
response_data = utils.unmarshal_json(
|
653
|
+
http_res.text, models.HTTPValidationErrorData
|
654
|
+
)
|
655
|
+
raise models.HTTPValidationError(data=response_data)
|
622
656
|
if utils.match_response(http_res, "500", "application/json"):
|
623
|
-
|
624
|
-
|
657
|
+
response_data = utils.unmarshal_json(
|
658
|
+
http_res.text, models.ErrorResponseData
|
659
|
+
)
|
660
|
+
raise models.ErrorResponse(data=response_data)
|
625
661
|
if utils.match_response(http_res, "4XX", "*"):
|
626
662
|
http_res_text = await utils.stream_to_text_async(http_res)
|
627
663
|
raise models.APIError(
|
@@ -715,20 +751,26 @@ class Organizations(BaseSDK):
|
|
715
751
|
retry_config=retry_config,
|
716
752
|
)
|
717
753
|
|
718
|
-
|
754
|
+
response_data: Any = None
|
719
755
|
if utils.match_response(http_res, "200", "application/json"):
|
720
756
|
return utils.unmarshal_json(http_res.text, Any)
|
721
757
|
if utils.match_response(
|
722
758
|
http_res, ["400", "401", "403", "404"], "application/json"
|
723
759
|
):
|
724
|
-
|
725
|
-
|
760
|
+
response_data = utils.unmarshal_json(
|
761
|
+
http_res.text, models.ErrorResponseData
|
762
|
+
)
|
763
|
+
raise models.ErrorResponse(data=response_data)
|
726
764
|
if utils.match_response(http_res, "422", "application/json"):
|
727
|
-
|
728
|
-
|
765
|
+
response_data = utils.unmarshal_json(
|
766
|
+
http_res.text, models.HTTPValidationErrorData
|
767
|
+
)
|
768
|
+
raise models.HTTPValidationError(data=response_data)
|
729
769
|
if utils.match_response(http_res, "500", "application/json"):
|
730
|
-
|
731
|
-
|
770
|
+
response_data = utils.unmarshal_json(
|
771
|
+
http_res.text, models.ErrorResponseData
|
772
|
+
)
|
773
|
+
raise models.ErrorResponse(data=response_data)
|
732
774
|
if utils.match_response(http_res, "4XX", "*"):
|
733
775
|
http_res_text = utils.stream_to_text(http_res)
|
734
776
|
raise models.APIError(
|
@@ -822,20 +864,26 @@ class Organizations(BaseSDK):
|
|
822
864
|
retry_config=retry_config,
|
823
865
|
)
|
824
866
|
|
825
|
-
|
867
|
+
response_data: Any = None
|
826
868
|
if utils.match_response(http_res, "200", "application/json"):
|
827
869
|
return utils.unmarshal_json(http_res.text, Any)
|
828
870
|
if utils.match_response(
|
829
871
|
http_res, ["400", "401", "403", "404"], "application/json"
|
830
872
|
):
|
831
|
-
|
832
|
-
|
873
|
+
response_data = utils.unmarshal_json(
|
874
|
+
http_res.text, models.ErrorResponseData
|
875
|
+
)
|
876
|
+
raise models.ErrorResponse(data=response_data)
|
833
877
|
if utils.match_response(http_res, "422", "application/json"):
|
834
|
-
|
835
|
-
|
878
|
+
response_data = utils.unmarshal_json(
|
879
|
+
http_res.text, models.HTTPValidationErrorData
|
880
|
+
)
|
881
|
+
raise models.HTTPValidationError(data=response_data)
|
836
882
|
if utils.match_response(http_res, "500", "application/json"):
|
837
|
-
|
838
|
-
|
883
|
+
response_data = utils.unmarshal_json(
|
884
|
+
http_res.text, models.ErrorResponseData
|
885
|
+
)
|
886
|
+
raise models.ErrorResponse(data=response_data)
|
839
887
|
if utils.match_response(http_res, "4XX", "*"):
|
840
888
|
http_res_text = await utils.stream_to_text_async(http_res)
|
841
889
|
raise models.APIError(
|
@@ -940,20 +988,26 @@ class Organizations(BaseSDK):
|
|
940
988
|
retry_config=retry_config,
|
941
989
|
)
|
942
990
|
|
943
|
-
|
991
|
+
response_data: Any = None
|
944
992
|
if utils.match_response(http_res, "200", "application/json"):
|
945
993
|
return utils.unmarshal_json(http_res.text, models.APIKey)
|
946
994
|
if utils.match_response(
|
947
995
|
http_res, ["400", "401", "403", "404"], "application/json"
|
948
996
|
):
|
949
|
-
|
950
|
-
|
997
|
+
response_data = utils.unmarshal_json(
|
998
|
+
http_res.text, models.ErrorResponseData
|
999
|
+
)
|
1000
|
+
raise models.ErrorResponse(data=response_data)
|
951
1001
|
if utils.match_response(http_res, "422", "application/json"):
|
952
|
-
|
953
|
-
|
1002
|
+
response_data = utils.unmarshal_json(
|
1003
|
+
http_res.text, models.HTTPValidationErrorData
|
1004
|
+
)
|
1005
|
+
raise models.HTTPValidationError(data=response_data)
|
954
1006
|
if utils.match_response(http_res, "500", "application/json"):
|
955
|
-
|
956
|
-
|
1007
|
+
response_data = utils.unmarshal_json(
|
1008
|
+
http_res.text, models.ErrorResponseData
|
1009
|
+
)
|
1010
|
+
raise models.ErrorResponse(data=response_data)
|
957
1011
|
if utils.match_response(http_res, "4XX", "*"):
|
958
1012
|
http_res_text = utils.stream_to_text(http_res)
|
959
1013
|
raise models.APIError(
|
@@ -1058,20 +1112,26 @@ class Organizations(BaseSDK):
|
|
1058
1112
|
retry_config=retry_config,
|
1059
1113
|
)
|
1060
1114
|
|
1061
|
-
|
1115
|
+
response_data: Any = None
|
1062
1116
|
if utils.match_response(http_res, "200", "application/json"):
|
1063
1117
|
return utils.unmarshal_json(http_res.text, models.APIKey)
|
1064
1118
|
if utils.match_response(
|
1065
1119
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1066
1120
|
):
|
1067
|
-
|
1068
|
-
|
1121
|
+
response_data = utils.unmarshal_json(
|
1122
|
+
http_res.text, models.ErrorResponseData
|
1123
|
+
)
|
1124
|
+
raise models.ErrorResponse(data=response_data)
|
1069
1125
|
if utils.match_response(http_res, "422", "application/json"):
|
1070
|
-
|
1071
|
-
|
1126
|
+
response_data = utils.unmarshal_json(
|
1127
|
+
http_res.text, models.HTTPValidationErrorData
|
1128
|
+
)
|
1129
|
+
raise models.HTTPValidationError(data=response_data)
|
1072
1130
|
if utils.match_response(http_res, "500", "application/json"):
|
1073
|
-
|
1074
|
-
|
1131
|
+
response_data = utils.unmarshal_json(
|
1132
|
+
http_res.text, models.ErrorResponseData
|
1133
|
+
)
|
1134
|
+
raise models.ErrorResponse(data=response_data)
|
1075
1135
|
if utils.match_response(http_res, "4XX", "*"):
|
1076
1136
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1077
1137
|
raise models.APIError(
|
mixpeek/tasks.py
CHANGED
@@ -81,20 +81,26 @@ class Tasks(BaseSDK):
|
|
81
81
|
retry_config=retry_config,
|
82
82
|
)
|
83
83
|
|
84
|
-
|
84
|
+
response_data: Any = None
|
85
85
|
if utils.match_response(http_res, "200", "application/json"):
|
86
86
|
return utils.unmarshal_json(http_res.text, Any)
|
87
87
|
if utils.match_response(
|
88
88
|
http_res, ["400", "401", "403", "404"], "application/json"
|
89
89
|
):
|
90
|
-
|
91
|
-
|
90
|
+
response_data = utils.unmarshal_json(
|
91
|
+
http_res.text, models.ErrorResponseData
|
92
|
+
)
|
93
|
+
raise models.ErrorResponse(data=response_data)
|
92
94
|
if utils.match_response(http_res, "422", "application/json"):
|
93
|
-
|
94
|
-
|
95
|
+
response_data = utils.unmarshal_json(
|
96
|
+
http_res.text, models.HTTPValidationErrorData
|
97
|
+
)
|
98
|
+
raise models.HTTPValidationError(data=response_data)
|
95
99
|
if utils.match_response(http_res, "500", "application/json"):
|
96
|
-
|
97
|
-
|
100
|
+
response_data = utils.unmarshal_json(
|
101
|
+
http_res.text, models.ErrorResponseData
|
102
|
+
)
|
103
|
+
raise models.ErrorResponse(data=response_data)
|
98
104
|
if utils.match_response(http_res, "4XX", "*"):
|
99
105
|
http_res_text = utils.stream_to_text(http_res)
|
100
106
|
raise models.APIError(
|
@@ -187,20 +193,26 @@ class Tasks(BaseSDK):
|
|
187
193
|
retry_config=retry_config,
|
188
194
|
)
|
189
195
|
|
190
|
-
|
196
|
+
response_data: Any = None
|
191
197
|
if utils.match_response(http_res, "200", "application/json"):
|
192
198
|
return utils.unmarshal_json(http_res.text, Any)
|
193
199
|
if utils.match_response(
|
194
200
|
http_res, ["400", "401", "403", "404"], "application/json"
|
195
201
|
):
|
196
|
-
|
197
|
-
|
202
|
+
response_data = utils.unmarshal_json(
|
203
|
+
http_res.text, models.ErrorResponseData
|
204
|
+
)
|
205
|
+
raise models.ErrorResponse(data=response_data)
|
198
206
|
if utils.match_response(http_res, "422", "application/json"):
|
199
|
-
|
200
|
-
|
207
|
+
response_data = utils.unmarshal_json(
|
208
|
+
http_res.text, models.HTTPValidationErrorData
|
209
|
+
)
|
210
|
+
raise models.HTTPValidationError(data=response_data)
|
201
211
|
if utils.match_response(http_res, "500", "application/json"):
|
202
|
-
|
203
|
-
|
212
|
+
response_data = utils.unmarshal_json(
|
213
|
+
http_res.text, models.ErrorResponseData
|
214
|
+
)
|
215
|
+
raise models.ErrorResponse(data=response_data)
|
204
216
|
if utils.match_response(http_res, "4XX", "*"):
|
205
217
|
http_res_text = await utils.stream_to_text_async(http_res)
|
206
218
|
raise models.APIError(
|
@@ -295,20 +307,26 @@ class Tasks(BaseSDK):
|
|
295
307
|
retry_config=retry_config,
|
296
308
|
)
|
297
309
|
|
298
|
-
|
310
|
+
response_data: Any = None
|
299
311
|
if utils.match_response(http_res, "200", "application/json"):
|
300
312
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
301
313
|
if utils.match_response(
|
302
314
|
http_res, ["400", "401", "403", "404"], "application/json"
|
303
315
|
):
|
304
|
-
|
305
|
-
|
316
|
+
response_data = utils.unmarshal_json(
|
317
|
+
http_res.text, models.ErrorResponseData
|
318
|
+
)
|
319
|
+
raise models.ErrorResponse(data=response_data)
|
306
320
|
if utils.match_response(http_res, "422", "application/json"):
|
307
|
-
|
308
|
-
|
321
|
+
response_data = utils.unmarshal_json(
|
322
|
+
http_res.text, models.HTTPValidationErrorData
|
323
|
+
)
|
324
|
+
raise models.HTTPValidationError(data=response_data)
|
309
325
|
if utils.match_response(http_res, "500", "application/json"):
|
310
|
-
|
311
|
-
|
326
|
+
response_data = utils.unmarshal_json(
|
327
|
+
http_res.text, models.ErrorResponseData
|
328
|
+
)
|
329
|
+
raise models.ErrorResponse(data=response_data)
|
312
330
|
if utils.match_response(http_res, "4XX", "*"):
|
313
331
|
http_res_text = utils.stream_to_text(http_res)
|
314
332
|
raise models.APIError(
|
@@ -403,20 +421,26 @@ class Tasks(BaseSDK):
|
|
403
421
|
retry_config=retry_config,
|
404
422
|
)
|
405
423
|
|
406
|
-
|
424
|
+
response_data: Any = None
|
407
425
|
if utils.match_response(http_res, "200", "application/json"):
|
408
426
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
409
427
|
if utils.match_response(
|
410
428
|
http_res, ["400", "401", "403", "404"], "application/json"
|
411
429
|
):
|
412
|
-
|
413
|
-
|
430
|
+
response_data = utils.unmarshal_json(
|
431
|
+
http_res.text, models.ErrorResponseData
|
432
|
+
)
|
433
|
+
raise models.ErrorResponse(data=response_data)
|
414
434
|
if utils.match_response(http_res, "422", "application/json"):
|
415
|
-
|
416
|
-
|
435
|
+
response_data = utils.unmarshal_json(
|
436
|
+
http_res.text, models.HTTPValidationErrorData
|
437
|
+
)
|
438
|
+
raise models.HTTPValidationError(data=response_data)
|
417
439
|
if utils.match_response(http_res, "500", "application/json"):
|
418
|
-
|
419
|
-
|
440
|
+
response_data = utils.unmarshal_json(
|
441
|
+
http_res.text, models.ErrorResponseData
|
442
|
+
)
|
443
|
+
raise models.ErrorResponse(data=response_data)
|
420
444
|
if utils.match_response(http_res, "4XX", "*"):
|
421
445
|
http_res_text = await utils.stream_to_text_async(http_res)
|
422
446
|
raise models.APIError(
|
@@ -511,20 +535,26 @@ class Tasks(BaseSDK):
|
|
511
535
|
retry_config=retry_config,
|
512
536
|
)
|
513
537
|
|
514
|
-
|
538
|
+
response_data: Any = None
|
515
539
|
if utils.match_response(http_res, "200", "application/json"):
|
516
540
|
return utils.unmarshal_json(http_res.text, models.ListTasksResponse)
|
517
541
|
if utils.match_response(
|
518
542
|
http_res, ["400", "401", "403", "404"], "application/json"
|
519
543
|
):
|
520
|
-
|
521
|
-
|
544
|
+
response_data = utils.unmarshal_json(
|
545
|
+
http_res.text, models.ErrorResponseData
|
546
|
+
)
|
547
|
+
raise models.ErrorResponse(data=response_data)
|
522
548
|
if utils.match_response(http_res, "422", "application/json"):
|
523
|
-
|
524
|
-
|
549
|
+
response_data = utils.unmarshal_json(
|
550
|
+
http_res.text, models.HTTPValidationErrorData
|
551
|
+
)
|
552
|
+
raise models.HTTPValidationError(data=response_data)
|
525
553
|
if utils.match_response(http_res, "500", "application/json"):
|
526
|
-
|
527
|
-
|
554
|
+
response_data = utils.unmarshal_json(
|
555
|
+
http_res.text, models.ErrorResponseData
|
556
|
+
)
|
557
|
+
raise models.ErrorResponse(data=response_data)
|
528
558
|
if utils.match_response(http_res, "4XX", "*"):
|
529
559
|
http_res_text = utils.stream_to_text(http_res)
|
530
560
|
raise models.APIError(
|
@@ -619,20 +649,26 @@ class Tasks(BaseSDK):
|
|
619
649
|
retry_config=retry_config,
|
620
650
|
)
|
621
651
|
|
622
|
-
|
652
|
+
response_data: Any = None
|
623
653
|
if utils.match_response(http_res, "200", "application/json"):
|
624
654
|
return utils.unmarshal_json(http_res.text, models.ListTasksResponse)
|
625
655
|
if utils.match_response(
|
626
656
|
http_res, ["400", "401", "403", "404"], "application/json"
|
627
657
|
):
|
628
|
-
|
629
|
-
|
658
|
+
response_data = utils.unmarshal_json(
|
659
|
+
http_res.text, models.ErrorResponseData
|
660
|
+
)
|
661
|
+
raise models.ErrorResponse(data=response_data)
|
630
662
|
if utils.match_response(http_res, "422", "application/json"):
|
631
|
-
|
632
|
-
|
663
|
+
response_data = utils.unmarshal_json(
|
664
|
+
http_res.text, models.HTTPValidationErrorData
|
665
|
+
)
|
666
|
+
raise models.HTTPValidationError(data=response_data)
|
633
667
|
if utils.match_response(http_res, "500", "application/json"):
|
634
|
-
|
635
|
-
|
668
|
+
response_data = utils.unmarshal_json(
|
669
|
+
http_res.text, models.ErrorResponseData
|
670
|
+
)
|
671
|
+
raise models.ErrorResponse(data=response_data)
|
636
672
|
if utils.match_response(http_res, "4XX", "*"):
|
637
673
|
http_res_text = await utils.stream_to_text_async(http_res)
|
638
674
|
raise models.APIError(
|