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/taxonomies.py CHANGED
@@ -80,20 +80,26 @@ class Taxonomies(BaseSDK):
80
80
  retry_config=retry_config,
81
81
  )
82
82
 
83
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
90
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
93
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
96
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
195
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
198
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
201
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
309
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
312
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
315
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
423
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
426
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
429
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
542
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
545
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
548
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
661
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
664
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
667
- raise models.ErrorResponse(data=data)
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(