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.
@@ -93,20 +93,26 @@ class TaxonomyEntities(BaseSDK):
93
93
  retry_config=retry_config,
94
94
  )
95
95
 
96
- data: Any = None
96
+ response_data: Any = None
97
97
  if utils.match_response(http_res, "200", "application/json"):
98
98
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
99
99
  if utils.match_response(
100
100
  http_res, ["400", "401", "403", "404"], "application/json"
101
101
  ):
102
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
103
- raise models.ErrorResponse(data=data)
102
+ response_data = utils.unmarshal_json(
103
+ http_res.text, models.ErrorResponseData
104
+ )
105
+ raise models.ErrorResponse(data=response_data)
104
106
  if utils.match_response(http_res, "422", "application/json"):
105
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
106
- raise models.HTTPValidationError(data=data)
107
+ response_data = utils.unmarshal_json(
108
+ http_res.text, models.HTTPValidationErrorData
109
+ )
110
+ raise models.HTTPValidationError(data=response_data)
107
111
  if utils.match_response(http_res, "500", "application/json"):
108
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
109
- raise models.ErrorResponse(data=data)
112
+ response_data = utils.unmarshal_json(
113
+ http_res.text, models.ErrorResponseData
114
+ )
115
+ raise models.ErrorResponse(data=response_data)
110
116
  if utils.match_response(http_res, "4XX", "*"):
111
117
  http_res_text = utils.stream_to_text(http_res)
112
118
  raise models.APIError(
@@ -211,20 +217,26 @@ class TaxonomyEntities(BaseSDK):
211
217
  retry_config=retry_config,
212
218
  )
213
219
 
214
- data: Any = None
220
+ response_data: Any = None
215
221
  if utils.match_response(http_res, "200", "application/json"):
216
222
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
217
223
  if utils.match_response(
218
224
  http_res, ["400", "401", "403", "404"], "application/json"
219
225
  ):
220
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
221
- raise models.ErrorResponse(data=data)
226
+ response_data = utils.unmarshal_json(
227
+ http_res.text, models.ErrorResponseData
228
+ )
229
+ raise models.ErrorResponse(data=response_data)
222
230
  if utils.match_response(http_res, "422", "application/json"):
223
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
224
- raise models.HTTPValidationError(data=data)
231
+ response_data = utils.unmarshal_json(
232
+ http_res.text, models.HTTPValidationErrorData
233
+ )
234
+ raise models.HTTPValidationError(data=response_data)
225
235
  if utils.match_response(http_res, "500", "application/json"):
226
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
227
- raise models.ErrorResponse(data=data)
236
+ response_data = utils.unmarshal_json(
237
+ http_res.text, models.ErrorResponseData
238
+ )
239
+ raise models.ErrorResponse(data=response_data)
228
240
  if utils.match_response(http_res, "4XX", "*"):
229
241
  http_res_text = await utils.stream_to_text_async(http_res)
230
242
  raise models.APIError(
@@ -319,20 +331,26 @@ class TaxonomyEntities(BaseSDK):
319
331
  retry_config=retry_config,
320
332
  )
321
333
 
322
- data: Any = None
334
+ response_data: Any = None
323
335
  if utils.match_response(http_res, "200", "application/json"):
324
336
  return utils.unmarshal_json(http_res.text, models.ListTaxonomiesResponse)
325
337
  if utils.match_response(
326
338
  http_res, ["400", "401", "403", "404"], "application/json"
327
339
  ):
328
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
329
- raise models.ErrorResponse(data=data)
340
+ response_data = utils.unmarshal_json(
341
+ http_res.text, models.ErrorResponseData
342
+ )
343
+ raise models.ErrorResponse(data=response_data)
330
344
  if utils.match_response(http_res, "422", "application/json"):
331
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
332
- raise models.HTTPValidationError(data=data)
345
+ response_data = utils.unmarshal_json(
346
+ http_res.text, models.HTTPValidationErrorData
347
+ )
348
+ raise models.HTTPValidationError(data=response_data)
333
349
  if utils.match_response(http_res, "500", "application/json"):
334
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
335
- raise models.ErrorResponse(data=data)
350
+ response_data = utils.unmarshal_json(
351
+ http_res.text, models.ErrorResponseData
352
+ )
353
+ raise models.ErrorResponse(data=response_data)
336
354
  if utils.match_response(http_res, "4XX", "*"):
337
355
  http_res_text = utils.stream_to_text(http_res)
338
356
  raise models.APIError(
@@ -427,20 +445,26 @@ class TaxonomyEntities(BaseSDK):
427
445
  retry_config=retry_config,
428
446
  )
429
447
 
430
- data: Any = None
448
+ response_data: Any = None
431
449
  if utils.match_response(http_res, "200", "application/json"):
432
450
  return utils.unmarshal_json(http_res.text, models.ListTaxonomiesResponse)
433
451
  if utils.match_response(
434
452
  http_res, ["400", "401", "403", "404"], "application/json"
435
453
  ):
436
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
437
- raise models.ErrorResponse(data=data)
454
+ response_data = utils.unmarshal_json(
455
+ http_res.text, models.ErrorResponseData
456
+ )
457
+ raise models.ErrorResponse(data=response_data)
438
458
  if utils.match_response(http_res, "422", "application/json"):
439
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
440
- raise models.HTTPValidationError(data=data)
459
+ response_data = utils.unmarshal_json(
460
+ http_res.text, models.HTTPValidationErrorData
461
+ )
462
+ raise models.HTTPValidationError(data=response_data)
441
463
  if utils.match_response(http_res, "500", "application/json"):
442
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
443
- raise models.ErrorResponse(data=data)
464
+ response_data = utils.unmarshal_json(
465
+ http_res.text, models.ErrorResponseData
466
+ )
467
+ raise models.ErrorResponse(data=response_data)
444
468
  if utils.match_response(http_res, "4XX", "*"):
445
469
  http_res_text = await utils.stream_to_text_async(http_res)
446
470
  raise models.APIError(
@@ -532,20 +556,26 @@ class TaxonomyEntities(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.TaxonomyNode)
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(
@@ -637,20 +667,26 @@ class TaxonomyEntities(BaseSDK):
637
667
  retry_config=retry_config,
638
668
  )
639
669
 
640
- data: Any = None
670
+ response_data: Any = None
641
671
  if utils.match_response(http_res, "200", "application/json"):
642
672
  return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
643
673
  if utils.match_response(
644
674
  http_res, ["400", "401", "403", "404"], "application/json"
645
675
  ):
646
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
647
- raise models.ErrorResponse(data=data)
676
+ response_data = utils.unmarshal_json(
677
+ http_res.text, models.ErrorResponseData
678
+ )
679
+ raise models.ErrorResponse(data=response_data)
648
680
  if utils.match_response(http_res, "422", "application/json"):
649
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
650
- raise models.HTTPValidationError(data=data)
681
+ response_data = utils.unmarshal_json(
682
+ http_res.text, models.HTTPValidationErrorData
683
+ )
684
+ raise models.HTTPValidationError(data=response_data)
651
685
  if utils.match_response(http_res, "500", "application/json"):
652
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
653
- raise models.ErrorResponse(data=data)
686
+ response_data = utils.unmarshal_json(
687
+ http_res.text, models.ErrorResponseData
688
+ )
689
+ raise models.ErrorResponse(data=response_data)
654
690
  if utils.match_response(http_res, "4XX", "*"):
655
691
  http_res_text = await utils.stream_to_text_async(http_res)
656
692
  raise models.APIError(
@@ -756,20 +792,26 @@ class TaxonomyEntities(BaseSDK):
756
792
  retry_config=retry_config,
757
793
  )
758
794
 
759
- data: Any = None
795
+ response_data: Any = None
760
796
  if utils.match_response(http_res, "200", "application/json"):
761
797
  return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
762
798
  if utils.match_response(
763
799
  http_res, ["400", "401", "403", "404"], "application/json"
764
800
  ):
765
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
766
- raise models.ErrorResponse(data=data)
801
+ response_data = utils.unmarshal_json(
802
+ http_res.text, models.ErrorResponseData
803
+ )
804
+ raise models.ErrorResponse(data=response_data)
767
805
  if utils.match_response(http_res, "422", "application/json"):
768
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
769
- raise models.HTTPValidationError(data=data)
806
+ response_data = utils.unmarshal_json(
807
+ http_res.text, models.HTTPValidationErrorData
808
+ )
809
+ raise models.HTTPValidationError(data=response_data)
770
810
  if utils.match_response(http_res, "500", "application/json"):
771
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
772
- raise models.ErrorResponse(data=data)
811
+ response_data = utils.unmarshal_json(
812
+ http_res.text, models.ErrorResponseData
813
+ )
814
+ raise models.ErrorResponse(data=response_data)
773
815
  if utils.match_response(http_res, "4XX", "*"):
774
816
  http_res_text = utils.stream_to_text(http_res)
775
817
  raise models.APIError(
@@ -875,20 +917,26 @@ class TaxonomyEntities(BaseSDK):
875
917
  retry_config=retry_config,
876
918
  )
877
919
 
878
- data: Any = None
920
+ response_data: Any = None
879
921
  if utils.match_response(http_res, "200", "application/json"):
880
922
  return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
881
923
  if utils.match_response(
882
924
  http_res, ["400", "401", "403", "404"], "application/json"
883
925
  ):
884
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
885
- raise models.ErrorResponse(data=data)
926
+ response_data = utils.unmarshal_json(
927
+ http_res.text, models.ErrorResponseData
928
+ )
929
+ raise models.ErrorResponse(data=response_data)
886
930
  if utils.match_response(http_res, "422", "application/json"):
887
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
888
- raise models.HTTPValidationError(data=data)
931
+ response_data = utils.unmarshal_json(
932
+ http_res.text, models.HTTPValidationErrorData
933
+ )
934
+ raise models.HTTPValidationError(data=response_data)
889
935
  if utils.match_response(http_res, "500", "application/json"):
890
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
891
- raise models.ErrorResponse(data=data)
936
+ response_data = utils.unmarshal_json(
937
+ http_res.text, models.ErrorResponseData
938
+ )
939
+ raise models.ErrorResponse(data=response_data)
892
940
  if utils.match_response(http_res, "4XX", "*"):
893
941
  http_res_text = await utils.stream_to_text_async(http_res)
894
942
  raise models.APIError(
@@ -1007,20 +1055,26 @@ class TaxonomyEntities(BaseSDK):
1007
1055
  retry_config=retry_config,
1008
1056
  )
1009
1057
 
1010
- data: Any = None
1058
+ response_data: Any = None
1011
1059
  if utils.match_response(http_res, "200", "application/json"):
1012
1060
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
1013
1061
  if utils.match_response(
1014
1062
  http_res, ["400", "401", "403", "404"], "application/json"
1015
1063
  ):
1016
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1017
- raise models.ErrorResponse(data=data)
1064
+ response_data = utils.unmarshal_json(
1065
+ http_res.text, models.ErrorResponseData
1066
+ )
1067
+ raise models.ErrorResponse(data=response_data)
1018
1068
  if utils.match_response(http_res, "422", "application/json"):
1019
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1020
- raise models.HTTPValidationError(data=data)
1069
+ response_data = utils.unmarshal_json(
1070
+ http_res.text, models.HTTPValidationErrorData
1071
+ )
1072
+ raise models.HTTPValidationError(data=response_data)
1021
1073
  if utils.match_response(http_res, "500", "application/json"):
1022
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1023
- raise models.ErrorResponse(data=data)
1074
+ response_data = utils.unmarshal_json(
1075
+ http_res.text, models.ErrorResponseData
1076
+ )
1077
+ raise models.ErrorResponse(data=response_data)
1024
1078
  if utils.match_response(http_res, "4XX", "*"):
1025
1079
  http_res_text = utils.stream_to_text(http_res)
1026
1080
  raise models.APIError(
@@ -1139,20 +1193,26 @@ class TaxonomyEntities(BaseSDK):
1139
1193
  retry_config=retry_config,
1140
1194
  )
1141
1195
 
1142
- data: Any = None
1196
+ response_data: Any = None
1143
1197
  if utils.match_response(http_res, "200", "application/json"):
1144
1198
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
1145
1199
  if utils.match_response(
1146
1200
  http_res, ["400", "401", "403", "404"], "application/json"
1147
1201
  ):
1148
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1149
- raise models.ErrorResponse(data=data)
1202
+ response_data = utils.unmarshal_json(
1203
+ http_res.text, models.ErrorResponseData
1204
+ )
1205
+ raise models.ErrorResponse(data=response_data)
1150
1206
  if utils.match_response(http_res, "422", "application/json"):
1151
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1152
- raise models.HTTPValidationError(data=data)
1207
+ response_data = utils.unmarshal_json(
1208
+ http_res.text, models.HTTPValidationErrorData
1209
+ )
1210
+ raise models.HTTPValidationError(data=response_data)
1153
1211
  if utils.match_response(http_res, "500", "application/json"):
1154
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1155
- raise models.ErrorResponse(data=data)
1212
+ response_data = utils.unmarshal_json(
1213
+ http_res.text, models.ErrorResponseData
1214
+ )
1215
+ raise models.ErrorResponse(data=response_data)
1156
1216
  if utils.match_response(http_res, "4XX", "*"):
1157
1217
  http_res_text = await utils.stream_to_text_async(http_res)
1158
1218
  raise models.APIError(
@@ -1287,7 +1347,7 @@ class TaxonomyEntities(BaseSDK):
1287
1347
  retry_config=retry_config,
1288
1348
  )
1289
1349
 
1290
- data: Any = None
1350
+ response_data: Any = None
1291
1351
  if utils.match_response(http_res, "200", "application/json"):
1292
1352
  return utils.unmarshal_json(
1293
1353
  http_res.text, models.ListClassificationsResponse
@@ -1295,14 +1355,20 @@ class TaxonomyEntities(BaseSDK):
1295
1355
  if utils.match_response(
1296
1356
  http_res, ["400", "401", "403", "404"], "application/json"
1297
1357
  ):
1298
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1299
- raise models.ErrorResponse(data=data)
1358
+ response_data = utils.unmarshal_json(
1359
+ http_res.text, models.ErrorResponseData
1360
+ )
1361
+ raise models.ErrorResponse(data=response_data)
1300
1362
  if utils.match_response(http_res, "422", "application/json"):
1301
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1302
- raise models.HTTPValidationError(data=data)
1363
+ response_data = utils.unmarshal_json(
1364
+ http_res.text, models.HTTPValidationErrorData
1365
+ )
1366
+ raise models.HTTPValidationError(data=response_data)
1303
1367
  if utils.match_response(http_res, "500", "application/json"):
1304
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1305
- raise models.ErrorResponse(data=data)
1368
+ response_data = utils.unmarshal_json(
1369
+ http_res.text, models.ErrorResponseData
1370
+ )
1371
+ raise models.ErrorResponse(data=response_data)
1306
1372
  if utils.match_response(http_res, "4XX", "*"):
1307
1373
  http_res_text = utils.stream_to_text(http_res)
1308
1374
  raise models.APIError(
@@ -1437,7 +1503,7 @@ class TaxonomyEntities(BaseSDK):
1437
1503
  retry_config=retry_config,
1438
1504
  )
1439
1505
 
1440
- data: Any = None
1506
+ response_data: Any = None
1441
1507
  if utils.match_response(http_res, "200", "application/json"):
1442
1508
  return utils.unmarshal_json(
1443
1509
  http_res.text, models.ListClassificationsResponse
@@ -1445,14 +1511,20 @@ class TaxonomyEntities(BaseSDK):
1445
1511
  if utils.match_response(
1446
1512
  http_res, ["400", "401", "403", "404"], "application/json"
1447
1513
  ):
1448
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1449
- raise models.ErrorResponse(data=data)
1514
+ response_data = utils.unmarshal_json(
1515
+ http_res.text, models.ErrorResponseData
1516
+ )
1517
+ raise models.ErrorResponse(data=response_data)
1450
1518
  if utils.match_response(http_res, "422", "application/json"):
1451
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1452
- raise models.HTTPValidationError(data=data)
1519
+ response_data = utils.unmarshal_json(
1520
+ http_res.text, models.HTTPValidationErrorData
1521
+ )
1522
+ raise models.HTTPValidationError(data=response_data)
1453
1523
  if utils.match_response(http_res, "500", "application/json"):
1454
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1455
- raise models.ErrorResponse(data=data)
1524
+ response_data = utils.unmarshal_json(
1525
+ http_res.text, models.ErrorResponseData
1526
+ )
1527
+ raise models.ErrorResponse(data=response_data)
1456
1528
  if utils.match_response(http_res, "4XX", "*"):
1457
1529
  http_res_text = await utils.stream_to_text_async(http_res)
1458
1530
  raise models.APIError(
@@ -1548,20 +1620,26 @@ class TaxonomyEntities(BaseSDK):
1548
1620
  retry_config=retry_config,
1549
1621
  )
1550
1622
 
1551
- data: Any = None
1623
+ response_data: Any = None
1552
1624
  if utils.match_response(http_res, "200", "application/json"):
1553
1625
  return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
1554
1626
  if utils.match_response(
1555
1627
  http_res, ["400", "401", "403", "404"], "application/json"
1556
1628
  ):
1557
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1558
- raise models.ErrorResponse(data=data)
1629
+ response_data = utils.unmarshal_json(
1630
+ http_res.text, models.ErrorResponseData
1631
+ )
1632
+ raise models.ErrorResponse(data=response_data)
1559
1633
  if utils.match_response(http_res, "422", "application/json"):
1560
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1561
- raise models.HTTPValidationError(data=data)
1634
+ response_data = utils.unmarshal_json(
1635
+ http_res.text, models.HTTPValidationErrorData
1636
+ )
1637
+ raise models.HTTPValidationError(data=response_data)
1562
1638
  if utils.match_response(http_res, "500", "application/json"):
1563
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1564
- raise models.ErrorResponse(data=data)
1639
+ response_data = utils.unmarshal_json(
1640
+ http_res.text, models.ErrorResponseData
1641
+ )
1642
+ raise models.ErrorResponse(data=response_data)
1565
1643
  if utils.match_response(http_res, "4XX", "*"):
1566
1644
  http_res_text = utils.stream_to_text(http_res)
1567
1645
  raise models.APIError(
@@ -1657,20 +1735,26 @@ class TaxonomyEntities(BaseSDK):
1657
1735
  retry_config=retry_config,
1658
1736
  )
1659
1737
 
1660
- data: Any = None
1738
+ response_data: Any = None
1661
1739
  if utils.match_response(http_res, "200", "application/json"):
1662
1740
  return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
1663
1741
  if utils.match_response(
1664
1742
  http_res, ["400", "401", "403", "404"], "application/json"
1665
1743
  ):
1666
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1667
- raise models.ErrorResponse(data=data)
1744
+ response_data = utils.unmarshal_json(
1745
+ http_res.text, models.ErrorResponseData
1746
+ )
1747
+ raise models.ErrorResponse(data=response_data)
1668
1748
  if utils.match_response(http_res, "422", "application/json"):
1669
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1670
- raise models.HTTPValidationError(data=data)
1749
+ response_data = utils.unmarshal_json(
1750
+ http_res.text, models.HTTPValidationErrorData
1751
+ )
1752
+ raise models.HTTPValidationError(data=response_data)
1671
1753
  if utils.match_response(http_res, "500", "application/json"):
1672
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1673
- raise models.ErrorResponse(data=data)
1754
+ response_data = utils.unmarshal_json(
1755
+ http_res.text, models.ErrorResponseData
1756
+ )
1757
+ raise models.ErrorResponse(data=response_data)
1674
1758
  if utils.match_response(http_res, "4XX", "*"):
1675
1759
  http_res_text = await utils.stream_to_text_async(http_res)
1676
1760
  raise models.APIError(