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/features.py CHANGED
@@ -81,20 +81,26 @@ class Features(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, models.FeatureResponse)
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 Features(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, models.FeatureResponse)
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(
@@ -293,20 +305,26 @@ class Features(BaseSDK):
293
305
  retry_config=retry_config,
294
306
  )
295
307
 
296
- data: Any = None
308
+ response_data: Any = None
297
309
  if utils.match_response(http_res, "200", "application/json"):
298
310
  return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
299
311
  if utils.match_response(
300
312
  http_res, ["400", "401", "403", "404"], "application/json"
301
313
  ):
302
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
303
- raise models.ErrorResponse(data=data)
314
+ response_data = utils.unmarshal_json(
315
+ http_res.text, models.ErrorResponseData
316
+ )
317
+ raise models.ErrorResponse(data=response_data)
304
318
  if utils.match_response(http_res, "422", "application/json"):
305
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
306
- raise models.HTTPValidationError(data=data)
319
+ response_data = utils.unmarshal_json(
320
+ http_res.text, models.HTTPValidationErrorData
321
+ )
322
+ raise models.HTTPValidationError(data=response_data)
307
323
  if utils.match_response(http_res, "500", "application/json"):
308
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
309
- raise models.ErrorResponse(data=data)
324
+ response_data = utils.unmarshal_json(
325
+ http_res.text, models.ErrorResponseData
326
+ )
327
+ raise models.ErrorResponse(data=response_data)
310
328
  if utils.match_response(http_res, "4XX", "*"):
311
329
  http_res_text = utils.stream_to_text(http_res)
312
330
  raise models.APIError(
@@ -399,20 +417,26 @@ class Features(BaseSDK):
399
417
  retry_config=retry_config,
400
418
  )
401
419
 
402
- data: Any = None
420
+ response_data: Any = None
403
421
  if utils.match_response(http_res, "200", "application/json"):
404
422
  return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
405
423
  if utils.match_response(
406
424
  http_res, ["400", "401", "403", "404"], "application/json"
407
425
  ):
408
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
409
- raise models.ErrorResponse(data=data)
426
+ response_data = utils.unmarshal_json(
427
+ http_res.text, models.ErrorResponseData
428
+ )
429
+ raise models.ErrorResponse(data=response_data)
410
430
  if utils.match_response(http_res, "422", "application/json"):
411
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
412
- raise models.HTTPValidationError(data=data)
431
+ response_data = utils.unmarshal_json(
432
+ http_res.text, models.HTTPValidationErrorData
433
+ )
434
+ raise models.HTTPValidationError(data=response_data)
413
435
  if utils.match_response(http_res, "500", "application/json"):
414
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
415
- raise models.ErrorResponse(data=data)
436
+ response_data = utils.unmarshal_json(
437
+ http_res.text, models.ErrorResponseData
438
+ )
439
+ raise models.ErrorResponse(data=response_data)
416
440
  if utils.match_response(http_res, "4XX", "*"):
417
441
  http_res_text = await utils.stream_to_text_async(http_res)
418
442
  raise models.APIError(
@@ -522,20 +546,26 @@ class Features(BaseSDK):
522
546
  retry_config=retry_config,
523
547
  )
524
548
 
525
- data: Any = None
549
+ response_data: Any = None
526
550
  if utils.match_response(http_res, "200", "application/json"):
527
551
  return utils.unmarshal_json(http_res.text, models.FeatureResponse)
528
552
  if utils.match_response(
529
553
  http_res, ["400", "401", "403", "404"], "application/json"
530
554
  ):
531
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
532
- raise models.ErrorResponse(data=data)
555
+ response_data = utils.unmarshal_json(
556
+ http_res.text, models.ErrorResponseData
557
+ )
558
+ raise models.ErrorResponse(data=response_data)
533
559
  if utils.match_response(http_res, "422", "application/json"):
534
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
535
- raise models.HTTPValidationError(data=data)
560
+ response_data = utils.unmarshal_json(
561
+ http_res.text, models.HTTPValidationErrorData
562
+ )
563
+ raise models.HTTPValidationError(data=response_data)
536
564
  if utils.match_response(http_res, "500", "application/json"):
537
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
538
- 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)
539
569
  if utils.match_response(http_res, "4XX", "*"):
540
570
  http_res_text = utils.stream_to_text(http_res)
541
571
  raise models.APIError(
@@ -645,20 +675,26 @@ class Features(BaseSDK):
645
675
  retry_config=retry_config,
646
676
  )
647
677
 
648
- data: Any = None
678
+ response_data: Any = None
649
679
  if utils.match_response(http_res, "200", "application/json"):
650
680
  return utils.unmarshal_json(http_res.text, models.FeatureResponse)
651
681
  if utils.match_response(
652
682
  http_res, ["400", "401", "403", "404"], "application/json"
653
683
  ):
654
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
655
- raise models.ErrorResponse(data=data)
684
+ response_data = utils.unmarshal_json(
685
+ http_res.text, models.ErrorResponseData
686
+ )
687
+ raise models.ErrorResponse(data=response_data)
656
688
  if utils.match_response(http_res, "422", "application/json"):
657
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
658
- raise models.HTTPValidationError(data=data)
689
+ response_data = utils.unmarshal_json(
690
+ http_res.text, models.HTTPValidationErrorData
691
+ )
692
+ raise models.HTTPValidationError(data=response_data)
659
693
  if utils.match_response(http_res, "500", "application/json"):
660
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
661
- raise models.ErrorResponse(data=data)
694
+ response_data = utils.unmarshal_json(
695
+ http_res.text, models.ErrorResponseData
696
+ )
697
+ raise models.ErrorResponse(data=response_data)
662
698
  if utils.match_response(http_res, "4XX", "*"):
663
699
  http_res_text = await utils.stream_to_text_async(http_res)
664
700
  raise models.APIError(
@@ -787,20 +823,26 @@ class Features(BaseSDK):
787
823
  retry_config=retry_config,
788
824
  )
789
825
 
790
- data: Any = None
826
+ response_data: Any = None
791
827
  if utils.match_response(http_res, "200", "application/json"):
792
828
  return utils.unmarshal_json(http_res.text, models.ListFeaturesResponse)
793
829
  if utils.match_response(
794
830
  http_res, ["400", "401", "403", "404"], "application/json"
795
831
  ):
796
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
797
- raise models.ErrorResponse(data=data)
832
+ response_data = utils.unmarshal_json(
833
+ http_res.text, models.ErrorResponseData
834
+ )
835
+ raise models.ErrorResponse(data=response_data)
798
836
  if utils.match_response(http_res, "422", "application/json"):
799
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
800
- raise models.HTTPValidationError(data=data)
837
+ response_data = utils.unmarshal_json(
838
+ http_res.text, models.HTTPValidationErrorData
839
+ )
840
+ raise models.HTTPValidationError(data=response_data)
801
841
  if utils.match_response(http_res, "500", "application/json"):
802
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
803
- raise models.ErrorResponse(data=data)
842
+ response_data = utils.unmarshal_json(
843
+ http_res.text, models.ErrorResponseData
844
+ )
845
+ raise models.ErrorResponse(data=response_data)
804
846
  if utils.match_response(http_res, "4XX", "*"):
805
847
  http_res_text = utils.stream_to_text(http_res)
806
848
  raise models.APIError(
@@ -929,20 +971,26 @@ class Features(BaseSDK):
929
971
  retry_config=retry_config,
930
972
  )
931
973
 
932
- data: Any = None
974
+ response_data: Any = None
933
975
  if utils.match_response(http_res, "200", "application/json"):
934
976
  return utils.unmarshal_json(http_res.text, models.ListFeaturesResponse)
935
977
  if utils.match_response(
936
978
  http_res, ["400", "401", "403", "404"], "application/json"
937
979
  ):
938
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
939
- raise models.ErrorResponse(data=data)
980
+ response_data = utils.unmarshal_json(
981
+ http_res.text, models.ErrorResponseData
982
+ )
983
+ raise models.ErrorResponse(data=response_data)
940
984
  if utils.match_response(http_res, "422", "application/json"):
941
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
942
- raise models.HTTPValidationError(data=data)
985
+ response_data = utils.unmarshal_json(
986
+ http_res.text, models.HTTPValidationErrorData
987
+ )
988
+ raise models.HTTPValidationError(data=response_data)
943
989
  if utils.match_response(http_res, "500", "application/json"):
944
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
945
- raise models.ErrorResponse(data=data)
990
+ response_data = utils.unmarshal_json(
991
+ http_res.text, models.ErrorResponseData
992
+ )
993
+ raise models.ErrorResponse(data=response_data)
946
994
  if utils.match_response(http_res, "4XX", "*"):
947
995
  http_res_text = await utils.stream_to_text_async(http_res)
948
996
  raise models.APIError(
@@ -1096,7 +1144,7 @@ class Features(BaseSDK):
1096
1144
  retry_config=retry_config,
1097
1145
  )
1098
1146
 
1099
- data: Any = None
1147
+ response_data: Any = None
1100
1148
  if utils.match_response(http_res, "200", "application/json"):
1101
1149
  return utils.unmarshal_json(
1102
1150
  http_res.text,
@@ -1105,14 +1153,20 @@ class Features(BaseSDK):
1105
1153
  if utils.match_response(
1106
1154
  http_res, ["400", "401", "403", "404"], "application/json"
1107
1155
  ):
1108
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1109
- raise models.ErrorResponse(data=data)
1156
+ response_data = utils.unmarshal_json(
1157
+ http_res.text, models.ErrorResponseData
1158
+ )
1159
+ raise models.ErrorResponse(data=response_data)
1110
1160
  if utils.match_response(http_res, "422", "application/json"):
1111
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1112
- raise models.HTTPValidationError(data=data)
1161
+ response_data = utils.unmarshal_json(
1162
+ http_res.text, models.HTTPValidationErrorData
1163
+ )
1164
+ raise models.HTTPValidationError(data=response_data)
1113
1165
  if utils.match_response(http_res, "500", "application/json"):
1114
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1115
- raise models.ErrorResponse(data=data)
1166
+ response_data = utils.unmarshal_json(
1167
+ http_res.text, models.ErrorResponseData
1168
+ )
1169
+ raise models.ErrorResponse(data=response_data)
1116
1170
  if utils.match_response(http_res, "4XX", "*"):
1117
1171
  http_res_text = utils.stream_to_text(http_res)
1118
1172
  raise models.APIError(
@@ -1266,7 +1320,7 @@ class Features(BaseSDK):
1266
1320
  retry_config=retry_config,
1267
1321
  )
1268
1322
 
1269
- data: Any = None
1323
+ response_data: Any = None
1270
1324
  if utils.match_response(http_res, "200", "application/json"):
1271
1325
  return utils.unmarshal_json(
1272
1326
  http_res.text,
@@ -1275,14 +1329,20 @@ class Features(BaseSDK):
1275
1329
  if utils.match_response(
1276
1330
  http_res, ["400", "401", "403", "404"], "application/json"
1277
1331
  ):
1278
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1279
- raise models.ErrorResponse(data=data)
1332
+ response_data = utils.unmarshal_json(
1333
+ http_res.text, models.ErrorResponseData
1334
+ )
1335
+ raise models.ErrorResponse(data=response_data)
1280
1336
  if utils.match_response(http_res, "422", "application/json"):
1281
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1282
- raise models.HTTPValidationError(data=data)
1337
+ response_data = utils.unmarshal_json(
1338
+ http_res.text, models.HTTPValidationErrorData
1339
+ )
1340
+ raise models.HTTPValidationError(data=response_data)
1283
1341
  if utils.match_response(http_res, "500", "application/json"):
1284
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1285
- raise models.ErrorResponse(data=data)
1342
+ response_data = utils.unmarshal_json(
1343
+ http_res.text, models.ErrorResponseData
1344
+ )
1345
+ raise models.ErrorResponse(data=response_data)
1286
1346
  if utils.match_response(http_res, "4XX", "*"):
1287
1347
  http_res_text = await utils.stream_to_text_async(http_res)
1288
1348
  raise models.APIError(
mixpeek/ingestassets.py CHANGED
@@ -117,20 +117,26 @@ class IngestAssets(BaseSDK):
117
117
  retry_config=retry_config,
118
118
  )
119
119
 
120
- data: Any = None
120
+ response_data: Any = None
121
121
  if utils.match_response(http_res, "200", "application/json"):
122
122
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
123
123
  if utils.match_response(
124
124
  http_res, ["400", "401", "403", "404"], "application/json"
125
125
  ):
126
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
127
- raise models.ErrorResponse(data=data)
126
+ response_data = utils.unmarshal_json(
127
+ http_res.text, models.ErrorResponseData
128
+ )
129
+ raise models.ErrorResponse(data=response_data)
128
130
  if utils.match_response(http_res, "422", "application/json"):
129
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
130
- raise models.HTTPValidationError(data=data)
131
+ response_data = utils.unmarshal_json(
132
+ http_res.text, models.HTTPValidationErrorData
133
+ )
134
+ raise models.HTTPValidationError(data=response_data)
131
135
  if utils.match_response(http_res, "500", "application/json"):
132
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
133
- raise models.ErrorResponse(data=data)
136
+ response_data = utils.unmarshal_json(
137
+ http_res.text, models.ErrorResponseData
138
+ )
139
+ raise models.ErrorResponse(data=response_data)
134
140
  if utils.match_response(http_res, "4XX", "*"):
135
141
  http_res_text = utils.stream_to_text(http_res)
136
142
  raise models.APIError(
@@ -259,20 +265,26 @@ class IngestAssets(BaseSDK):
259
265
  retry_config=retry_config,
260
266
  )
261
267
 
262
- data: Any = None
268
+ response_data: Any = None
263
269
  if utils.match_response(http_res, "200", "application/json"):
264
270
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
265
271
  if utils.match_response(
266
272
  http_res, ["400", "401", "403", "404"], "application/json"
267
273
  ):
268
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
269
- raise models.ErrorResponse(data=data)
274
+ response_data = utils.unmarshal_json(
275
+ http_res.text, models.ErrorResponseData
276
+ )
277
+ raise models.ErrorResponse(data=response_data)
270
278
  if utils.match_response(http_res, "422", "application/json"):
271
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
272
- raise models.HTTPValidationError(data=data)
279
+ response_data = utils.unmarshal_json(
280
+ http_res.text, models.HTTPValidationErrorData
281
+ )
282
+ raise models.HTTPValidationError(data=response_data)
273
283
  if utils.match_response(http_res, "500", "application/json"):
274
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
275
- raise models.ErrorResponse(data=data)
284
+ response_data = utils.unmarshal_json(
285
+ http_res.text, models.ErrorResponseData
286
+ )
287
+ raise models.ErrorResponse(data=response_data)
276
288
  if utils.match_response(http_res, "4XX", "*"):
277
289
  http_res_text = await utils.stream_to_text_async(http_res)
278
290
  raise models.APIError(
@@ -404,20 +416,26 @@ class IngestAssets(BaseSDK):
404
416
  retry_config=retry_config,
405
417
  )
406
418
 
407
- data: Any = None
419
+ response_data: Any = None
408
420
  if utils.match_response(http_res, "200", "application/json"):
409
421
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
410
422
  if utils.match_response(
411
423
  http_res, ["400", "401", "403", "404"], "application/json"
412
424
  ):
413
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
414
- raise models.ErrorResponse(data=data)
425
+ response_data = utils.unmarshal_json(
426
+ http_res.text, models.ErrorResponseData
427
+ )
428
+ raise models.ErrorResponse(data=response_data)
415
429
  if utils.match_response(http_res, "422", "application/json"):
416
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
417
- raise models.HTTPValidationError(data=data)
430
+ response_data = utils.unmarshal_json(
431
+ http_res.text, models.HTTPValidationErrorData
432
+ )
433
+ raise models.HTTPValidationError(data=response_data)
418
434
  if utils.match_response(http_res, "500", "application/json"):
419
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
420
- raise models.ErrorResponse(data=data)
435
+ response_data = utils.unmarshal_json(
436
+ http_res.text, models.ErrorResponseData
437
+ )
438
+ raise models.ErrorResponse(data=response_data)
421
439
  if utils.match_response(http_res, "4XX", "*"):
422
440
  http_res_text = utils.stream_to_text(http_res)
423
441
  raise models.APIError(
@@ -549,20 +567,26 @@ class IngestAssets(BaseSDK):
549
567
  retry_config=retry_config,
550
568
  )
551
569
 
552
- data: Any = None
570
+ response_data: Any = None
553
571
  if utils.match_response(http_res, "200", "application/json"):
554
572
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
555
573
  if utils.match_response(
556
574
  http_res, ["400", "401", "403", "404"], "application/json"
557
575
  ):
558
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
559
- raise models.ErrorResponse(data=data)
576
+ response_data = utils.unmarshal_json(
577
+ http_res.text, models.ErrorResponseData
578
+ )
579
+ raise models.ErrorResponse(data=response_data)
560
580
  if utils.match_response(http_res, "422", "application/json"):
561
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
562
- raise models.HTTPValidationError(data=data)
581
+ response_data = utils.unmarshal_json(
582
+ http_res.text, models.HTTPValidationErrorData
583
+ )
584
+ raise models.HTTPValidationError(data=response_data)
563
585
  if utils.match_response(http_res, "500", "application/json"):
564
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
565
- raise models.ErrorResponse(data=data)
586
+ response_data = utils.unmarshal_json(
587
+ http_res.text, models.ErrorResponseData
588
+ )
589
+ raise models.ErrorResponse(data=response_data)
566
590
  if utils.match_response(http_res, "4XX", "*"):
567
591
  http_res_text = await utils.stream_to_text_async(http_res)
568
592
  raise models.APIError(
@@ -694,20 +718,26 @@ class IngestAssets(BaseSDK):
694
718
  retry_config=retry_config,
695
719
  )
696
720
 
697
- data: Any = None
721
+ response_data: Any = None
698
722
  if utils.match_response(http_res, "200", "application/json"):
699
723
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
700
724
  if utils.match_response(
701
725
  http_res, ["400", "401", "403", "404"], "application/json"
702
726
  ):
703
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
704
- raise models.ErrorResponse(data=data)
727
+ response_data = utils.unmarshal_json(
728
+ http_res.text, models.ErrorResponseData
729
+ )
730
+ raise models.ErrorResponse(data=response_data)
705
731
  if utils.match_response(http_res, "422", "application/json"):
706
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
707
- raise models.HTTPValidationError(data=data)
732
+ response_data = utils.unmarshal_json(
733
+ http_res.text, models.HTTPValidationErrorData
734
+ )
735
+ raise models.HTTPValidationError(data=response_data)
708
736
  if utils.match_response(http_res, "500", "application/json"):
709
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
710
- raise models.ErrorResponse(data=data)
737
+ response_data = utils.unmarshal_json(
738
+ http_res.text, models.ErrorResponseData
739
+ )
740
+ raise models.ErrorResponse(data=response_data)
711
741
  if utils.match_response(http_res, "4XX", "*"):
712
742
  http_res_text = utils.stream_to_text(http_res)
713
743
  raise models.APIError(
@@ -839,20 +869,26 @@ class IngestAssets(BaseSDK):
839
869
  retry_config=retry_config,
840
870
  )
841
871
 
842
- data: Any = None
872
+ response_data: Any = None
843
873
  if utils.match_response(http_res, "200", "application/json"):
844
874
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
845
875
  if utils.match_response(
846
876
  http_res, ["400", "401", "403", "404"], "application/json"
847
877
  ):
848
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
849
- raise models.ErrorResponse(data=data)
878
+ response_data = utils.unmarshal_json(
879
+ http_res.text, models.ErrorResponseData
880
+ )
881
+ raise models.ErrorResponse(data=response_data)
850
882
  if utils.match_response(http_res, "422", "application/json"):
851
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
852
- raise models.HTTPValidationError(data=data)
883
+ response_data = utils.unmarshal_json(
884
+ http_res.text, models.HTTPValidationErrorData
885
+ )
886
+ raise models.HTTPValidationError(data=response_data)
853
887
  if utils.match_response(http_res, "500", "application/json"):
854
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
855
- raise models.ErrorResponse(data=data)
888
+ response_data = utils.unmarshal_json(
889
+ http_res.text, models.ErrorResponseData
890
+ )
891
+ raise models.ErrorResponse(data=response_data)
856
892
  if utils.match_response(http_res, "4XX", "*"):
857
893
  http_res_text = await utils.stream_to_text_async(http_res)
858
894
  raise models.APIError(