dub 0.27.0__py3-none-any.whl → 0.27.1__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.
- dub/_version.py +3 -3
- dub/analytics.py +21 -36
- dub/commissions.py +41 -72
- dub/customers.py +101 -180
- dub/domains.py +121 -224
- dub/embed_tokens.py +21 -36
- dub/events.py +21 -36
- dub/folders.py +81 -152
- dub/links.py +201 -376
- dub/models/operations/tracklead.py +2 -2
- dub/models/operations/tracksale.py +2 -2
- dub/partners.py +101 -192
- dub/qr_codes.py +19 -34
- dub/tags.py +81 -152
- dub/track.py +41 -72
- dub/utils/__init__.py +0 -3
- dub/utils/serializers.py +1 -18
- dub/utils/unmarshal_json_response.py +24 -0
- dub/workspaces.py +41 -72
- {dub-0.27.0.dist-info → dub-0.27.1.dist-info}/METADATA +1 -1
- {dub-0.27.0.dist-info → dub-0.27.1.dist-info}/RECORD +23 -22
- {dub-0.27.0.dist-info → dub-0.27.1.dist-info}/LICENSE +0 -0
- {dub-0.27.0.dist-info → dub-0.27.1.dist-info}/WHEEL +0 -0
dub/links.py
CHANGED
|
@@ -5,6 +5,7 @@ from dub import utils
|
|
|
5
5
|
from dub._hooks import HookContext
|
|
6
6
|
from dub.models import components, errors, operations
|
|
7
7
|
from dub.types import BaseModel, OptionalNullable, UNSET
|
|
8
|
+
from dub.utils.unmarshal_json_response import unmarshal_json_response
|
|
8
9
|
from jsonpath import JSONPath
|
|
9
10
|
from typing import Any, Dict, List, Mapping, Optional, Union, cast
|
|
10
11
|
|
|
@@ -104,47 +105,37 @@ class Links(BaseSDK):
|
|
|
104
105
|
|
|
105
106
|
response_data: Any = None
|
|
106
107
|
if utils.match_response(http_res, "200", "application/json"):
|
|
107
|
-
return
|
|
108
|
-
Optional[components.LinkSchema], http_res
|
|
109
|
-
)
|
|
108
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
110
109
|
if utils.match_response(http_res, "400", "application/json"):
|
|
111
|
-
response_data =
|
|
112
|
-
errors.BadRequestData, http_res
|
|
113
|
-
)
|
|
110
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
114
111
|
raise errors.BadRequest(response_data, http_res)
|
|
115
112
|
if utils.match_response(http_res, "401", "application/json"):
|
|
116
|
-
response_data =
|
|
117
|
-
errors.UnauthorizedData, http_res
|
|
118
|
-
)
|
|
113
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
119
114
|
raise errors.Unauthorized(response_data, http_res)
|
|
120
115
|
if utils.match_response(http_res, "403", "application/json"):
|
|
121
|
-
response_data =
|
|
122
|
-
errors.ForbiddenData, http_res
|
|
123
|
-
)
|
|
116
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
124
117
|
raise errors.Forbidden(response_data, http_res)
|
|
125
118
|
if utils.match_response(http_res, "404", "application/json"):
|
|
126
|
-
response_data =
|
|
119
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
127
120
|
raise errors.NotFound(response_data, http_res)
|
|
128
121
|
if utils.match_response(http_res, "409", "application/json"):
|
|
129
|
-
response_data =
|
|
122
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
130
123
|
raise errors.Conflict(response_data, http_res)
|
|
131
124
|
if utils.match_response(http_res, "410", "application/json"):
|
|
132
|
-
response_data =
|
|
133
|
-
errors.InviteExpiredData, http_res
|
|
134
|
-
)
|
|
125
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
135
126
|
raise errors.InviteExpired(response_data, http_res)
|
|
136
127
|
if utils.match_response(http_res, "422", "application/json"):
|
|
137
|
-
response_data =
|
|
128
|
+
response_data = unmarshal_json_response(
|
|
138
129
|
errors.UnprocessableEntityData, http_res
|
|
139
130
|
)
|
|
140
131
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
141
132
|
if utils.match_response(http_res, "429", "application/json"):
|
|
142
|
-
response_data =
|
|
133
|
+
response_data = unmarshal_json_response(
|
|
143
134
|
errors.RateLimitExceededData, http_res
|
|
144
135
|
)
|
|
145
136
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
146
137
|
if utils.match_response(http_res, "500", "application/json"):
|
|
147
|
-
response_data =
|
|
138
|
+
response_data = unmarshal_json_response(
|
|
148
139
|
errors.InternalServerErrorData, http_res
|
|
149
140
|
)
|
|
150
141
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -251,47 +242,37 @@ class Links(BaseSDK):
|
|
|
251
242
|
|
|
252
243
|
response_data: Any = None
|
|
253
244
|
if utils.match_response(http_res, "200", "application/json"):
|
|
254
|
-
return
|
|
255
|
-
Optional[components.LinkSchema], http_res
|
|
256
|
-
)
|
|
245
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
257
246
|
if utils.match_response(http_res, "400", "application/json"):
|
|
258
|
-
response_data =
|
|
259
|
-
errors.BadRequestData, http_res
|
|
260
|
-
)
|
|
247
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
261
248
|
raise errors.BadRequest(response_data, http_res)
|
|
262
249
|
if utils.match_response(http_res, "401", "application/json"):
|
|
263
|
-
response_data =
|
|
264
|
-
errors.UnauthorizedData, http_res
|
|
265
|
-
)
|
|
250
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
266
251
|
raise errors.Unauthorized(response_data, http_res)
|
|
267
252
|
if utils.match_response(http_res, "403", "application/json"):
|
|
268
|
-
response_data =
|
|
269
|
-
errors.ForbiddenData, http_res
|
|
270
|
-
)
|
|
253
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
271
254
|
raise errors.Forbidden(response_data, http_res)
|
|
272
255
|
if utils.match_response(http_res, "404", "application/json"):
|
|
273
|
-
response_data =
|
|
256
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
274
257
|
raise errors.NotFound(response_data, http_res)
|
|
275
258
|
if utils.match_response(http_res, "409", "application/json"):
|
|
276
|
-
response_data =
|
|
259
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
277
260
|
raise errors.Conflict(response_data, http_res)
|
|
278
261
|
if utils.match_response(http_res, "410", "application/json"):
|
|
279
|
-
response_data =
|
|
280
|
-
errors.InviteExpiredData, http_res
|
|
281
|
-
)
|
|
262
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
282
263
|
raise errors.InviteExpired(response_data, http_res)
|
|
283
264
|
if utils.match_response(http_res, "422", "application/json"):
|
|
284
|
-
response_data =
|
|
265
|
+
response_data = unmarshal_json_response(
|
|
285
266
|
errors.UnprocessableEntityData, http_res
|
|
286
267
|
)
|
|
287
268
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
288
269
|
if utils.match_response(http_res, "429", "application/json"):
|
|
289
|
-
response_data =
|
|
270
|
+
response_data = unmarshal_json_response(
|
|
290
271
|
errors.RateLimitExceededData, http_res
|
|
291
272
|
)
|
|
292
273
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
293
274
|
if utils.match_response(http_res, "500", "application/json"):
|
|
294
|
-
response_data =
|
|
275
|
+
response_data = unmarshal_json_response(
|
|
295
276
|
errors.InternalServerErrorData, http_res
|
|
296
277
|
)
|
|
297
278
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -424,49 +405,41 @@ class Links(BaseSDK):
|
|
|
424
405
|
response_data: Any = None
|
|
425
406
|
if utils.match_response(http_res, "200", "application/json"):
|
|
426
407
|
return operations.GetLinksResponse(
|
|
427
|
-
result=
|
|
408
|
+
result=unmarshal_json_response(
|
|
428
409
|
Optional[List[components.LinkSchema]], http_res
|
|
429
410
|
),
|
|
430
411
|
next=next_func,
|
|
431
412
|
)
|
|
432
413
|
if utils.match_response(http_res, "400", "application/json"):
|
|
433
|
-
response_data =
|
|
434
|
-
errors.BadRequestData, http_res
|
|
435
|
-
)
|
|
414
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
436
415
|
raise errors.BadRequest(response_data, http_res)
|
|
437
416
|
if utils.match_response(http_res, "401", "application/json"):
|
|
438
|
-
response_data =
|
|
439
|
-
errors.UnauthorizedData, http_res
|
|
440
|
-
)
|
|
417
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
441
418
|
raise errors.Unauthorized(response_data, http_res)
|
|
442
419
|
if utils.match_response(http_res, "403", "application/json"):
|
|
443
|
-
response_data =
|
|
444
|
-
errors.ForbiddenData, http_res
|
|
445
|
-
)
|
|
420
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
446
421
|
raise errors.Forbidden(response_data, http_res)
|
|
447
422
|
if utils.match_response(http_res, "404", "application/json"):
|
|
448
|
-
response_data =
|
|
423
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
449
424
|
raise errors.NotFound(response_data, http_res)
|
|
450
425
|
if utils.match_response(http_res, "409", "application/json"):
|
|
451
|
-
response_data =
|
|
426
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
452
427
|
raise errors.Conflict(response_data, http_res)
|
|
453
428
|
if utils.match_response(http_res, "410", "application/json"):
|
|
454
|
-
response_data =
|
|
455
|
-
errors.InviteExpiredData, http_res
|
|
456
|
-
)
|
|
429
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
457
430
|
raise errors.InviteExpired(response_data, http_res)
|
|
458
431
|
if utils.match_response(http_res, "422", "application/json"):
|
|
459
|
-
response_data =
|
|
432
|
+
response_data = unmarshal_json_response(
|
|
460
433
|
errors.UnprocessableEntityData, http_res
|
|
461
434
|
)
|
|
462
435
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
463
436
|
if utils.match_response(http_res, "429", "application/json"):
|
|
464
|
-
response_data =
|
|
437
|
+
response_data = unmarshal_json_response(
|
|
465
438
|
errors.RateLimitExceededData, http_res
|
|
466
439
|
)
|
|
467
440
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
468
441
|
if utils.match_response(http_res, "500", "application/json"):
|
|
469
|
-
response_data =
|
|
442
|
+
response_data = unmarshal_json_response(
|
|
470
443
|
errors.InternalServerErrorData, http_res
|
|
471
444
|
)
|
|
472
445
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -599,49 +572,41 @@ class Links(BaseSDK):
|
|
|
599
572
|
response_data: Any = None
|
|
600
573
|
if utils.match_response(http_res, "200", "application/json"):
|
|
601
574
|
return operations.GetLinksResponse(
|
|
602
|
-
result=
|
|
575
|
+
result=unmarshal_json_response(
|
|
603
576
|
Optional[List[components.LinkSchema]], http_res
|
|
604
577
|
),
|
|
605
578
|
next=next_func,
|
|
606
579
|
)
|
|
607
580
|
if utils.match_response(http_res, "400", "application/json"):
|
|
608
|
-
response_data =
|
|
609
|
-
errors.BadRequestData, http_res
|
|
610
|
-
)
|
|
581
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
611
582
|
raise errors.BadRequest(response_data, http_res)
|
|
612
583
|
if utils.match_response(http_res, "401", "application/json"):
|
|
613
|
-
response_data =
|
|
614
|
-
errors.UnauthorizedData, http_res
|
|
615
|
-
)
|
|
584
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
616
585
|
raise errors.Unauthorized(response_data, http_res)
|
|
617
586
|
if utils.match_response(http_res, "403", "application/json"):
|
|
618
|
-
response_data =
|
|
619
|
-
errors.ForbiddenData, http_res
|
|
620
|
-
)
|
|
587
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
621
588
|
raise errors.Forbidden(response_data, http_res)
|
|
622
589
|
if utils.match_response(http_res, "404", "application/json"):
|
|
623
|
-
response_data =
|
|
590
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
624
591
|
raise errors.NotFound(response_data, http_res)
|
|
625
592
|
if utils.match_response(http_res, "409", "application/json"):
|
|
626
|
-
response_data =
|
|
593
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
627
594
|
raise errors.Conflict(response_data, http_res)
|
|
628
595
|
if utils.match_response(http_res, "410", "application/json"):
|
|
629
|
-
response_data =
|
|
630
|
-
errors.InviteExpiredData, http_res
|
|
631
|
-
)
|
|
596
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
632
597
|
raise errors.InviteExpired(response_data, http_res)
|
|
633
598
|
if utils.match_response(http_res, "422", "application/json"):
|
|
634
|
-
response_data =
|
|
599
|
+
response_data = unmarshal_json_response(
|
|
635
600
|
errors.UnprocessableEntityData, http_res
|
|
636
601
|
)
|
|
637
602
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
638
603
|
if utils.match_response(http_res, "429", "application/json"):
|
|
639
|
-
response_data =
|
|
604
|
+
response_data = unmarshal_json_response(
|
|
640
605
|
errors.RateLimitExceededData, http_res
|
|
641
606
|
)
|
|
642
607
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
643
608
|
if utils.match_response(http_res, "500", "application/json"):
|
|
644
|
-
response_data =
|
|
609
|
+
response_data = unmarshal_json_response(
|
|
645
610
|
errors.InternalServerErrorData, http_res
|
|
646
611
|
)
|
|
647
612
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -740,45 +705,37 @@ class Links(BaseSDK):
|
|
|
740
705
|
|
|
741
706
|
response_data: Any = None
|
|
742
707
|
if utils.match_response(http_res, "200", "application/json"):
|
|
743
|
-
return
|
|
708
|
+
return unmarshal_json_response(Optional[float], http_res)
|
|
744
709
|
if utils.match_response(http_res, "400", "application/json"):
|
|
745
|
-
response_data =
|
|
746
|
-
errors.BadRequestData, http_res
|
|
747
|
-
)
|
|
710
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
748
711
|
raise errors.BadRequest(response_data, http_res)
|
|
749
712
|
if utils.match_response(http_res, "401", "application/json"):
|
|
750
|
-
response_data =
|
|
751
|
-
errors.UnauthorizedData, http_res
|
|
752
|
-
)
|
|
713
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
753
714
|
raise errors.Unauthorized(response_data, http_res)
|
|
754
715
|
if utils.match_response(http_res, "403", "application/json"):
|
|
755
|
-
response_data =
|
|
756
|
-
errors.ForbiddenData, http_res
|
|
757
|
-
)
|
|
716
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
758
717
|
raise errors.Forbidden(response_data, http_res)
|
|
759
718
|
if utils.match_response(http_res, "404", "application/json"):
|
|
760
|
-
response_data =
|
|
719
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
761
720
|
raise errors.NotFound(response_data, http_res)
|
|
762
721
|
if utils.match_response(http_res, "409", "application/json"):
|
|
763
|
-
response_data =
|
|
722
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
764
723
|
raise errors.Conflict(response_data, http_res)
|
|
765
724
|
if utils.match_response(http_res, "410", "application/json"):
|
|
766
|
-
response_data =
|
|
767
|
-
errors.InviteExpiredData, http_res
|
|
768
|
-
)
|
|
725
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
769
726
|
raise errors.InviteExpired(response_data, http_res)
|
|
770
727
|
if utils.match_response(http_res, "422", "application/json"):
|
|
771
|
-
response_data =
|
|
728
|
+
response_data = unmarshal_json_response(
|
|
772
729
|
errors.UnprocessableEntityData, http_res
|
|
773
730
|
)
|
|
774
731
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
775
732
|
if utils.match_response(http_res, "429", "application/json"):
|
|
776
|
-
response_data =
|
|
733
|
+
response_data = unmarshal_json_response(
|
|
777
734
|
errors.RateLimitExceededData, http_res
|
|
778
735
|
)
|
|
779
736
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
780
737
|
if utils.match_response(http_res, "500", "application/json"):
|
|
781
|
-
response_data =
|
|
738
|
+
response_data = unmarshal_json_response(
|
|
782
739
|
errors.InternalServerErrorData, http_res
|
|
783
740
|
)
|
|
784
741
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -877,45 +834,37 @@ class Links(BaseSDK):
|
|
|
877
834
|
|
|
878
835
|
response_data: Any = None
|
|
879
836
|
if utils.match_response(http_res, "200", "application/json"):
|
|
880
|
-
return
|
|
837
|
+
return unmarshal_json_response(Optional[float], http_res)
|
|
881
838
|
if utils.match_response(http_res, "400", "application/json"):
|
|
882
|
-
response_data =
|
|
883
|
-
errors.BadRequestData, http_res
|
|
884
|
-
)
|
|
839
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
885
840
|
raise errors.BadRequest(response_data, http_res)
|
|
886
841
|
if utils.match_response(http_res, "401", "application/json"):
|
|
887
|
-
response_data =
|
|
888
|
-
errors.UnauthorizedData, http_res
|
|
889
|
-
)
|
|
842
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
890
843
|
raise errors.Unauthorized(response_data, http_res)
|
|
891
844
|
if utils.match_response(http_res, "403", "application/json"):
|
|
892
|
-
response_data =
|
|
893
|
-
errors.ForbiddenData, http_res
|
|
894
|
-
)
|
|
845
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
895
846
|
raise errors.Forbidden(response_data, http_res)
|
|
896
847
|
if utils.match_response(http_res, "404", "application/json"):
|
|
897
|
-
response_data =
|
|
848
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
898
849
|
raise errors.NotFound(response_data, http_res)
|
|
899
850
|
if utils.match_response(http_res, "409", "application/json"):
|
|
900
|
-
response_data =
|
|
851
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
901
852
|
raise errors.Conflict(response_data, http_res)
|
|
902
853
|
if utils.match_response(http_res, "410", "application/json"):
|
|
903
|
-
response_data =
|
|
904
|
-
errors.InviteExpiredData, http_res
|
|
905
|
-
)
|
|
854
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
906
855
|
raise errors.InviteExpired(response_data, http_res)
|
|
907
856
|
if utils.match_response(http_res, "422", "application/json"):
|
|
908
|
-
response_data =
|
|
857
|
+
response_data = unmarshal_json_response(
|
|
909
858
|
errors.UnprocessableEntityData, http_res
|
|
910
859
|
)
|
|
911
860
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
912
861
|
if utils.match_response(http_res, "429", "application/json"):
|
|
913
|
-
response_data =
|
|
862
|
+
response_data = unmarshal_json_response(
|
|
914
863
|
errors.RateLimitExceededData, http_res
|
|
915
864
|
)
|
|
916
865
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
917
866
|
if utils.match_response(http_res, "500", "application/json"):
|
|
918
|
-
response_data =
|
|
867
|
+
response_data = unmarshal_json_response(
|
|
919
868
|
errors.InternalServerErrorData, http_res
|
|
920
869
|
)
|
|
921
870
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1014,47 +963,37 @@ class Links(BaseSDK):
|
|
|
1014
963
|
|
|
1015
964
|
response_data: Any = None
|
|
1016
965
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1017
|
-
return
|
|
1018
|
-
Optional[components.LinkSchema], http_res
|
|
1019
|
-
)
|
|
966
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
1020
967
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1021
|
-
response_data =
|
|
1022
|
-
errors.BadRequestData, http_res
|
|
1023
|
-
)
|
|
968
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1024
969
|
raise errors.BadRequest(response_data, http_res)
|
|
1025
970
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1026
|
-
response_data =
|
|
1027
|
-
errors.UnauthorizedData, http_res
|
|
1028
|
-
)
|
|
971
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1029
972
|
raise errors.Unauthorized(response_data, http_res)
|
|
1030
973
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1031
|
-
response_data =
|
|
1032
|
-
errors.ForbiddenData, http_res
|
|
1033
|
-
)
|
|
974
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1034
975
|
raise errors.Forbidden(response_data, http_res)
|
|
1035
976
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1036
|
-
response_data =
|
|
977
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1037
978
|
raise errors.NotFound(response_data, http_res)
|
|
1038
979
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1039
|
-
response_data =
|
|
980
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1040
981
|
raise errors.Conflict(response_data, http_res)
|
|
1041
982
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1042
|
-
response_data =
|
|
1043
|
-
errors.InviteExpiredData, http_res
|
|
1044
|
-
)
|
|
983
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1045
984
|
raise errors.InviteExpired(response_data, http_res)
|
|
1046
985
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1047
|
-
response_data =
|
|
986
|
+
response_data = unmarshal_json_response(
|
|
1048
987
|
errors.UnprocessableEntityData, http_res
|
|
1049
988
|
)
|
|
1050
989
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1051
990
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1052
|
-
response_data =
|
|
991
|
+
response_data = unmarshal_json_response(
|
|
1053
992
|
errors.RateLimitExceededData, http_res
|
|
1054
993
|
)
|
|
1055
994
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1056
995
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1057
|
-
response_data =
|
|
996
|
+
response_data = unmarshal_json_response(
|
|
1058
997
|
errors.InternalServerErrorData, http_res
|
|
1059
998
|
)
|
|
1060
999
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1153,47 +1092,37 @@ class Links(BaseSDK):
|
|
|
1153
1092
|
|
|
1154
1093
|
response_data: Any = None
|
|
1155
1094
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1156
|
-
return
|
|
1157
|
-
Optional[components.LinkSchema], http_res
|
|
1158
|
-
)
|
|
1095
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
1159
1096
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1160
|
-
response_data =
|
|
1161
|
-
errors.BadRequestData, http_res
|
|
1162
|
-
)
|
|
1097
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1163
1098
|
raise errors.BadRequest(response_data, http_res)
|
|
1164
1099
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1165
|
-
response_data =
|
|
1166
|
-
errors.UnauthorizedData, http_res
|
|
1167
|
-
)
|
|
1100
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1168
1101
|
raise errors.Unauthorized(response_data, http_res)
|
|
1169
1102
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1170
|
-
response_data =
|
|
1171
|
-
errors.ForbiddenData, http_res
|
|
1172
|
-
)
|
|
1103
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1173
1104
|
raise errors.Forbidden(response_data, http_res)
|
|
1174
1105
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1175
|
-
response_data =
|
|
1106
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1176
1107
|
raise errors.NotFound(response_data, http_res)
|
|
1177
1108
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1178
|
-
response_data =
|
|
1109
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1179
1110
|
raise errors.Conflict(response_data, http_res)
|
|
1180
1111
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1181
|
-
response_data =
|
|
1182
|
-
errors.InviteExpiredData, http_res
|
|
1183
|
-
)
|
|
1112
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1184
1113
|
raise errors.InviteExpired(response_data, http_res)
|
|
1185
1114
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1186
|
-
response_data =
|
|
1115
|
+
response_data = unmarshal_json_response(
|
|
1187
1116
|
errors.UnprocessableEntityData, http_res
|
|
1188
1117
|
)
|
|
1189
1118
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1190
1119
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1191
|
-
response_data =
|
|
1120
|
+
response_data = unmarshal_json_response(
|
|
1192
1121
|
errors.RateLimitExceededData, http_res
|
|
1193
1122
|
)
|
|
1194
1123
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1195
1124
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1196
|
-
response_data =
|
|
1125
|
+
response_data = unmarshal_json_response(
|
|
1197
1126
|
errors.InternalServerErrorData, http_res
|
|
1198
1127
|
)
|
|
1199
1128
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1307,47 +1236,37 @@ class Links(BaseSDK):
|
|
|
1307
1236
|
|
|
1308
1237
|
response_data: Any = None
|
|
1309
1238
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1310
|
-
return
|
|
1311
|
-
Optional[components.LinkSchema], http_res
|
|
1312
|
-
)
|
|
1239
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
1313
1240
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1314
|
-
response_data =
|
|
1315
|
-
errors.BadRequestData, http_res
|
|
1316
|
-
)
|
|
1241
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1317
1242
|
raise errors.BadRequest(response_data, http_res)
|
|
1318
1243
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1319
|
-
response_data =
|
|
1320
|
-
errors.UnauthorizedData, http_res
|
|
1321
|
-
)
|
|
1244
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1322
1245
|
raise errors.Unauthorized(response_data, http_res)
|
|
1323
1246
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1324
|
-
response_data =
|
|
1325
|
-
errors.ForbiddenData, http_res
|
|
1326
|
-
)
|
|
1247
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1327
1248
|
raise errors.Forbidden(response_data, http_res)
|
|
1328
1249
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1329
|
-
response_data =
|
|
1250
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1330
1251
|
raise errors.NotFound(response_data, http_res)
|
|
1331
1252
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1332
|
-
response_data =
|
|
1253
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1333
1254
|
raise errors.Conflict(response_data, http_res)
|
|
1334
1255
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1335
|
-
response_data =
|
|
1336
|
-
errors.InviteExpiredData, http_res
|
|
1337
|
-
)
|
|
1256
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1338
1257
|
raise errors.InviteExpired(response_data, http_res)
|
|
1339
1258
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1340
|
-
response_data =
|
|
1259
|
+
response_data = unmarshal_json_response(
|
|
1341
1260
|
errors.UnprocessableEntityData, http_res
|
|
1342
1261
|
)
|
|
1343
1262
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1344
1263
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1345
|
-
response_data =
|
|
1264
|
+
response_data = unmarshal_json_response(
|
|
1346
1265
|
errors.RateLimitExceededData, http_res
|
|
1347
1266
|
)
|
|
1348
1267
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1349
1268
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1350
|
-
response_data =
|
|
1269
|
+
response_data = unmarshal_json_response(
|
|
1351
1270
|
errors.InternalServerErrorData, http_res
|
|
1352
1271
|
)
|
|
1353
1272
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1461,47 +1380,37 @@ class Links(BaseSDK):
|
|
|
1461
1380
|
|
|
1462
1381
|
response_data: Any = None
|
|
1463
1382
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1464
|
-
return
|
|
1465
|
-
Optional[components.LinkSchema], http_res
|
|
1466
|
-
)
|
|
1383
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
1467
1384
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1468
|
-
response_data =
|
|
1469
|
-
errors.BadRequestData, http_res
|
|
1470
|
-
)
|
|
1385
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1471
1386
|
raise errors.BadRequest(response_data, http_res)
|
|
1472
1387
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1473
|
-
response_data =
|
|
1474
|
-
errors.UnauthorizedData, http_res
|
|
1475
|
-
)
|
|
1388
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1476
1389
|
raise errors.Unauthorized(response_data, http_res)
|
|
1477
1390
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1478
|
-
response_data =
|
|
1479
|
-
errors.ForbiddenData, http_res
|
|
1480
|
-
)
|
|
1391
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1481
1392
|
raise errors.Forbidden(response_data, http_res)
|
|
1482
1393
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1483
|
-
response_data =
|
|
1394
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1484
1395
|
raise errors.NotFound(response_data, http_res)
|
|
1485
1396
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1486
|
-
response_data =
|
|
1397
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1487
1398
|
raise errors.Conflict(response_data, http_res)
|
|
1488
1399
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1489
|
-
response_data =
|
|
1490
|
-
errors.InviteExpiredData, http_res
|
|
1491
|
-
)
|
|
1400
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1492
1401
|
raise errors.InviteExpired(response_data, http_res)
|
|
1493
1402
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1494
|
-
response_data =
|
|
1403
|
+
response_data = unmarshal_json_response(
|
|
1495
1404
|
errors.UnprocessableEntityData, http_res
|
|
1496
1405
|
)
|
|
1497
1406
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1498
1407
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1499
|
-
response_data =
|
|
1408
|
+
response_data = unmarshal_json_response(
|
|
1500
1409
|
errors.RateLimitExceededData, http_res
|
|
1501
1410
|
)
|
|
1502
1411
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1503
1412
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1504
|
-
response_data =
|
|
1413
|
+
response_data = unmarshal_json_response(
|
|
1505
1414
|
errors.InternalServerErrorData, http_res
|
|
1506
1415
|
)
|
|
1507
1416
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1598,47 +1507,39 @@ class Links(BaseSDK):
|
|
|
1598
1507
|
|
|
1599
1508
|
response_data: Any = None
|
|
1600
1509
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1601
|
-
return
|
|
1510
|
+
return unmarshal_json_response(
|
|
1602
1511
|
Optional[operations.DeleteLinkResponseBody], http_res
|
|
1603
1512
|
)
|
|
1604
1513
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1605
|
-
response_data =
|
|
1606
|
-
errors.BadRequestData, http_res
|
|
1607
|
-
)
|
|
1514
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1608
1515
|
raise errors.BadRequest(response_data, http_res)
|
|
1609
1516
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1610
|
-
response_data =
|
|
1611
|
-
errors.UnauthorizedData, http_res
|
|
1612
|
-
)
|
|
1517
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1613
1518
|
raise errors.Unauthorized(response_data, http_res)
|
|
1614
1519
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1615
|
-
response_data =
|
|
1616
|
-
errors.ForbiddenData, http_res
|
|
1617
|
-
)
|
|
1520
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1618
1521
|
raise errors.Forbidden(response_data, http_res)
|
|
1619
1522
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1620
|
-
response_data =
|
|
1523
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1621
1524
|
raise errors.NotFound(response_data, http_res)
|
|
1622
1525
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1623
|
-
response_data =
|
|
1526
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1624
1527
|
raise errors.Conflict(response_data, http_res)
|
|
1625
1528
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1626
|
-
response_data =
|
|
1627
|
-
errors.InviteExpiredData, http_res
|
|
1628
|
-
)
|
|
1529
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1629
1530
|
raise errors.InviteExpired(response_data, http_res)
|
|
1630
1531
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1631
|
-
response_data =
|
|
1532
|
+
response_data = unmarshal_json_response(
|
|
1632
1533
|
errors.UnprocessableEntityData, http_res
|
|
1633
1534
|
)
|
|
1634
1535
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1635
1536
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1636
|
-
response_data =
|
|
1537
|
+
response_data = unmarshal_json_response(
|
|
1637
1538
|
errors.RateLimitExceededData, http_res
|
|
1638
1539
|
)
|
|
1639
1540
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1640
1541
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1641
|
-
response_data =
|
|
1542
|
+
response_data = unmarshal_json_response(
|
|
1642
1543
|
errors.InternalServerErrorData, http_res
|
|
1643
1544
|
)
|
|
1644
1545
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1735,47 +1636,39 @@ class Links(BaseSDK):
|
|
|
1735
1636
|
|
|
1736
1637
|
response_data: Any = None
|
|
1737
1638
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1738
|
-
return
|
|
1639
|
+
return unmarshal_json_response(
|
|
1739
1640
|
Optional[operations.DeleteLinkResponseBody], http_res
|
|
1740
1641
|
)
|
|
1741
1642
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1742
|
-
response_data =
|
|
1743
|
-
errors.BadRequestData, http_res
|
|
1744
|
-
)
|
|
1643
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1745
1644
|
raise errors.BadRequest(response_data, http_res)
|
|
1746
1645
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1747
|
-
response_data =
|
|
1748
|
-
errors.UnauthorizedData, http_res
|
|
1749
|
-
)
|
|
1646
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1750
1647
|
raise errors.Unauthorized(response_data, http_res)
|
|
1751
1648
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1752
|
-
response_data =
|
|
1753
|
-
errors.ForbiddenData, http_res
|
|
1754
|
-
)
|
|
1649
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1755
1650
|
raise errors.Forbidden(response_data, http_res)
|
|
1756
1651
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1757
|
-
response_data =
|
|
1652
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1758
1653
|
raise errors.NotFound(response_data, http_res)
|
|
1759
1654
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1760
|
-
response_data =
|
|
1655
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1761
1656
|
raise errors.Conflict(response_data, http_res)
|
|
1762
1657
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1763
|
-
response_data =
|
|
1764
|
-
errors.InviteExpiredData, http_res
|
|
1765
|
-
)
|
|
1658
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1766
1659
|
raise errors.InviteExpired(response_data, http_res)
|
|
1767
1660
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1768
|
-
response_data =
|
|
1661
|
+
response_data = unmarshal_json_response(
|
|
1769
1662
|
errors.UnprocessableEntityData, http_res
|
|
1770
1663
|
)
|
|
1771
1664
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1772
1665
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1773
|
-
response_data =
|
|
1666
|
+
response_data = unmarshal_json_response(
|
|
1774
1667
|
errors.RateLimitExceededData, http_res
|
|
1775
1668
|
)
|
|
1776
1669
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1777
1670
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1778
|
-
response_data =
|
|
1671
|
+
response_data = unmarshal_json_response(
|
|
1779
1672
|
errors.InternalServerErrorData, http_res
|
|
1780
1673
|
)
|
|
1781
1674
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -1877,47 +1770,39 @@ class Links(BaseSDK):
|
|
|
1877
1770
|
|
|
1878
1771
|
response_data: Any = None
|
|
1879
1772
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1880
|
-
return
|
|
1773
|
+
return unmarshal_json_response(
|
|
1881
1774
|
Optional[List[operations.ResponseBody]], http_res
|
|
1882
1775
|
)
|
|
1883
1776
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1884
|
-
response_data =
|
|
1885
|
-
errors.BadRequestData, http_res
|
|
1886
|
-
)
|
|
1777
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1887
1778
|
raise errors.BadRequest(response_data, http_res)
|
|
1888
1779
|
if utils.match_response(http_res, "401", "application/json"):
|
|
1889
|
-
response_data =
|
|
1890
|
-
errors.UnauthorizedData, http_res
|
|
1891
|
-
)
|
|
1780
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
1892
1781
|
raise errors.Unauthorized(response_data, http_res)
|
|
1893
1782
|
if utils.match_response(http_res, "403", "application/json"):
|
|
1894
|
-
response_data =
|
|
1895
|
-
errors.ForbiddenData, http_res
|
|
1896
|
-
)
|
|
1783
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
1897
1784
|
raise errors.Forbidden(response_data, http_res)
|
|
1898
1785
|
if utils.match_response(http_res, "404", "application/json"):
|
|
1899
|
-
response_data =
|
|
1786
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
1900
1787
|
raise errors.NotFound(response_data, http_res)
|
|
1901
1788
|
if utils.match_response(http_res, "409", "application/json"):
|
|
1902
|
-
response_data =
|
|
1789
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
1903
1790
|
raise errors.Conflict(response_data, http_res)
|
|
1904
1791
|
if utils.match_response(http_res, "410", "application/json"):
|
|
1905
|
-
response_data =
|
|
1906
|
-
errors.InviteExpiredData, http_res
|
|
1907
|
-
)
|
|
1792
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
1908
1793
|
raise errors.InviteExpired(response_data, http_res)
|
|
1909
1794
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1910
|
-
response_data =
|
|
1795
|
+
response_data = unmarshal_json_response(
|
|
1911
1796
|
errors.UnprocessableEntityData, http_res
|
|
1912
1797
|
)
|
|
1913
1798
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
1914
1799
|
if utils.match_response(http_res, "429", "application/json"):
|
|
1915
|
-
response_data =
|
|
1800
|
+
response_data = unmarshal_json_response(
|
|
1916
1801
|
errors.RateLimitExceededData, http_res
|
|
1917
1802
|
)
|
|
1918
1803
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
1919
1804
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1920
|
-
response_data =
|
|
1805
|
+
response_data = unmarshal_json_response(
|
|
1921
1806
|
errors.InternalServerErrorData, http_res
|
|
1922
1807
|
)
|
|
1923
1808
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2019,47 +1904,39 @@ class Links(BaseSDK):
|
|
|
2019
1904
|
|
|
2020
1905
|
response_data: Any = None
|
|
2021
1906
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2022
|
-
return
|
|
1907
|
+
return unmarshal_json_response(
|
|
2023
1908
|
Optional[List[operations.ResponseBody]], http_res
|
|
2024
1909
|
)
|
|
2025
1910
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2026
|
-
response_data =
|
|
2027
|
-
errors.BadRequestData, http_res
|
|
2028
|
-
)
|
|
1911
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2029
1912
|
raise errors.BadRequest(response_data, http_res)
|
|
2030
1913
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2031
|
-
response_data =
|
|
2032
|
-
errors.UnauthorizedData, http_res
|
|
2033
|
-
)
|
|
1914
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2034
1915
|
raise errors.Unauthorized(response_data, http_res)
|
|
2035
1916
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2036
|
-
response_data =
|
|
2037
|
-
errors.ForbiddenData, http_res
|
|
2038
|
-
)
|
|
1917
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2039
1918
|
raise errors.Forbidden(response_data, http_res)
|
|
2040
1919
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2041
|
-
response_data =
|
|
1920
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2042
1921
|
raise errors.NotFound(response_data, http_res)
|
|
2043
1922
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2044
|
-
response_data =
|
|
1923
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2045
1924
|
raise errors.Conflict(response_data, http_res)
|
|
2046
1925
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2047
|
-
response_data =
|
|
2048
|
-
errors.InviteExpiredData, http_res
|
|
2049
|
-
)
|
|
1926
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2050
1927
|
raise errors.InviteExpired(response_data, http_res)
|
|
2051
1928
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2052
|
-
response_data =
|
|
1929
|
+
response_data = unmarshal_json_response(
|
|
2053
1930
|
errors.UnprocessableEntityData, http_res
|
|
2054
1931
|
)
|
|
2055
1932
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2056
1933
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2057
|
-
response_data =
|
|
1934
|
+
response_data = unmarshal_json_response(
|
|
2058
1935
|
errors.RateLimitExceededData, http_res
|
|
2059
1936
|
)
|
|
2060
1937
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2061
1938
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2062
|
-
response_data =
|
|
1939
|
+
response_data = unmarshal_json_response(
|
|
2063
1940
|
errors.InternalServerErrorData, http_res
|
|
2064
1941
|
)
|
|
2065
1942
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2170,47 +2047,39 @@ class Links(BaseSDK):
|
|
|
2170
2047
|
|
|
2171
2048
|
response_data: Any = None
|
|
2172
2049
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2173
|
-
return
|
|
2050
|
+
return unmarshal_json_response(
|
|
2174
2051
|
Optional[List[components.LinkSchema]], http_res
|
|
2175
2052
|
)
|
|
2176
2053
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2177
|
-
response_data =
|
|
2178
|
-
errors.BadRequestData, http_res
|
|
2179
|
-
)
|
|
2054
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2180
2055
|
raise errors.BadRequest(response_data, http_res)
|
|
2181
2056
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2182
|
-
response_data =
|
|
2183
|
-
errors.UnauthorizedData, http_res
|
|
2184
|
-
)
|
|
2057
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2185
2058
|
raise errors.Unauthorized(response_data, http_res)
|
|
2186
2059
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2187
|
-
response_data =
|
|
2188
|
-
errors.ForbiddenData, http_res
|
|
2189
|
-
)
|
|
2060
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2190
2061
|
raise errors.Forbidden(response_data, http_res)
|
|
2191
2062
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2192
|
-
response_data =
|
|
2063
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2193
2064
|
raise errors.NotFound(response_data, http_res)
|
|
2194
2065
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2195
|
-
response_data =
|
|
2066
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2196
2067
|
raise errors.Conflict(response_data, http_res)
|
|
2197
2068
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2198
|
-
response_data =
|
|
2199
|
-
errors.InviteExpiredData, http_res
|
|
2200
|
-
)
|
|
2069
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2201
2070
|
raise errors.InviteExpired(response_data, http_res)
|
|
2202
2071
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2203
|
-
response_data =
|
|
2072
|
+
response_data = unmarshal_json_response(
|
|
2204
2073
|
errors.UnprocessableEntityData, http_res
|
|
2205
2074
|
)
|
|
2206
2075
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2207
2076
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2208
|
-
response_data =
|
|
2077
|
+
response_data = unmarshal_json_response(
|
|
2209
2078
|
errors.RateLimitExceededData, http_res
|
|
2210
2079
|
)
|
|
2211
2080
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2212
2081
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2213
|
-
response_data =
|
|
2082
|
+
response_data = unmarshal_json_response(
|
|
2214
2083
|
errors.InternalServerErrorData, http_res
|
|
2215
2084
|
)
|
|
2216
2085
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2321,47 +2190,39 @@ class Links(BaseSDK):
|
|
|
2321
2190
|
|
|
2322
2191
|
response_data: Any = None
|
|
2323
2192
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2324
|
-
return
|
|
2193
|
+
return unmarshal_json_response(
|
|
2325
2194
|
Optional[List[components.LinkSchema]], http_res
|
|
2326
2195
|
)
|
|
2327
2196
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2328
|
-
response_data =
|
|
2329
|
-
errors.BadRequestData, http_res
|
|
2330
|
-
)
|
|
2197
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2331
2198
|
raise errors.BadRequest(response_data, http_res)
|
|
2332
2199
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2333
|
-
response_data =
|
|
2334
|
-
errors.UnauthorizedData, http_res
|
|
2335
|
-
)
|
|
2200
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2336
2201
|
raise errors.Unauthorized(response_data, http_res)
|
|
2337
2202
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2338
|
-
response_data =
|
|
2339
|
-
errors.ForbiddenData, http_res
|
|
2340
|
-
)
|
|
2203
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2341
2204
|
raise errors.Forbidden(response_data, http_res)
|
|
2342
2205
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2343
|
-
response_data =
|
|
2206
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2344
2207
|
raise errors.NotFound(response_data, http_res)
|
|
2345
2208
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2346
|
-
response_data =
|
|
2209
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2347
2210
|
raise errors.Conflict(response_data, http_res)
|
|
2348
2211
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2349
|
-
response_data =
|
|
2350
|
-
errors.InviteExpiredData, http_res
|
|
2351
|
-
)
|
|
2212
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2352
2213
|
raise errors.InviteExpired(response_data, http_res)
|
|
2353
2214
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2354
|
-
response_data =
|
|
2215
|
+
response_data = unmarshal_json_response(
|
|
2355
2216
|
errors.UnprocessableEntityData, http_res
|
|
2356
2217
|
)
|
|
2357
2218
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2358
2219
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2359
|
-
response_data =
|
|
2220
|
+
response_data = unmarshal_json_response(
|
|
2360
2221
|
errors.RateLimitExceededData, http_res
|
|
2361
2222
|
)
|
|
2362
2223
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2363
2224
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2364
|
-
response_data =
|
|
2225
|
+
response_data = unmarshal_json_response(
|
|
2365
2226
|
errors.InternalServerErrorData, http_res
|
|
2366
2227
|
)
|
|
2367
2228
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2461,47 +2322,39 @@ class Links(BaseSDK):
|
|
|
2461
2322
|
|
|
2462
2323
|
response_data: Any = None
|
|
2463
2324
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2464
|
-
return
|
|
2325
|
+
return unmarshal_json_response(
|
|
2465
2326
|
Optional[operations.BulkDeleteLinksResponseBody], http_res
|
|
2466
2327
|
)
|
|
2467
2328
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2468
|
-
response_data =
|
|
2469
|
-
errors.BadRequestData, http_res
|
|
2470
|
-
)
|
|
2329
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2471
2330
|
raise errors.BadRequest(response_data, http_res)
|
|
2472
2331
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2473
|
-
response_data =
|
|
2474
|
-
errors.UnauthorizedData, http_res
|
|
2475
|
-
)
|
|
2332
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2476
2333
|
raise errors.Unauthorized(response_data, http_res)
|
|
2477
2334
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2478
|
-
response_data =
|
|
2479
|
-
errors.ForbiddenData, http_res
|
|
2480
|
-
)
|
|
2335
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2481
2336
|
raise errors.Forbidden(response_data, http_res)
|
|
2482
2337
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2483
|
-
response_data =
|
|
2338
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2484
2339
|
raise errors.NotFound(response_data, http_res)
|
|
2485
2340
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2486
|
-
response_data =
|
|
2341
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2487
2342
|
raise errors.Conflict(response_data, http_res)
|
|
2488
2343
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2489
|
-
response_data =
|
|
2490
|
-
errors.InviteExpiredData, http_res
|
|
2491
|
-
)
|
|
2344
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2492
2345
|
raise errors.InviteExpired(response_data, http_res)
|
|
2493
2346
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2494
|
-
response_data =
|
|
2347
|
+
response_data = unmarshal_json_response(
|
|
2495
2348
|
errors.UnprocessableEntityData, http_res
|
|
2496
2349
|
)
|
|
2497
2350
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2498
2351
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2499
|
-
response_data =
|
|
2352
|
+
response_data = unmarshal_json_response(
|
|
2500
2353
|
errors.RateLimitExceededData, http_res
|
|
2501
2354
|
)
|
|
2502
2355
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2503
2356
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2504
|
-
response_data =
|
|
2357
|
+
response_data = unmarshal_json_response(
|
|
2505
2358
|
errors.InternalServerErrorData, http_res
|
|
2506
2359
|
)
|
|
2507
2360
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2601,47 +2454,39 @@ class Links(BaseSDK):
|
|
|
2601
2454
|
|
|
2602
2455
|
response_data: Any = None
|
|
2603
2456
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2604
|
-
return
|
|
2457
|
+
return unmarshal_json_response(
|
|
2605
2458
|
Optional[operations.BulkDeleteLinksResponseBody], http_res
|
|
2606
2459
|
)
|
|
2607
2460
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2608
|
-
response_data =
|
|
2609
|
-
errors.BadRequestData, http_res
|
|
2610
|
-
)
|
|
2461
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2611
2462
|
raise errors.BadRequest(response_data, http_res)
|
|
2612
2463
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2613
|
-
response_data =
|
|
2614
|
-
errors.UnauthorizedData, http_res
|
|
2615
|
-
)
|
|
2464
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2616
2465
|
raise errors.Unauthorized(response_data, http_res)
|
|
2617
2466
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2618
|
-
response_data =
|
|
2619
|
-
errors.ForbiddenData, http_res
|
|
2620
|
-
)
|
|
2467
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2621
2468
|
raise errors.Forbidden(response_data, http_res)
|
|
2622
2469
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2623
|
-
response_data =
|
|
2470
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2624
2471
|
raise errors.NotFound(response_data, http_res)
|
|
2625
2472
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2626
|
-
response_data =
|
|
2473
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2627
2474
|
raise errors.Conflict(response_data, http_res)
|
|
2628
2475
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2629
|
-
response_data =
|
|
2630
|
-
errors.InviteExpiredData, http_res
|
|
2631
|
-
)
|
|
2476
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2632
2477
|
raise errors.InviteExpired(response_data, http_res)
|
|
2633
2478
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2634
|
-
response_data =
|
|
2479
|
+
response_data = unmarshal_json_response(
|
|
2635
2480
|
errors.UnprocessableEntityData, http_res
|
|
2636
2481
|
)
|
|
2637
2482
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2638
2483
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2639
|
-
response_data =
|
|
2484
|
+
response_data = unmarshal_json_response(
|
|
2640
2485
|
errors.RateLimitExceededData, http_res
|
|
2641
2486
|
)
|
|
2642
2487
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2643
2488
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2644
|
-
response_data =
|
|
2489
|
+
response_data = unmarshal_json_response(
|
|
2645
2490
|
errors.InternalServerErrorData, http_res
|
|
2646
2491
|
)
|
|
2647
2492
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2748,47 +2593,37 @@ class Links(BaseSDK):
|
|
|
2748
2593
|
|
|
2749
2594
|
response_data: Any = None
|
|
2750
2595
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2751
|
-
return
|
|
2752
|
-
Optional[components.LinkSchema], http_res
|
|
2753
|
-
)
|
|
2596
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
2754
2597
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2755
|
-
response_data =
|
|
2756
|
-
errors.BadRequestData, http_res
|
|
2757
|
-
)
|
|
2598
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2758
2599
|
raise errors.BadRequest(response_data, http_res)
|
|
2759
2600
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2760
|
-
response_data =
|
|
2761
|
-
errors.UnauthorizedData, http_res
|
|
2762
|
-
)
|
|
2601
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2763
2602
|
raise errors.Unauthorized(response_data, http_res)
|
|
2764
2603
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2765
|
-
response_data =
|
|
2766
|
-
errors.ForbiddenData, http_res
|
|
2767
|
-
)
|
|
2604
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2768
2605
|
raise errors.Forbidden(response_data, http_res)
|
|
2769
2606
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2770
|
-
response_data =
|
|
2607
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2771
2608
|
raise errors.NotFound(response_data, http_res)
|
|
2772
2609
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2773
|
-
response_data =
|
|
2610
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2774
2611
|
raise errors.Conflict(response_data, http_res)
|
|
2775
2612
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2776
|
-
response_data =
|
|
2777
|
-
errors.InviteExpiredData, http_res
|
|
2778
|
-
)
|
|
2613
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2779
2614
|
raise errors.InviteExpired(response_data, http_res)
|
|
2780
2615
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2781
|
-
response_data =
|
|
2616
|
+
response_data = unmarshal_json_response(
|
|
2782
2617
|
errors.UnprocessableEntityData, http_res
|
|
2783
2618
|
)
|
|
2784
2619
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2785
2620
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2786
|
-
response_data =
|
|
2621
|
+
response_data = unmarshal_json_response(
|
|
2787
2622
|
errors.RateLimitExceededData, http_res
|
|
2788
2623
|
)
|
|
2789
2624
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2790
2625
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2791
|
-
response_data =
|
|
2626
|
+
response_data = unmarshal_json_response(
|
|
2792
2627
|
errors.InternalServerErrorData, http_res
|
|
2793
2628
|
)
|
|
2794
2629
|
raise errors.InternalServerError(response_data, http_res)
|
|
@@ -2895,47 +2730,37 @@ class Links(BaseSDK):
|
|
|
2895
2730
|
|
|
2896
2731
|
response_data: Any = None
|
|
2897
2732
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2898
|
-
return
|
|
2899
|
-
Optional[components.LinkSchema], http_res
|
|
2900
|
-
)
|
|
2733
|
+
return unmarshal_json_response(Optional[components.LinkSchema], http_res)
|
|
2901
2734
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2902
|
-
response_data =
|
|
2903
|
-
errors.BadRequestData, http_res
|
|
2904
|
-
)
|
|
2735
|
+
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2905
2736
|
raise errors.BadRequest(response_data, http_res)
|
|
2906
2737
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2907
|
-
response_data =
|
|
2908
|
-
errors.UnauthorizedData, http_res
|
|
2909
|
-
)
|
|
2738
|
+
response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
|
|
2910
2739
|
raise errors.Unauthorized(response_data, http_res)
|
|
2911
2740
|
if utils.match_response(http_res, "403", "application/json"):
|
|
2912
|
-
response_data =
|
|
2913
|
-
errors.ForbiddenData, http_res
|
|
2914
|
-
)
|
|
2741
|
+
response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
|
|
2915
2742
|
raise errors.Forbidden(response_data, http_res)
|
|
2916
2743
|
if utils.match_response(http_res, "404", "application/json"):
|
|
2917
|
-
response_data =
|
|
2744
|
+
response_data = unmarshal_json_response(errors.NotFoundData, http_res)
|
|
2918
2745
|
raise errors.NotFound(response_data, http_res)
|
|
2919
2746
|
if utils.match_response(http_res, "409", "application/json"):
|
|
2920
|
-
response_data =
|
|
2747
|
+
response_data = unmarshal_json_response(errors.ConflictData, http_res)
|
|
2921
2748
|
raise errors.Conflict(response_data, http_res)
|
|
2922
2749
|
if utils.match_response(http_res, "410", "application/json"):
|
|
2923
|
-
response_data =
|
|
2924
|
-
errors.InviteExpiredData, http_res
|
|
2925
|
-
)
|
|
2750
|
+
response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
|
|
2926
2751
|
raise errors.InviteExpired(response_data, http_res)
|
|
2927
2752
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2928
|
-
response_data =
|
|
2753
|
+
response_data = unmarshal_json_response(
|
|
2929
2754
|
errors.UnprocessableEntityData, http_res
|
|
2930
2755
|
)
|
|
2931
2756
|
raise errors.UnprocessableEntity(response_data, http_res)
|
|
2932
2757
|
if utils.match_response(http_res, "429", "application/json"):
|
|
2933
|
-
response_data =
|
|
2758
|
+
response_data = unmarshal_json_response(
|
|
2934
2759
|
errors.RateLimitExceededData, http_res
|
|
2935
2760
|
)
|
|
2936
2761
|
raise errors.RateLimitExceeded(response_data, http_res)
|
|
2937
2762
|
if utils.match_response(http_res, "500", "application/json"):
|
|
2938
|
-
response_data =
|
|
2763
|
+
response_data = unmarshal_json_response(
|
|
2939
2764
|
errors.InternalServerErrorData, http_res
|
|
2940
2765
|
)
|
|
2941
2766
|
raise errors.InternalServerError(response_data, http_res)
|