dub 0.32.0__py3-none-any.whl → 0.34.0__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 +6 -4
- dub/basesdk.py +6 -0
- dub/commissions.py +12 -8
- dub/customers.py +24 -313
- dub/domains.py +34 -26
- dub/embed_tokens.py +6 -4
- dub/events.py +6 -4
- dub/folders.py +24 -20
- dub/links.py +58 -54
- dub/models/components/__init__.py +81 -149
- dub/models/components/analyticstopurls.py +2 -2
- dub/models/components/leadcreatedevent.py +15 -14
- dub/models/components/linkclickedevent.py +19 -18
- dub/models/components/linkerrorschema.py +12 -12
- dub/models/components/linkschema.py +9 -3
- dub/models/components/linktagschema.py +3 -3
- dub/models/components/linktagschemaoutput.py +38 -0
- dub/models/components/linkwebhookevent.py +15 -16
- dub/models/components/partnerapplicationsubmittedevent.py +269 -0
- dub/models/components/partnerenrolledevent.py +68 -8
- dub/models/components/salecreatedevent.py +15 -14
- dub/models/components/webhookevent.py +6 -0
- dub/models/components/workspaceschema.py +6 -0
- dub/models/operations/__init__.py +147 -57
- dub/models/operations/banpartner.py +83 -0
- dub/models/operations/createpartner.py +68 -59
- dub/models/operations/createpartnerlink.py +0 -51
- dub/models/operations/createreferralsembedtoken.py +0 -51
- dub/models/operations/getcustomers.py +18 -0
- dub/models/operations/getlinkinfo.py +0 -2
- dub/models/operations/getlinks.py +2 -2
- dub/models/operations/getlinkscount.py +2 -2
- dub/models/operations/getqrcode.py +1 -1
- dub/models/operations/listcommissions.py +13 -2
- dub/models/operations/listdomains.py +1 -1
- dub/models/operations/listevents.py +2026 -21
- dub/models/operations/listpartners.py +75 -8
- dub/models/operations/retrieveanalytics.py +28 -5
- dub/models/operations/retrievelinks.py +44 -9
- dub/models/operations/retrievepartneranalytics.py +51 -11
- dub/models/operations/tracklead.py +4 -4
- dub/models/operations/updatecommission.py +7 -2
- dub/models/operations/updatecustomer.py +23 -11
- dub/models/operations/updatelink.py +0 -2
- dub/models/operations/updateworkspace.py +3 -3
- dub/models/operations/upsertpartnerlink.py +0 -51
- dub/partners.py +316 -24
- dub/qr_codes.py +4 -2
- dub/tags.py +24 -20
- dub/track.py +12 -16
- dub/types/basemodel.py +41 -3
- dub/utils/__init__.py +0 -3
- dub/utils/enums.py +60 -0
- dub/utils/forms.py +21 -10
- dub/utils/queryparams.py +14 -2
- dub/utils/requestbodies.py +3 -3
- dub/utils/retries.py +69 -5
- dub/utils/serializers.py +0 -20
- dub/utils/unmarshal_json_response.py +15 -1
- dub/workspaces.py +12 -16
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/METADATA +15 -33
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/RECORD +65 -67
- dub/models/components/clickevent.py +0 -556
- dub/models/components/continentcode.py +0 -16
- dub/models/components/leadevent.py +0 -680
- dub/models/components/saleevent.py +0 -779
- dub/models/operations/createcustomer.py +0 -382
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/WHEEL +0 -0
- {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/licenses/LICENSE +0 -0
dub/links.py
CHANGED
|
@@ -24,7 +24,7 @@ class Links(BaseSDK):
|
|
|
24
24
|
server_url: Optional[str] = None,
|
|
25
25
|
timeout_ms: Optional[int] = None,
|
|
26
26
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
27
|
-
) ->
|
|
27
|
+
) -> components.LinkSchema:
|
|
28
28
|
r"""Create a link
|
|
29
29
|
|
|
30
30
|
Create a link for the authenticated workspace.
|
|
@@ -67,6 +67,7 @@ class Links(BaseSDK):
|
|
|
67
67
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
68
68
|
request, False, True, "json", Optional[operations.CreateLinkRequestBody]
|
|
69
69
|
),
|
|
70
|
+
allow_empty_value=None,
|
|
70
71
|
timeout_ms=timeout_ms,
|
|
71
72
|
)
|
|
72
73
|
|
|
@@ -105,7 +106,7 @@ class Links(BaseSDK):
|
|
|
105
106
|
|
|
106
107
|
response_data: Any = None
|
|
107
108
|
if utils.match_response(http_res, "200", "application/json"):
|
|
108
|
-
return unmarshal_json_response(
|
|
109
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
109
110
|
if utils.match_response(http_res, "400", "application/json"):
|
|
110
111
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
111
112
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -161,7 +162,7 @@ class Links(BaseSDK):
|
|
|
161
162
|
server_url: Optional[str] = None,
|
|
162
163
|
timeout_ms: Optional[int] = None,
|
|
163
164
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
164
|
-
) ->
|
|
165
|
+
) -> components.LinkSchema:
|
|
165
166
|
r"""Create a link
|
|
166
167
|
|
|
167
168
|
Create a link for the authenticated workspace.
|
|
@@ -204,6 +205,7 @@ class Links(BaseSDK):
|
|
|
204
205
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
205
206
|
request, False, True, "json", Optional[operations.CreateLinkRequestBody]
|
|
206
207
|
),
|
|
208
|
+
allow_empty_value=None,
|
|
207
209
|
timeout_ms=timeout_ms,
|
|
208
210
|
)
|
|
209
211
|
|
|
@@ -242,7 +244,7 @@ class Links(BaseSDK):
|
|
|
242
244
|
|
|
243
245
|
response_data: Any = None
|
|
244
246
|
if utils.match_response(http_res, "200", "application/json"):
|
|
245
|
-
return unmarshal_json_response(
|
|
247
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
246
248
|
if utils.match_response(http_res, "400", "application/json"):
|
|
247
249
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
248
250
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -331,6 +333,7 @@ class Links(BaseSDK):
|
|
|
331
333
|
accept_header_value="application/json",
|
|
332
334
|
http_headers=http_headers,
|
|
333
335
|
security=self.sdk_configuration.security,
|
|
336
|
+
allow_empty_value=None,
|
|
334
337
|
timeout_ms=timeout_ms,
|
|
335
338
|
)
|
|
336
339
|
|
|
@@ -405,9 +408,7 @@ class Links(BaseSDK):
|
|
|
405
408
|
response_data: Any = None
|
|
406
409
|
if utils.match_response(http_res, "200", "application/json"):
|
|
407
410
|
return operations.GetLinksResponse(
|
|
408
|
-
result=unmarshal_json_response(
|
|
409
|
-
Optional[List[components.LinkSchema]], http_res
|
|
410
|
-
),
|
|
411
|
+
result=unmarshal_json_response(List[components.LinkSchema], http_res),
|
|
411
412
|
next=next_func,
|
|
412
413
|
)
|
|
413
414
|
if utils.match_response(http_res, "400", "application/json"):
|
|
@@ -498,6 +499,7 @@ class Links(BaseSDK):
|
|
|
498
499
|
accept_header_value="application/json",
|
|
499
500
|
http_headers=http_headers,
|
|
500
501
|
security=self.sdk_configuration.security,
|
|
502
|
+
allow_empty_value=None,
|
|
501
503
|
timeout_ms=timeout_ms,
|
|
502
504
|
)
|
|
503
505
|
|
|
@@ -572,9 +574,7 @@ class Links(BaseSDK):
|
|
|
572
574
|
response_data: Any = None
|
|
573
575
|
if utils.match_response(http_res, "200", "application/json"):
|
|
574
576
|
return operations.GetLinksResponse(
|
|
575
|
-
result=unmarshal_json_response(
|
|
576
|
-
Optional[List[components.LinkSchema]], http_res
|
|
577
|
-
),
|
|
577
|
+
result=unmarshal_json_response(List[components.LinkSchema], http_res),
|
|
578
578
|
next=next_func,
|
|
579
579
|
)
|
|
580
580
|
if utils.match_response(http_res, "400", "application/json"):
|
|
@@ -629,7 +629,7 @@ class Links(BaseSDK):
|
|
|
629
629
|
server_url: Optional[str] = None,
|
|
630
630
|
timeout_ms: Optional[int] = None,
|
|
631
631
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
632
|
-
) ->
|
|
632
|
+
) -> float:
|
|
633
633
|
r"""Retrieve links count
|
|
634
634
|
|
|
635
635
|
Retrieve the number of links for the authenticated workspace.
|
|
@@ -667,6 +667,7 @@ class Links(BaseSDK):
|
|
|
667
667
|
accept_header_value="application/json",
|
|
668
668
|
http_headers=http_headers,
|
|
669
669
|
security=self.sdk_configuration.security,
|
|
670
|
+
allow_empty_value=None,
|
|
670
671
|
timeout_ms=timeout_ms,
|
|
671
672
|
)
|
|
672
673
|
|
|
@@ -705,7 +706,7 @@ class Links(BaseSDK):
|
|
|
705
706
|
|
|
706
707
|
response_data: Any = None
|
|
707
708
|
if utils.match_response(http_res, "200", "application/json"):
|
|
708
|
-
return unmarshal_json_response(
|
|
709
|
+
return unmarshal_json_response(float, http_res)
|
|
709
710
|
if utils.match_response(http_res, "400", "application/json"):
|
|
710
711
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
711
712
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -758,7 +759,7 @@ class Links(BaseSDK):
|
|
|
758
759
|
server_url: Optional[str] = None,
|
|
759
760
|
timeout_ms: Optional[int] = None,
|
|
760
761
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
761
|
-
) ->
|
|
762
|
+
) -> float:
|
|
762
763
|
r"""Retrieve links count
|
|
763
764
|
|
|
764
765
|
Retrieve the number of links for the authenticated workspace.
|
|
@@ -796,6 +797,7 @@ class Links(BaseSDK):
|
|
|
796
797
|
accept_header_value="application/json",
|
|
797
798
|
http_headers=http_headers,
|
|
798
799
|
security=self.sdk_configuration.security,
|
|
800
|
+
allow_empty_value=None,
|
|
799
801
|
timeout_ms=timeout_ms,
|
|
800
802
|
)
|
|
801
803
|
|
|
@@ -834,7 +836,7 @@ class Links(BaseSDK):
|
|
|
834
836
|
|
|
835
837
|
response_data: Any = None
|
|
836
838
|
if utils.match_response(http_res, "200", "application/json"):
|
|
837
|
-
return unmarshal_json_response(
|
|
839
|
+
return unmarshal_json_response(float, http_res)
|
|
838
840
|
if utils.match_response(http_res, "400", "application/json"):
|
|
839
841
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
840
842
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -887,7 +889,7 @@ class Links(BaseSDK):
|
|
|
887
889
|
server_url: Optional[str] = None,
|
|
888
890
|
timeout_ms: Optional[int] = None,
|
|
889
891
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
890
|
-
) ->
|
|
892
|
+
) -> components.LinkSchema:
|
|
891
893
|
r"""Retrieve a link
|
|
892
894
|
|
|
893
895
|
Retrieve the info for a link.
|
|
@@ -925,6 +927,7 @@ class Links(BaseSDK):
|
|
|
925
927
|
accept_header_value="application/json",
|
|
926
928
|
http_headers=http_headers,
|
|
927
929
|
security=self.sdk_configuration.security,
|
|
930
|
+
allow_empty_value=None,
|
|
928
931
|
timeout_ms=timeout_ms,
|
|
929
932
|
)
|
|
930
933
|
|
|
@@ -963,7 +966,7 @@ class Links(BaseSDK):
|
|
|
963
966
|
|
|
964
967
|
response_data: Any = None
|
|
965
968
|
if utils.match_response(http_res, "200", "application/json"):
|
|
966
|
-
return unmarshal_json_response(
|
|
969
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
967
970
|
if utils.match_response(http_res, "400", "application/json"):
|
|
968
971
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
969
972
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1016,7 +1019,7 @@ class Links(BaseSDK):
|
|
|
1016
1019
|
server_url: Optional[str] = None,
|
|
1017
1020
|
timeout_ms: Optional[int] = None,
|
|
1018
1021
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1019
|
-
) ->
|
|
1022
|
+
) -> components.LinkSchema:
|
|
1020
1023
|
r"""Retrieve a link
|
|
1021
1024
|
|
|
1022
1025
|
Retrieve the info for a link.
|
|
@@ -1054,6 +1057,7 @@ class Links(BaseSDK):
|
|
|
1054
1057
|
accept_header_value="application/json",
|
|
1055
1058
|
http_headers=http_headers,
|
|
1056
1059
|
security=self.sdk_configuration.security,
|
|
1060
|
+
allow_empty_value=None,
|
|
1057
1061
|
timeout_ms=timeout_ms,
|
|
1058
1062
|
)
|
|
1059
1063
|
|
|
@@ -1092,7 +1096,7 @@ class Links(BaseSDK):
|
|
|
1092
1096
|
|
|
1093
1097
|
response_data: Any = None
|
|
1094
1098
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1095
|
-
return unmarshal_json_response(
|
|
1099
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
1096
1100
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1097
1101
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1098
1102
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1149,7 +1153,7 @@ class Links(BaseSDK):
|
|
|
1149
1153
|
server_url: Optional[str] = None,
|
|
1150
1154
|
timeout_ms: Optional[int] = None,
|
|
1151
1155
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1152
|
-
) ->
|
|
1156
|
+
) -> components.LinkSchema:
|
|
1153
1157
|
r"""Update a link
|
|
1154
1158
|
|
|
1155
1159
|
Update a link for the authenticated workspace. If there's no change, returns it as it is.
|
|
@@ -1198,6 +1202,7 @@ class Links(BaseSDK):
|
|
|
1198
1202
|
"json",
|
|
1199
1203
|
Optional[operations.UpdateLinkRequestBody],
|
|
1200
1204
|
),
|
|
1205
|
+
allow_empty_value=None,
|
|
1201
1206
|
timeout_ms=timeout_ms,
|
|
1202
1207
|
)
|
|
1203
1208
|
|
|
@@ -1236,7 +1241,7 @@ class Links(BaseSDK):
|
|
|
1236
1241
|
|
|
1237
1242
|
response_data: Any = None
|
|
1238
1243
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1239
|
-
return unmarshal_json_response(
|
|
1244
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
1240
1245
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1241
1246
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1242
1247
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1293,7 +1298,7 @@ class Links(BaseSDK):
|
|
|
1293
1298
|
server_url: Optional[str] = None,
|
|
1294
1299
|
timeout_ms: Optional[int] = None,
|
|
1295
1300
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1296
|
-
) ->
|
|
1301
|
+
) -> components.LinkSchema:
|
|
1297
1302
|
r"""Update a link
|
|
1298
1303
|
|
|
1299
1304
|
Update a link for the authenticated workspace. If there's no change, returns it as it is.
|
|
@@ -1342,6 +1347,7 @@ class Links(BaseSDK):
|
|
|
1342
1347
|
"json",
|
|
1343
1348
|
Optional[operations.UpdateLinkRequestBody],
|
|
1344
1349
|
),
|
|
1350
|
+
allow_empty_value=None,
|
|
1345
1351
|
timeout_ms=timeout_ms,
|
|
1346
1352
|
)
|
|
1347
1353
|
|
|
@@ -1380,7 +1386,7 @@ class Links(BaseSDK):
|
|
|
1380
1386
|
|
|
1381
1387
|
response_data: Any = None
|
|
1382
1388
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1383
|
-
return unmarshal_json_response(
|
|
1389
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
1384
1390
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1385
1391
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1386
1392
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1431,7 +1437,7 @@ class Links(BaseSDK):
|
|
|
1431
1437
|
server_url: Optional[str] = None,
|
|
1432
1438
|
timeout_ms: Optional[int] = None,
|
|
1433
1439
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1434
|
-
) ->
|
|
1440
|
+
) -> operations.DeleteLinkResponseBody:
|
|
1435
1441
|
r"""Delete a link
|
|
1436
1442
|
|
|
1437
1443
|
Delete a link for the authenticated workspace.
|
|
@@ -1469,6 +1475,7 @@ class Links(BaseSDK):
|
|
|
1469
1475
|
accept_header_value="application/json",
|
|
1470
1476
|
http_headers=http_headers,
|
|
1471
1477
|
security=self.sdk_configuration.security,
|
|
1478
|
+
allow_empty_value=None,
|
|
1472
1479
|
timeout_ms=timeout_ms,
|
|
1473
1480
|
)
|
|
1474
1481
|
|
|
@@ -1507,9 +1514,7 @@ class Links(BaseSDK):
|
|
|
1507
1514
|
|
|
1508
1515
|
response_data: Any = None
|
|
1509
1516
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1510
|
-
return unmarshal_json_response(
|
|
1511
|
-
Optional[operations.DeleteLinkResponseBody], http_res
|
|
1512
|
-
)
|
|
1517
|
+
return unmarshal_json_response(operations.DeleteLinkResponseBody, http_res)
|
|
1513
1518
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1514
1519
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1515
1520
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1560,7 +1565,7 @@ class Links(BaseSDK):
|
|
|
1560
1565
|
server_url: Optional[str] = None,
|
|
1561
1566
|
timeout_ms: Optional[int] = None,
|
|
1562
1567
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1563
|
-
) ->
|
|
1568
|
+
) -> operations.DeleteLinkResponseBody:
|
|
1564
1569
|
r"""Delete a link
|
|
1565
1570
|
|
|
1566
1571
|
Delete a link for the authenticated workspace.
|
|
@@ -1598,6 +1603,7 @@ class Links(BaseSDK):
|
|
|
1598
1603
|
accept_header_value="application/json",
|
|
1599
1604
|
http_headers=http_headers,
|
|
1600
1605
|
security=self.sdk_configuration.security,
|
|
1606
|
+
allow_empty_value=None,
|
|
1601
1607
|
timeout_ms=timeout_ms,
|
|
1602
1608
|
)
|
|
1603
1609
|
|
|
@@ -1636,9 +1642,7 @@ class Links(BaseSDK):
|
|
|
1636
1642
|
|
|
1637
1643
|
response_data: Any = None
|
|
1638
1644
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1639
|
-
return unmarshal_json_response(
|
|
1640
|
-
Optional[operations.DeleteLinkResponseBody], http_res
|
|
1641
|
-
)
|
|
1645
|
+
return unmarshal_json_response(operations.DeleteLinkResponseBody, http_res)
|
|
1642
1646
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1643
1647
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1644
1648
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1691,7 +1695,7 @@ class Links(BaseSDK):
|
|
|
1691
1695
|
server_url: Optional[str] = None,
|
|
1692
1696
|
timeout_ms: Optional[int] = None,
|
|
1693
1697
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1694
|
-
) ->
|
|
1698
|
+
) -> List[operations.ResponseBody]:
|
|
1695
1699
|
r"""Bulk create links
|
|
1696
1700
|
|
|
1697
1701
|
Bulk create up to 100 links for the authenticated workspace.
|
|
@@ -1732,6 +1736,7 @@ class Links(BaseSDK):
|
|
|
1732
1736
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1733
1737
|
request, False, True, "json", Optional[List[operations.RequestBody]]
|
|
1734
1738
|
),
|
|
1739
|
+
allow_empty_value=None,
|
|
1735
1740
|
timeout_ms=timeout_ms,
|
|
1736
1741
|
)
|
|
1737
1742
|
|
|
@@ -1770,9 +1775,7 @@ class Links(BaseSDK):
|
|
|
1770
1775
|
|
|
1771
1776
|
response_data: Any = None
|
|
1772
1777
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1773
|
-
return unmarshal_json_response(
|
|
1774
|
-
Optional[List[operations.ResponseBody]], http_res
|
|
1775
|
-
)
|
|
1778
|
+
return unmarshal_json_response(List[operations.ResponseBody], http_res)
|
|
1776
1779
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1777
1780
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1778
1781
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1825,7 +1828,7 @@ class Links(BaseSDK):
|
|
|
1825
1828
|
server_url: Optional[str] = None,
|
|
1826
1829
|
timeout_ms: Optional[int] = None,
|
|
1827
1830
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1828
|
-
) ->
|
|
1831
|
+
) -> List[operations.ResponseBody]:
|
|
1829
1832
|
r"""Bulk create links
|
|
1830
1833
|
|
|
1831
1834
|
Bulk create up to 100 links for the authenticated workspace.
|
|
@@ -1866,6 +1869,7 @@ class Links(BaseSDK):
|
|
|
1866
1869
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1867
1870
|
request, False, True, "json", Optional[List[operations.RequestBody]]
|
|
1868
1871
|
),
|
|
1872
|
+
allow_empty_value=None,
|
|
1869
1873
|
timeout_ms=timeout_ms,
|
|
1870
1874
|
)
|
|
1871
1875
|
|
|
@@ -1904,9 +1908,7 @@ class Links(BaseSDK):
|
|
|
1904
1908
|
|
|
1905
1909
|
response_data: Any = None
|
|
1906
1910
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1907
|
-
return unmarshal_json_response(
|
|
1908
|
-
Optional[List[operations.ResponseBody]], http_res
|
|
1909
|
-
)
|
|
1911
|
+
return unmarshal_json_response(List[operations.ResponseBody], http_res)
|
|
1910
1912
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1911
1913
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
1912
1914
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -1962,7 +1964,7 @@ class Links(BaseSDK):
|
|
|
1962
1964
|
server_url: Optional[str] = None,
|
|
1963
1965
|
timeout_ms: Optional[int] = None,
|
|
1964
1966
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1965
|
-
) ->
|
|
1967
|
+
) -> List[components.LinkSchema]:
|
|
1966
1968
|
r"""Bulk update links
|
|
1967
1969
|
|
|
1968
1970
|
Bulk update up to 100 links with the same data for the authenticated workspace.
|
|
@@ -2009,6 +2011,7 @@ class Links(BaseSDK):
|
|
|
2009
2011
|
"json",
|
|
2010
2012
|
Optional[operations.BulkUpdateLinksRequestBody],
|
|
2011
2013
|
),
|
|
2014
|
+
allow_empty_value=None,
|
|
2012
2015
|
timeout_ms=timeout_ms,
|
|
2013
2016
|
)
|
|
2014
2017
|
|
|
@@ -2047,9 +2050,7 @@ class Links(BaseSDK):
|
|
|
2047
2050
|
|
|
2048
2051
|
response_data: Any = None
|
|
2049
2052
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2050
|
-
return unmarshal_json_response(
|
|
2051
|
-
Optional[List[components.LinkSchema]], http_res
|
|
2052
|
-
)
|
|
2053
|
+
return unmarshal_json_response(List[components.LinkSchema], http_res)
|
|
2053
2054
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2054
2055
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2055
2056
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -2105,7 +2106,7 @@ class Links(BaseSDK):
|
|
|
2105
2106
|
server_url: Optional[str] = None,
|
|
2106
2107
|
timeout_ms: Optional[int] = None,
|
|
2107
2108
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2108
|
-
) ->
|
|
2109
|
+
) -> List[components.LinkSchema]:
|
|
2109
2110
|
r"""Bulk update links
|
|
2110
2111
|
|
|
2111
2112
|
Bulk update up to 100 links with the same data for the authenticated workspace.
|
|
@@ -2152,6 +2153,7 @@ class Links(BaseSDK):
|
|
|
2152
2153
|
"json",
|
|
2153
2154
|
Optional[operations.BulkUpdateLinksRequestBody],
|
|
2154
2155
|
),
|
|
2156
|
+
allow_empty_value=None,
|
|
2155
2157
|
timeout_ms=timeout_ms,
|
|
2156
2158
|
)
|
|
2157
2159
|
|
|
@@ -2190,9 +2192,7 @@ class Links(BaseSDK):
|
|
|
2190
2192
|
|
|
2191
2193
|
response_data: Any = None
|
|
2192
2194
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2193
|
-
return unmarshal_json_response(
|
|
2194
|
-
Optional[List[components.LinkSchema]], http_res
|
|
2195
|
-
)
|
|
2195
|
+
return unmarshal_json_response(List[components.LinkSchema], http_res)
|
|
2196
2196
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2197
2197
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2198
2198
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -2246,7 +2246,7 @@ class Links(BaseSDK):
|
|
|
2246
2246
|
server_url: Optional[str] = None,
|
|
2247
2247
|
timeout_ms: Optional[int] = None,
|
|
2248
2248
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2249
|
-
) ->
|
|
2249
|
+
) -> operations.BulkDeleteLinksResponseBody:
|
|
2250
2250
|
r"""Bulk delete links
|
|
2251
2251
|
|
|
2252
2252
|
Bulk delete up to 100 links for the authenticated workspace.
|
|
@@ -2284,6 +2284,7 @@ class Links(BaseSDK):
|
|
|
2284
2284
|
accept_header_value="application/json",
|
|
2285
2285
|
http_headers=http_headers,
|
|
2286
2286
|
security=self.sdk_configuration.security,
|
|
2287
|
+
allow_empty_value=None,
|
|
2287
2288
|
timeout_ms=timeout_ms,
|
|
2288
2289
|
)
|
|
2289
2290
|
|
|
@@ -2323,7 +2324,7 @@ class Links(BaseSDK):
|
|
|
2323
2324
|
response_data: Any = None
|
|
2324
2325
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2325
2326
|
return unmarshal_json_response(
|
|
2326
|
-
|
|
2327
|
+
operations.BulkDeleteLinksResponseBody, http_res
|
|
2327
2328
|
)
|
|
2328
2329
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2329
2330
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -2378,7 +2379,7 @@ class Links(BaseSDK):
|
|
|
2378
2379
|
server_url: Optional[str] = None,
|
|
2379
2380
|
timeout_ms: Optional[int] = None,
|
|
2380
2381
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2381
|
-
) ->
|
|
2382
|
+
) -> operations.BulkDeleteLinksResponseBody:
|
|
2382
2383
|
r"""Bulk delete links
|
|
2383
2384
|
|
|
2384
2385
|
Bulk delete up to 100 links for the authenticated workspace.
|
|
@@ -2416,6 +2417,7 @@ class Links(BaseSDK):
|
|
|
2416
2417
|
accept_header_value="application/json",
|
|
2417
2418
|
http_headers=http_headers,
|
|
2418
2419
|
security=self.sdk_configuration.security,
|
|
2420
|
+
allow_empty_value=None,
|
|
2419
2421
|
timeout_ms=timeout_ms,
|
|
2420
2422
|
)
|
|
2421
2423
|
|
|
@@ -2455,7 +2457,7 @@ class Links(BaseSDK):
|
|
|
2455
2457
|
response_data: Any = None
|
|
2456
2458
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2457
2459
|
return unmarshal_json_response(
|
|
2458
|
-
|
|
2460
|
+
operations.BulkDeleteLinksResponseBody, http_res
|
|
2459
2461
|
)
|
|
2460
2462
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2461
2463
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
@@ -2512,7 +2514,7 @@ class Links(BaseSDK):
|
|
|
2512
2514
|
server_url: Optional[str] = None,
|
|
2513
2515
|
timeout_ms: Optional[int] = None,
|
|
2514
2516
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2515
|
-
) ->
|
|
2517
|
+
) -> components.LinkSchema:
|
|
2516
2518
|
r"""Upsert a link
|
|
2517
2519
|
|
|
2518
2520
|
Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
|
|
@@ -2555,6 +2557,7 @@ class Links(BaseSDK):
|
|
|
2555
2557
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
2556
2558
|
request, False, True, "json", Optional[operations.UpsertLinkRequestBody]
|
|
2557
2559
|
),
|
|
2560
|
+
allow_empty_value=None,
|
|
2558
2561
|
timeout_ms=timeout_ms,
|
|
2559
2562
|
)
|
|
2560
2563
|
|
|
@@ -2593,7 +2596,7 @@ class Links(BaseSDK):
|
|
|
2593
2596
|
|
|
2594
2597
|
response_data: Any = None
|
|
2595
2598
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2596
|
-
return unmarshal_json_response(
|
|
2599
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
2597
2600
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2598
2601
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2599
2602
|
raise errors.BadRequest(response_data, http_res)
|
|
@@ -2649,7 +2652,7 @@ class Links(BaseSDK):
|
|
|
2649
2652
|
server_url: Optional[str] = None,
|
|
2650
2653
|
timeout_ms: Optional[int] = None,
|
|
2651
2654
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2652
|
-
) ->
|
|
2655
|
+
) -> components.LinkSchema:
|
|
2653
2656
|
r"""Upsert a link
|
|
2654
2657
|
|
|
2655
2658
|
Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
|
|
@@ -2692,6 +2695,7 @@ class Links(BaseSDK):
|
|
|
2692
2695
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
2693
2696
|
request, False, True, "json", Optional[operations.UpsertLinkRequestBody]
|
|
2694
2697
|
),
|
|
2698
|
+
allow_empty_value=None,
|
|
2695
2699
|
timeout_ms=timeout_ms,
|
|
2696
2700
|
)
|
|
2697
2701
|
|
|
@@ -2730,7 +2734,7 @@ class Links(BaseSDK):
|
|
|
2730
2734
|
|
|
2731
2735
|
response_data: Any = None
|
|
2732
2736
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2733
|
-
return unmarshal_json_response(
|
|
2737
|
+
return unmarshal_json_response(components.LinkSchema, http_res)
|
|
2734
2738
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2735
2739
|
response_data = unmarshal_json_response(errors.BadRequestData, http_res)
|
|
2736
2740
|
raise errors.BadRequest(response_data, http_res)
|