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/organizations.py CHANGED
@@ -72,20 +72,26 @@ class Organizations(BaseSDK):
72
72
  retry_config=retry_config,
73
73
  )
74
74
 
75
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
82
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
85
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
88
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
178
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
181
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
184
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
274
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
277
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
280
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
370
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
373
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
376
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
494
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
497
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
500
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
618
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
621
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
624
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
725
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
728
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
731
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
832
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
835
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
838
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
950
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
953
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
956
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1068
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1071
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1074
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
91
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
94
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
97
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
197
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
200
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
203
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
305
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
308
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
311
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
413
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
416
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
419
- 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)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
521
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
524
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
527
- raise models.ErrorResponse(data=data)
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
- data: Any = None
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
629
- raise models.ErrorResponse(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
632
- raise models.HTTPValidationError(data=data)
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
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
635
- raise models.ErrorResponse(data=data)
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(