mixpeek 0.18.13__py3-none-any.whl → 0.18.15__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.15.dist-info}/METADATA +32 -1
- {mixpeek-0.18.13.dist-info → mixpeek-0.18.15.dist-info}/RECORD +15 -15
- {mixpeek-0.18.13.dist-info → mixpeek-0.18.15.dist-info}/WHEEL +0 -0
mixpeek/taxonomies.py
CHANGED
@@ -80,20 +80,26 @@ class Taxonomies(BaseSDK):
|
|
80
80
|
retry_config=retry_config,
|
81
81
|
)
|
82
82
|
|
83
|
-
|
83
|
+
response_data: Any = None
|
84
84
|
if utils.match_response(http_res, "200", "application/json"):
|
85
85
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
86
86
|
if utils.match_response(
|
87
87
|
http_res, ["400", "401", "403", "404"], "application/json"
|
88
88
|
):
|
89
|
-
|
90
|
-
|
89
|
+
response_data = utils.unmarshal_json(
|
90
|
+
http_res.text, models.ErrorResponseData
|
91
|
+
)
|
92
|
+
raise models.ErrorResponse(data=response_data)
|
91
93
|
if utils.match_response(http_res, "422", "application/json"):
|
92
|
-
|
93
|
-
|
94
|
+
response_data = utils.unmarshal_json(
|
95
|
+
http_res.text, models.HTTPValidationErrorData
|
96
|
+
)
|
97
|
+
raise models.HTTPValidationError(data=response_data)
|
94
98
|
if utils.match_response(http_res, "500", "application/json"):
|
95
|
-
|
96
|
-
|
99
|
+
response_data = utils.unmarshal_json(
|
100
|
+
http_res.text, models.ErrorResponseData
|
101
|
+
)
|
102
|
+
raise models.ErrorResponse(data=response_data)
|
97
103
|
if utils.match_response(http_res, "4XX", "*"):
|
98
104
|
http_res_text = utils.stream_to_text(http_res)
|
99
105
|
raise models.APIError(
|
@@ -185,20 +191,26 @@ class Taxonomies(BaseSDK):
|
|
185
191
|
retry_config=retry_config,
|
186
192
|
)
|
187
193
|
|
188
|
-
|
194
|
+
response_data: Any = None
|
189
195
|
if utils.match_response(http_res, "200", "application/json"):
|
190
196
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
191
197
|
if utils.match_response(
|
192
198
|
http_res, ["400", "401", "403", "404"], "application/json"
|
193
199
|
):
|
194
|
-
|
195
|
-
|
200
|
+
response_data = utils.unmarshal_json(
|
201
|
+
http_res.text, models.ErrorResponseData
|
202
|
+
)
|
203
|
+
raise models.ErrorResponse(data=response_data)
|
196
204
|
if utils.match_response(http_res, "422", "application/json"):
|
197
|
-
|
198
|
-
|
205
|
+
response_data = utils.unmarshal_json(
|
206
|
+
http_res.text, models.HTTPValidationErrorData
|
207
|
+
)
|
208
|
+
raise models.HTTPValidationError(data=response_data)
|
199
209
|
if utils.match_response(http_res, "500", "application/json"):
|
200
|
-
|
201
|
-
|
210
|
+
response_data = utils.unmarshal_json(
|
211
|
+
http_res.text, models.ErrorResponseData
|
212
|
+
)
|
213
|
+
raise models.ErrorResponse(data=response_data)
|
202
214
|
if utils.match_response(http_res, "4XX", "*"):
|
203
215
|
http_res_text = await utils.stream_to_text_async(http_res)
|
204
216
|
raise models.APIError(
|
@@ -299,20 +311,26 @@ class Taxonomies(BaseSDK):
|
|
299
311
|
retry_config=retry_config,
|
300
312
|
)
|
301
313
|
|
302
|
-
|
314
|
+
response_data: Any = None
|
303
315
|
if utils.match_response(http_res, "200", "application/json"):
|
304
316
|
return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
|
305
317
|
if utils.match_response(
|
306
318
|
http_res, ["400", "401", "403", "404"], "application/json"
|
307
319
|
):
|
308
|
-
|
309
|
-
|
320
|
+
response_data = utils.unmarshal_json(
|
321
|
+
http_res.text, models.ErrorResponseData
|
322
|
+
)
|
323
|
+
raise models.ErrorResponse(data=response_data)
|
310
324
|
if utils.match_response(http_res, "422", "application/json"):
|
311
|
-
|
312
|
-
|
325
|
+
response_data = utils.unmarshal_json(
|
326
|
+
http_res.text, models.HTTPValidationErrorData
|
327
|
+
)
|
328
|
+
raise models.HTTPValidationError(data=response_data)
|
313
329
|
if utils.match_response(http_res, "500", "application/json"):
|
314
|
-
|
315
|
-
|
330
|
+
response_data = utils.unmarshal_json(
|
331
|
+
http_res.text, models.ErrorResponseData
|
332
|
+
)
|
333
|
+
raise models.ErrorResponse(data=response_data)
|
316
334
|
if utils.match_response(http_res, "4XX", "*"):
|
317
335
|
http_res_text = utils.stream_to_text(http_res)
|
318
336
|
raise models.APIError(
|
@@ -413,20 +431,26 @@ class Taxonomies(BaseSDK):
|
|
413
431
|
retry_config=retry_config,
|
414
432
|
)
|
415
433
|
|
416
|
-
|
434
|
+
response_data: Any = None
|
417
435
|
if utils.match_response(http_res, "200", "application/json"):
|
418
436
|
return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
|
419
437
|
if utils.match_response(
|
420
438
|
http_res, ["400", "401", "403", "404"], "application/json"
|
421
439
|
):
|
422
|
-
|
423
|
-
|
440
|
+
response_data = utils.unmarshal_json(
|
441
|
+
http_res.text, models.ErrorResponseData
|
442
|
+
)
|
443
|
+
raise models.ErrorResponse(data=response_data)
|
424
444
|
if utils.match_response(http_res, "422", "application/json"):
|
425
|
-
|
426
|
-
|
445
|
+
response_data = utils.unmarshal_json(
|
446
|
+
http_res.text, models.HTTPValidationErrorData
|
447
|
+
)
|
448
|
+
raise models.HTTPValidationError(data=response_data)
|
427
449
|
if utils.match_response(http_res, "500", "application/json"):
|
428
|
-
|
429
|
-
|
450
|
+
response_data = utils.unmarshal_json(
|
451
|
+
http_res.text, models.ErrorResponseData
|
452
|
+
)
|
453
|
+
raise models.ErrorResponse(data=response_data)
|
430
454
|
if utils.match_response(http_res, "4XX", "*"):
|
431
455
|
http_res_text = await utils.stream_to_text_async(http_res)
|
432
456
|
raise models.APIError(
|
@@ -532,20 +556,26 @@ class Taxonomies(BaseSDK):
|
|
532
556
|
retry_config=retry_config,
|
533
557
|
)
|
534
558
|
|
535
|
-
|
559
|
+
response_data: Any = None
|
536
560
|
if utils.match_response(http_res, "200", "application/json"):
|
537
561
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
538
562
|
if utils.match_response(
|
539
563
|
http_res, ["400", "401", "403", "404"], "application/json"
|
540
564
|
):
|
541
|
-
|
542
|
-
|
565
|
+
response_data = utils.unmarshal_json(
|
566
|
+
http_res.text, models.ErrorResponseData
|
567
|
+
)
|
568
|
+
raise models.ErrorResponse(data=response_data)
|
543
569
|
if utils.match_response(http_res, "422", "application/json"):
|
544
|
-
|
545
|
-
|
570
|
+
response_data = utils.unmarshal_json(
|
571
|
+
http_res.text, models.HTTPValidationErrorData
|
572
|
+
)
|
573
|
+
raise models.HTTPValidationError(data=response_data)
|
546
574
|
if utils.match_response(http_res, "500", "application/json"):
|
547
|
-
|
548
|
-
|
575
|
+
response_data = utils.unmarshal_json(
|
576
|
+
http_res.text, models.ErrorResponseData
|
577
|
+
)
|
578
|
+
raise models.ErrorResponse(data=response_data)
|
549
579
|
if utils.match_response(http_res, "4XX", "*"):
|
550
580
|
http_res_text = utils.stream_to_text(http_res)
|
551
581
|
raise models.APIError(
|
@@ -651,20 +681,26 @@ class Taxonomies(BaseSDK):
|
|
651
681
|
retry_config=retry_config,
|
652
682
|
)
|
653
683
|
|
654
|
-
|
684
|
+
response_data: Any = None
|
655
685
|
if utils.match_response(http_res, "200", "application/json"):
|
656
686
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
657
687
|
if utils.match_response(
|
658
688
|
http_res, ["400", "401", "403", "404"], "application/json"
|
659
689
|
):
|
660
|
-
|
661
|
-
|
690
|
+
response_data = utils.unmarshal_json(
|
691
|
+
http_res.text, models.ErrorResponseData
|
692
|
+
)
|
693
|
+
raise models.ErrorResponse(data=response_data)
|
662
694
|
if utils.match_response(http_res, "422", "application/json"):
|
663
|
-
|
664
|
-
|
695
|
+
response_data = utils.unmarshal_json(
|
696
|
+
http_res.text, models.HTTPValidationErrorData
|
697
|
+
)
|
698
|
+
raise models.HTTPValidationError(data=response_data)
|
665
699
|
if utils.match_response(http_res, "500", "application/json"):
|
666
|
-
|
667
|
-
|
700
|
+
response_data = utils.unmarshal_json(
|
701
|
+
http_res.text, models.ErrorResponseData
|
702
|
+
)
|
703
|
+
raise models.ErrorResponse(data=response_data)
|
668
704
|
if utils.match_response(http_res, "4XX", "*"):
|
669
705
|
http_res_text = await utils.stream_to_text_async(http_res)
|
670
706
|
raise models.APIError(
|