GitHubKit 0.11.13__py3-none-any.whl → 0.11.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.
Potentially problematic release.
This version of GitHubKit might be problematic. Click here for more details.
- githubkit/config.py +3 -0
- githubkit/core.py +5 -0
- githubkit/github.py +3 -0
- githubkit/versions/ghec_v2022_11_28/models/group_0088.py +0 -1
- githubkit/versions/ghec_v2022_11_28/rest/actions.py +652 -472
- githubkit/versions/ghec_v2022_11_28/rest/activity.py +60 -44
- githubkit/versions/ghec_v2022_11_28/rest/apps.py +102 -74
- githubkit/versions/ghec_v2022_11_28/rest/billing.py +40 -32
- githubkit/versions/ghec_v2022_11_28/rest/checks.py +84 -64
- githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +74 -58
- githubkit/versions/ghec_v2022_11_28/rest/code_security.py +86 -66
- githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +218 -154
- githubkit/versions/ghec_v2022_11_28/rest/copilot.py +72 -40
- githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +68 -52
- githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py +14 -10
- githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +278 -208
- githubkit/versions/ghec_v2022_11_28/rest/gists.py +56 -40
- githubkit/versions/ghec_v2022_11_28/rest/git.py +84 -60
- githubkit/versions/ghec_v2022_11_28/rest/interactions.py +42 -30
- githubkit/versions/ghec_v2022_11_28/rest/issues.py +250 -198
- githubkit/versions/ghec_v2022_11_28/rest/markdown.py +34 -26
- githubkit/versions/ghec_v2022_11_28/rest/migrations.py +92 -60
- githubkit/versions/ghec_v2022_11_28/rest/oidc.py +14 -10
- githubkit/versions/ghec_v2022_11_28/rest/orgs.py +362 -246
- githubkit/versions/ghec_v2022_11_28/rest/projects.py +170 -126
- githubkit/versions/ghec_v2022_11_28/rest/pulls.py +234 -170
- githubkit/versions/ghec_v2022_11_28/rest/reactions.py +166 -130
- githubkit/versions/ghec_v2022_11_28/rest/repos.py +1020 -766
- githubkit/versions/ghec_v2022_11_28/rest/scim.py +50 -34
- githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +36 -28
- githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +42 -30
- githubkit/versions/ghec_v2022_11_28/rest/teams.py +324 -238
- githubkit/versions/ghec_v2022_11_28/rest/users.py +154 -118
- githubkit/versions/ghec_v2022_11_28/types/group_0088.py +0 -1
- githubkit/versions/v2022_11_28/models/group_0060.py +0 -1
- githubkit/versions/v2022_11_28/rest/actions.py +534 -386
- githubkit/versions/v2022_11_28/rest/activity.py +60 -44
- githubkit/versions/v2022_11_28/rest/apps.py +102 -74
- githubkit/versions/v2022_11_28/rest/checks.py +84 -64
- githubkit/versions/v2022_11_28/rest/code_scanning.py +74 -58
- githubkit/versions/v2022_11_28/rest/code_security.py +86 -66
- githubkit/versions/v2022_11_28/rest/codespaces.py +218 -154
- githubkit/versions/v2022_11_28/rest/copilot.py +72 -40
- githubkit/versions/v2022_11_28/rest/dependabot.py +68 -52
- githubkit/versions/v2022_11_28/rest/dependency_graph.py +14 -10
- githubkit/versions/v2022_11_28/rest/gists.py +56 -40
- githubkit/versions/v2022_11_28/rest/git.py +84 -60
- githubkit/versions/v2022_11_28/rest/interactions.py +42 -30
- githubkit/versions/v2022_11_28/rest/issues.py +250 -198
- githubkit/versions/v2022_11_28/rest/markdown.py +34 -26
- githubkit/versions/v2022_11_28/rest/migrations.py +92 -60
- githubkit/versions/v2022_11_28/rest/oidc.py +14 -10
- githubkit/versions/v2022_11_28/rest/orgs.py +240 -168
- githubkit/versions/v2022_11_28/rest/projects.py +170 -126
- githubkit/versions/v2022_11_28/rest/pulls.py +234 -170
- githubkit/versions/v2022_11_28/rest/reactions.py +166 -130
- githubkit/versions/v2022_11_28/rest/repos.py +1020 -766
- githubkit/versions/v2022_11_28/rest/secret_scanning.py +36 -28
- githubkit/versions/v2022_11_28/rest/security_advisories.py +42 -30
- githubkit/versions/v2022_11_28/rest/teams.py +274 -204
- githubkit/versions/v2022_11_28/rest/users.py +154 -118
- githubkit/versions/v2022_11_28/types/group_0060.py +0 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/METADATA +2 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/RECORD +66 -66
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/LICENSE +0 -0
|
@@ -376,13 +376,15 @@ class TeamsClient:
|
|
|
376
376
|
|
|
377
377
|
url = f"/orgs/{org}/teams"
|
|
378
378
|
|
|
379
|
-
headers = {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
379
|
+
headers = {
|
|
380
|
+
"Content-Type": "application/json",
|
|
381
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
382
|
+
**(headers or {}),
|
|
383
|
+
}
|
|
383
384
|
|
|
384
385
|
json = kwargs if data is UNSET else data
|
|
385
|
-
|
|
386
|
+
if self._github.config.rest_api_validate_body:
|
|
387
|
+
json = type_validate_python(OrgsOrgTeamsPostBody, json)
|
|
386
388
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
387
389
|
|
|
388
390
|
return self._github.request(
|
|
@@ -439,13 +441,15 @@ class TeamsClient:
|
|
|
439
441
|
|
|
440
442
|
url = f"/orgs/{org}/teams"
|
|
441
443
|
|
|
442
|
-
headers = {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
444
|
+
headers = {
|
|
445
|
+
"Content-Type": "application/json",
|
|
446
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
447
|
+
**(headers or {}),
|
|
448
|
+
}
|
|
446
449
|
|
|
447
450
|
json = kwargs if data is UNSET else data
|
|
448
|
-
|
|
451
|
+
if self._github.config.rest_api_validate_body:
|
|
452
|
+
json = type_validate_python(OrgsOrgTeamsPostBody, json)
|
|
449
453
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
450
454
|
|
|
451
455
|
return await self._github.arequest(
|
|
@@ -596,13 +600,15 @@ class TeamsClient:
|
|
|
596
600
|
|
|
597
601
|
url = f"/orgs/{org}/teams/{team_slug}"
|
|
598
602
|
|
|
599
|
-
headers = {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
+
headers = {
|
|
604
|
+
"Content-Type": "application/json",
|
|
605
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
606
|
+
**(headers or {}),
|
|
607
|
+
}
|
|
603
608
|
|
|
604
609
|
json = kwargs if data is UNSET else data
|
|
605
|
-
|
|
610
|
+
if self._github.config.rest_api_validate_body:
|
|
611
|
+
json = type_validate_python(OrgsOrgTeamsTeamSlugPatchBody, json)
|
|
606
612
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
607
613
|
|
|
608
614
|
return self._github.request(
|
|
@@ -666,13 +672,15 @@ class TeamsClient:
|
|
|
666
672
|
|
|
667
673
|
url = f"/orgs/{org}/teams/{team_slug}"
|
|
668
674
|
|
|
669
|
-
headers = {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
675
|
+
headers = {
|
|
676
|
+
"Content-Type": "application/json",
|
|
677
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
678
|
+
**(headers or {}),
|
|
679
|
+
}
|
|
673
680
|
|
|
674
681
|
json = kwargs if data is UNSET else data
|
|
675
|
-
|
|
682
|
+
if self._github.config.rest_api_validate_body:
|
|
683
|
+
json = type_validate_python(OrgsOrgTeamsTeamSlugPatchBody, json)
|
|
676
684
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
677
685
|
|
|
678
686
|
return await self._github.arequest(
|
|
@@ -798,13 +806,15 @@ class TeamsClient:
|
|
|
798
806
|
|
|
799
807
|
url = f"/orgs/{org}/teams/{team_slug}/discussions"
|
|
800
808
|
|
|
801
|
-
headers = {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
809
|
+
headers = {
|
|
810
|
+
"Content-Type": "application/json",
|
|
811
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
812
|
+
**(headers or {}),
|
|
813
|
+
}
|
|
805
814
|
|
|
806
815
|
json = kwargs if data is UNSET else data
|
|
807
|
-
|
|
816
|
+
if self._github.config.rest_api_validate_body:
|
|
817
|
+
json = type_validate_python(OrgsOrgTeamsTeamSlugDiscussionsPostBody, json)
|
|
808
818
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
809
819
|
|
|
810
820
|
return self._github.request(
|
|
@@ -853,13 +863,15 @@ class TeamsClient:
|
|
|
853
863
|
|
|
854
864
|
url = f"/orgs/{org}/teams/{team_slug}/discussions"
|
|
855
865
|
|
|
856
|
-
headers = {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
866
|
+
headers = {
|
|
867
|
+
"Content-Type": "application/json",
|
|
868
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
869
|
+
**(headers or {}),
|
|
870
|
+
}
|
|
860
871
|
|
|
861
872
|
json = kwargs if data is UNSET else data
|
|
862
|
-
|
|
873
|
+
if self._github.config.rest_api_validate_body:
|
|
874
|
+
json = type_validate_python(OrgsOrgTeamsTeamSlugDiscussionsPostBody, json)
|
|
863
875
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
864
876
|
|
|
865
877
|
return await self._github.arequest(
|
|
@@ -1003,15 +1015,17 @@ class TeamsClient:
|
|
|
1003
1015
|
|
|
1004
1016
|
url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
1005
1017
|
|
|
1006
|
-
headers = {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1018
|
+
headers = {
|
|
1019
|
+
"Content-Type": "application/json",
|
|
1020
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1021
|
+
**(headers or {}),
|
|
1022
|
+
}
|
|
1010
1023
|
|
|
1011
1024
|
json = kwargs if data is UNSET else data
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1025
|
+
if self._github.config.rest_api_validate_body:
|
|
1026
|
+
json = type_validate_python(
|
|
1027
|
+
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, json
|
|
1028
|
+
)
|
|
1015
1029
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1016
1030
|
|
|
1017
1031
|
return self._github.request(
|
|
@@ -1069,15 +1083,17 @@ class TeamsClient:
|
|
|
1069
1083
|
|
|
1070
1084
|
url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
1071
1085
|
|
|
1072
|
-
headers = {
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1086
|
+
headers = {
|
|
1087
|
+
"Content-Type": "application/json",
|
|
1088
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1089
|
+
**(headers or {}),
|
|
1090
|
+
}
|
|
1076
1091
|
|
|
1077
1092
|
json = kwargs if data is UNSET else data
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1093
|
+
if self._github.config.rest_api_validate_body:
|
|
1094
|
+
json = type_validate_python(
|
|
1095
|
+
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, json
|
|
1096
|
+
)
|
|
1081
1097
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1082
1098
|
|
|
1083
1099
|
return await self._github.arequest(
|
|
@@ -1202,15 +1218,17 @@ class TeamsClient:
|
|
|
1202
1218
|
|
|
1203
1219
|
url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
1204
1220
|
|
|
1205
|
-
headers = {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1221
|
+
headers = {
|
|
1222
|
+
"Content-Type": "application/json",
|
|
1223
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1224
|
+
**(headers or {}),
|
|
1225
|
+
}
|
|
1209
1226
|
|
|
1210
1227
|
json = kwargs if data is UNSET else data
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1228
|
+
if self._github.config.rest_api_validate_body:
|
|
1229
|
+
json = type_validate_python(
|
|
1230
|
+
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, json
|
|
1231
|
+
)
|
|
1214
1232
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1215
1233
|
|
|
1216
1234
|
return self._github.request(
|
|
@@ -1265,15 +1283,17 @@ class TeamsClient:
|
|
|
1265
1283
|
|
|
1266
1284
|
url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
1267
1285
|
|
|
1268
|
-
headers = {
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1286
|
+
headers = {
|
|
1287
|
+
"Content-Type": "application/json",
|
|
1288
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1289
|
+
**(headers or {}),
|
|
1290
|
+
}
|
|
1272
1291
|
|
|
1273
1292
|
json = kwargs if data is UNSET else data
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1293
|
+
if self._github.config.rest_api_validate_body:
|
|
1294
|
+
json = type_validate_python(
|
|
1295
|
+
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, json
|
|
1296
|
+
)
|
|
1277
1297
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1278
1298
|
|
|
1279
1299
|
return await self._github.arequest(
|
|
@@ -1421,16 +1441,18 @@ class TeamsClient:
|
|
|
1421
1441
|
|
|
1422
1442
|
url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
1423
1443
|
|
|
1424
|
-
headers = {
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1444
|
+
headers = {
|
|
1445
|
+
"Content-Type": "application/json",
|
|
1446
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1447
|
+
**(headers or {}),
|
|
1448
|
+
}
|
|
1428
1449
|
|
|
1429
1450
|
json = kwargs if data is UNSET else data
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1451
|
+
if self._github.config.rest_api_validate_body:
|
|
1452
|
+
json = type_validate_python(
|
|
1453
|
+
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
|
|
1454
|
+
json,
|
|
1455
|
+
)
|
|
1434
1456
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1435
1457
|
|
|
1436
1458
|
return self._github.request(
|
|
@@ -1488,16 +1510,18 @@ class TeamsClient:
|
|
|
1488
1510
|
|
|
1489
1511
|
url = f"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
1490
1512
|
|
|
1491
|
-
headers = {
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1513
|
+
headers = {
|
|
1514
|
+
"Content-Type": "application/json",
|
|
1515
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1516
|
+
**(headers or {}),
|
|
1517
|
+
}
|
|
1495
1518
|
|
|
1496
1519
|
json = kwargs if data is UNSET else data
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1520
|
+
if self._github.config.rest_api_validate_body:
|
|
1521
|
+
json = type_validate_python(
|
|
1522
|
+
OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
|
|
1523
|
+
json,
|
|
1524
|
+
)
|
|
1501
1525
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1502
1526
|
|
|
1503
1527
|
return await self._github.arequest(
|
|
@@ -1626,13 +1650,17 @@ class TeamsClient:
|
|
|
1626
1650
|
|
|
1627
1651
|
url = f"/orgs/{org}/teams/{team_slug}/external-groups"
|
|
1628
1652
|
|
|
1629
|
-
headers = {
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1653
|
+
headers = {
|
|
1654
|
+
"Content-Type": "application/json",
|
|
1655
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1656
|
+
**(headers or {}),
|
|
1657
|
+
}
|
|
1633
1658
|
|
|
1634
1659
|
json = kwargs if data is UNSET else data
|
|
1635
|
-
|
|
1660
|
+
if self._github.config.rest_api_validate_body:
|
|
1661
|
+
json = type_validate_python(
|
|
1662
|
+
OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, json
|
|
1663
|
+
)
|
|
1636
1664
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1637
1665
|
|
|
1638
1666
|
return self._github.request(
|
|
@@ -1679,13 +1707,17 @@ class TeamsClient:
|
|
|
1679
1707
|
|
|
1680
1708
|
url = f"/orgs/{org}/teams/{team_slug}/external-groups"
|
|
1681
1709
|
|
|
1682
|
-
headers = {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1710
|
+
headers = {
|
|
1711
|
+
"Content-Type": "application/json",
|
|
1712
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1713
|
+
**(headers or {}),
|
|
1714
|
+
}
|
|
1686
1715
|
|
|
1687
1716
|
json = kwargs if data is UNSET else data
|
|
1688
|
-
|
|
1717
|
+
if self._github.config.rest_api_validate_body:
|
|
1718
|
+
json = type_validate_python(
|
|
1719
|
+
OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, json
|
|
1720
|
+
)
|
|
1689
1721
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1690
1722
|
|
|
1691
1723
|
return await self._github.arequest(
|
|
@@ -1918,15 +1950,17 @@ class TeamsClient:
|
|
|
1918
1950
|
|
|
1919
1951
|
url = f"/orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
1920
1952
|
|
|
1921
|
-
headers = {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1953
|
+
headers = {
|
|
1954
|
+
"Content-Type": "application/json",
|
|
1955
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1956
|
+
**(headers or {}),
|
|
1957
|
+
}
|
|
1925
1958
|
|
|
1926
1959
|
json = kwargs if data is UNSET else data
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1960
|
+
if self._github.config.rest_api_validate_body:
|
|
1961
|
+
json = type_validate_python(
|
|
1962
|
+
OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, json
|
|
1963
|
+
)
|
|
1930
1964
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1931
1965
|
|
|
1932
1966
|
return self._github.request(
|
|
@@ -1980,15 +2014,17 @@ class TeamsClient:
|
|
|
1980
2014
|
|
|
1981
2015
|
url = f"/orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
1982
2016
|
|
|
1983
|
-
headers = {
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
2017
|
+
headers = {
|
|
2018
|
+
"Content-Type": "application/json",
|
|
2019
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2020
|
+
**(headers or {}),
|
|
2021
|
+
}
|
|
1987
2022
|
|
|
1988
2023
|
json = kwargs if data is UNSET else data
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
2024
|
+
if self._github.config.rest_api_validate_body:
|
|
2025
|
+
json = type_validate_python(
|
|
2026
|
+
OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, json
|
|
2027
|
+
)
|
|
1992
2028
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1993
2029
|
|
|
1994
2030
|
return await self._github.arequest(
|
|
@@ -2202,15 +2238,17 @@ class TeamsClient:
|
|
|
2202
2238
|
|
|
2203
2239
|
url = f"/orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
2204
2240
|
|
|
2205
|
-
headers = {
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2241
|
+
headers = {
|
|
2242
|
+
"Content-Type": "application/json",
|
|
2243
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2244
|
+
**(headers or {}),
|
|
2245
|
+
}
|
|
2209
2246
|
|
|
2210
2247
|
json = kwargs if data is UNSET else data
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2248
|
+
if self._github.config.rest_api_validate_body:
|
|
2249
|
+
json = type_validate_python(
|
|
2250
|
+
Union[OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, None], json
|
|
2251
|
+
)
|
|
2214
2252
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2215
2253
|
|
|
2216
2254
|
return self._github.request(
|
|
@@ -2271,15 +2309,17 @@ class TeamsClient:
|
|
|
2271
2309
|
|
|
2272
2310
|
url = f"/orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
2273
2311
|
|
|
2274
|
-
headers = {
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2312
|
+
headers = {
|
|
2313
|
+
"Content-Type": "application/json",
|
|
2314
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2315
|
+
**(headers or {}),
|
|
2316
|
+
}
|
|
2278
2317
|
|
|
2279
2318
|
json = kwargs if data is UNSET else data
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2319
|
+
if self._github.config.rest_api_validate_body:
|
|
2320
|
+
json = type_validate_python(
|
|
2321
|
+
Union[OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, None], json
|
|
2322
|
+
)
|
|
2283
2323
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2284
2324
|
|
|
2285
2325
|
return await self._github.arequest(
|
|
@@ -2488,13 +2528,15 @@ class TeamsClient:
|
|
|
2488
2528
|
|
|
2489
2529
|
url = f"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
2490
2530
|
|
|
2491
|
-
headers = {
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2531
|
+
headers = {
|
|
2532
|
+
"Content-Type": "application/json",
|
|
2533
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2534
|
+
**(headers or {}),
|
|
2535
|
+
}
|
|
2495
2536
|
|
|
2496
2537
|
json = kwargs if data is UNSET else data
|
|
2497
|
-
|
|
2538
|
+
if self._github.config.rest_api_validate_body:
|
|
2539
|
+
json = type_validate_python(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, json)
|
|
2498
2540
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2499
2541
|
|
|
2500
2542
|
return self._github.request(
|
|
@@ -2546,13 +2588,15 @@ class TeamsClient:
|
|
|
2546
2588
|
|
|
2547
2589
|
url = f"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
2548
2590
|
|
|
2549
|
-
headers = {
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2591
|
+
headers = {
|
|
2592
|
+
"Content-Type": "application/json",
|
|
2593
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2594
|
+
**(headers or {}),
|
|
2595
|
+
}
|
|
2553
2596
|
|
|
2554
2597
|
json = kwargs if data is UNSET else data
|
|
2555
|
-
|
|
2598
|
+
if self._github.config.rest_api_validate_body:
|
|
2599
|
+
json = type_validate_python(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, json)
|
|
2556
2600
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2557
2601
|
|
|
2558
2602
|
return await self._github.arequest(
|
|
@@ -2689,15 +2733,17 @@ class TeamsClient:
|
|
|
2689
2733
|
|
|
2690
2734
|
url = f"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings"
|
|
2691
2735
|
|
|
2692
|
-
headers = {
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2736
|
+
headers = {
|
|
2737
|
+
"Content-Type": "application/json",
|
|
2738
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2739
|
+
**(headers or {}),
|
|
2740
|
+
}
|
|
2696
2741
|
|
|
2697
2742
|
json = kwargs if data is UNSET else data
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2743
|
+
if self._github.config.rest_api_validate_body:
|
|
2744
|
+
json = type_validate_python(
|
|
2745
|
+
OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, json
|
|
2746
|
+
)
|
|
2701
2747
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2702
2748
|
|
|
2703
2749
|
return self._github.request(
|
|
@@ -2749,15 +2795,17 @@ class TeamsClient:
|
|
|
2749
2795
|
|
|
2750
2796
|
url = f"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings"
|
|
2751
2797
|
|
|
2752
|
-
headers = {
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2798
|
+
headers = {
|
|
2799
|
+
"Content-Type": "application/json",
|
|
2800
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2801
|
+
**(headers or {}),
|
|
2802
|
+
}
|
|
2756
2803
|
|
|
2757
2804
|
json = kwargs if data is UNSET else data
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2805
|
+
if self._github.config.rest_api_validate_body:
|
|
2806
|
+
json = type_validate_python(
|
|
2807
|
+
OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, json
|
|
2808
|
+
)
|
|
2761
2809
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2762
2810
|
|
|
2763
2811
|
return await self._github.arequest(
|
|
@@ -2968,13 +3016,15 @@ class TeamsClient:
|
|
|
2968
3016
|
|
|
2969
3017
|
url = f"/teams/{team_id}"
|
|
2970
3018
|
|
|
2971
|
-
headers = {
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
3019
|
+
headers = {
|
|
3020
|
+
"Content-Type": "application/json",
|
|
3021
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3022
|
+
**(headers or {}),
|
|
3023
|
+
}
|
|
2975
3024
|
|
|
2976
3025
|
json = kwargs if data is UNSET else data
|
|
2977
|
-
|
|
3026
|
+
if self._github.config.rest_api_validate_body:
|
|
3027
|
+
json = type_validate_python(TeamsTeamIdPatchBody, json)
|
|
2978
3028
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2979
3029
|
|
|
2980
3030
|
return self._github.request(
|
|
@@ -3030,13 +3080,15 @@ class TeamsClient:
|
|
|
3030
3080
|
|
|
3031
3081
|
url = f"/teams/{team_id}"
|
|
3032
3082
|
|
|
3033
|
-
headers = {
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3083
|
+
headers = {
|
|
3084
|
+
"Content-Type": "application/json",
|
|
3085
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3086
|
+
**(headers or {}),
|
|
3087
|
+
}
|
|
3037
3088
|
|
|
3038
3089
|
json = kwargs if data is UNSET else data
|
|
3039
|
-
|
|
3090
|
+
if self._github.config.rest_api_validate_body:
|
|
3091
|
+
json = type_validate_python(TeamsTeamIdPatchBody, json)
|
|
3040
3092
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3041
3093
|
|
|
3042
3094
|
return await self._github.arequest(
|
|
@@ -3153,13 +3205,15 @@ class TeamsClient:
|
|
|
3153
3205
|
|
|
3154
3206
|
url = f"/teams/{team_id}/discussions"
|
|
3155
3207
|
|
|
3156
|
-
headers = {
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3208
|
+
headers = {
|
|
3209
|
+
"Content-Type": "application/json",
|
|
3210
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3211
|
+
**(headers or {}),
|
|
3212
|
+
}
|
|
3160
3213
|
|
|
3161
3214
|
json = kwargs if data is UNSET else data
|
|
3162
|
-
|
|
3215
|
+
if self._github.config.rest_api_validate_body:
|
|
3216
|
+
json = type_validate_python(TeamsTeamIdDiscussionsPostBody, json)
|
|
3163
3217
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3164
3218
|
|
|
3165
3219
|
return self._github.request(
|
|
@@ -3205,13 +3259,15 @@ class TeamsClient:
|
|
|
3205
3259
|
|
|
3206
3260
|
url = f"/teams/{team_id}/discussions"
|
|
3207
3261
|
|
|
3208
|
-
headers = {
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3262
|
+
headers = {
|
|
3263
|
+
"Content-Type": "application/json",
|
|
3264
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3265
|
+
**(headers or {}),
|
|
3266
|
+
}
|
|
3212
3267
|
|
|
3213
3268
|
json = kwargs if data is UNSET else data
|
|
3214
|
-
|
|
3269
|
+
if self._github.config.rest_api_validate_body:
|
|
3270
|
+
json = type_validate_python(TeamsTeamIdDiscussionsPostBody, json)
|
|
3215
3271
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3216
3272
|
|
|
3217
3273
|
return await self._github.arequest(
|
|
@@ -3344,15 +3400,17 @@ class TeamsClient:
|
|
|
3344
3400
|
|
|
3345
3401
|
url = f"/teams/{team_id}/discussions/{discussion_number}"
|
|
3346
3402
|
|
|
3347
|
-
headers = {
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3403
|
+
headers = {
|
|
3404
|
+
"Content-Type": "application/json",
|
|
3405
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3406
|
+
**(headers or {}),
|
|
3407
|
+
}
|
|
3351
3408
|
|
|
3352
3409
|
json = kwargs if data is UNSET else data
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3410
|
+
if self._github.config.rest_api_validate_body:
|
|
3411
|
+
json = type_validate_python(
|
|
3412
|
+
TeamsTeamIdDiscussionsDiscussionNumberPatchBody, json
|
|
3413
|
+
)
|
|
3356
3414
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3357
3415
|
|
|
3358
3416
|
return self._github.request(
|
|
@@ -3403,15 +3461,17 @@ class TeamsClient:
|
|
|
3403
3461
|
|
|
3404
3462
|
url = f"/teams/{team_id}/discussions/{discussion_number}"
|
|
3405
3463
|
|
|
3406
|
-
headers = {
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3464
|
+
headers = {
|
|
3465
|
+
"Content-Type": "application/json",
|
|
3466
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3467
|
+
**(headers or {}),
|
|
3468
|
+
}
|
|
3410
3469
|
|
|
3411
3470
|
json = kwargs if data is UNSET else data
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3471
|
+
if self._github.config.rest_api_validate_body:
|
|
3472
|
+
json = type_validate_python(
|
|
3473
|
+
TeamsTeamIdDiscussionsDiscussionNumberPatchBody, json
|
|
3474
|
+
)
|
|
3415
3475
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3416
3476
|
|
|
3417
3477
|
return await self._github.arequest(
|
|
@@ -3531,15 +3591,17 @@ class TeamsClient:
|
|
|
3531
3591
|
|
|
3532
3592
|
url = f"/teams/{team_id}/discussions/{discussion_number}/comments"
|
|
3533
3593
|
|
|
3534
|
-
headers = {
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3594
|
+
headers = {
|
|
3595
|
+
"Content-Type": "application/json",
|
|
3596
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3597
|
+
**(headers or {}),
|
|
3598
|
+
}
|
|
3538
3599
|
|
|
3539
3600
|
json = kwargs if data is UNSET else data
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3601
|
+
if self._github.config.rest_api_validate_body:
|
|
3602
|
+
json = type_validate_python(
|
|
3603
|
+
TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, json
|
|
3604
|
+
)
|
|
3543
3605
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3544
3606
|
|
|
3545
3607
|
return self._github.request(
|
|
@@ -3591,15 +3653,17 @@ class TeamsClient:
|
|
|
3591
3653
|
|
|
3592
3654
|
url = f"/teams/{team_id}/discussions/{discussion_number}/comments"
|
|
3593
3655
|
|
|
3594
|
-
headers = {
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3656
|
+
headers = {
|
|
3657
|
+
"Content-Type": "application/json",
|
|
3658
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3659
|
+
**(headers or {}),
|
|
3660
|
+
}
|
|
3598
3661
|
|
|
3599
3662
|
json = kwargs if data is UNSET else data
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3663
|
+
if self._github.config.rest_api_validate_body:
|
|
3664
|
+
json = type_validate_python(
|
|
3665
|
+
TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, json
|
|
3666
|
+
)
|
|
3603
3667
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3604
3668
|
|
|
3605
3669
|
return await self._github.arequest(
|
|
@@ -3740,15 +3804,18 @@ class TeamsClient:
|
|
|
3740
3804
|
|
|
3741
3805
|
url = f"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"
|
|
3742
3806
|
|
|
3743
|
-
headers = {
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3807
|
+
headers = {
|
|
3808
|
+
"Content-Type": "application/json",
|
|
3809
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3810
|
+
**(headers or {}),
|
|
3811
|
+
}
|
|
3747
3812
|
|
|
3748
3813
|
json = kwargs if data is UNSET else data
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3814
|
+
if self._github.config.rest_api_validate_body:
|
|
3815
|
+
json = type_validate_python(
|
|
3816
|
+
TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
|
|
3817
|
+
json,
|
|
3818
|
+
)
|
|
3752
3819
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3753
3820
|
|
|
3754
3821
|
return self._github.request(
|
|
@@ -3803,15 +3870,18 @@ class TeamsClient:
|
|
|
3803
3870
|
|
|
3804
3871
|
url = f"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"
|
|
3805
3872
|
|
|
3806
|
-
headers = {
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3873
|
+
headers = {
|
|
3874
|
+
"Content-Type": "application/json",
|
|
3875
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3876
|
+
**(headers or {}),
|
|
3877
|
+
}
|
|
3810
3878
|
|
|
3811
3879
|
json = kwargs if data is UNSET else data
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3880
|
+
if self._github.config.rest_api_validate_body:
|
|
3881
|
+
json = type_validate_python(
|
|
3882
|
+
TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody,
|
|
3883
|
+
json,
|
|
3884
|
+
)
|
|
3815
3885
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3816
3886
|
|
|
3817
3887
|
return await self._github.arequest(
|
|
@@ -4174,13 +4244,15 @@ class TeamsClient:
|
|
|
4174
4244
|
|
|
4175
4245
|
url = f"/teams/{team_id}/memberships/{username}"
|
|
4176
4246
|
|
|
4177
|
-
headers = {
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4247
|
+
headers = {
|
|
4248
|
+
"Content-Type": "application/json",
|
|
4249
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4250
|
+
**(headers or {}),
|
|
4251
|
+
}
|
|
4181
4252
|
|
|
4182
4253
|
json = kwargs if data is UNSET else data
|
|
4183
|
-
|
|
4254
|
+
if self._github.config.rest_api_validate_body:
|
|
4255
|
+
json = type_validate_python(TeamsTeamIdMembershipsUsernamePutBody, json)
|
|
4184
4256
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4185
4257
|
|
|
4186
4258
|
return self._github.request(
|
|
@@ -4234,13 +4306,15 @@ class TeamsClient:
|
|
|
4234
4306
|
|
|
4235
4307
|
url = f"/teams/{team_id}/memberships/{username}"
|
|
4236
4308
|
|
|
4237
|
-
headers = {
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4309
|
+
headers = {
|
|
4310
|
+
"Content-Type": "application/json",
|
|
4311
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4312
|
+
**(headers or {}),
|
|
4313
|
+
}
|
|
4241
4314
|
|
|
4242
4315
|
json = kwargs if data is UNSET else data
|
|
4243
|
-
|
|
4316
|
+
if self._github.config.rest_api_validate_body:
|
|
4317
|
+
json = type_validate_python(TeamsTeamIdMembershipsUsernamePutBody, json)
|
|
4244
4318
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4245
4319
|
|
|
4246
4320
|
return await self._github.arequest(
|
|
@@ -4449,13 +4523,15 @@ class TeamsClient:
|
|
|
4449
4523
|
|
|
4450
4524
|
url = f"/teams/{team_id}/projects/{project_id}"
|
|
4451
4525
|
|
|
4452
|
-
headers = {
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4526
|
+
headers = {
|
|
4527
|
+
"Content-Type": "application/json",
|
|
4528
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4529
|
+
**(headers or {}),
|
|
4530
|
+
}
|
|
4456
4531
|
|
|
4457
4532
|
json = kwargs if data is UNSET else data
|
|
4458
|
-
|
|
4533
|
+
if self._github.config.rest_api_validate_body:
|
|
4534
|
+
json = type_validate_python(TeamsTeamIdProjectsProjectIdPutBody, json)
|
|
4459
4535
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4460
4536
|
|
|
4461
4537
|
return self._github.request(
|
|
@@ -4511,13 +4587,15 @@ class TeamsClient:
|
|
|
4511
4587
|
|
|
4512
4588
|
url = f"/teams/{team_id}/projects/{project_id}"
|
|
4513
4589
|
|
|
4514
|
-
headers = {
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4590
|
+
headers = {
|
|
4591
|
+
"Content-Type": "application/json",
|
|
4592
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4593
|
+
**(headers or {}),
|
|
4594
|
+
}
|
|
4518
4595
|
|
|
4519
4596
|
json = kwargs if data is UNSET else data
|
|
4520
|
-
|
|
4597
|
+
if self._github.config.rest_api_validate_body:
|
|
4598
|
+
json = type_validate_python(TeamsTeamIdProjectsProjectIdPutBody, json)
|
|
4521
4599
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4522
4600
|
|
|
4523
4601
|
return await self._github.arequest(
|
|
@@ -4741,13 +4819,15 @@ class TeamsClient:
|
|
|
4741
4819
|
|
|
4742
4820
|
url = f"/teams/{team_id}/repos/{owner}/{repo}"
|
|
4743
4821
|
|
|
4744
|
-
headers = {
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4822
|
+
headers = {
|
|
4823
|
+
"Content-Type": "application/json",
|
|
4824
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4825
|
+
**(headers or {}),
|
|
4826
|
+
}
|
|
4748
4827
|
|
|
4749
4828
|
json = kwargs if data is UNSET else data
|
|
4750
|
-
|
|
4829
|
+
if self._github.config.rest_api_validate_body:
|
|
4830
|
+
json = type_validate_python(TeamsTeamIdReposOwnerRepoPutBody, json)
|
|
4751
4831
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4752
4832
|
|
|
4753
4833
|
return self._github.request(
|
|
@@ -4804,13 +4884,15 @@ class TeamsClient:
|
|
|
4804
4884
|
|
|
4805
4885
|
url = f"/teams/{team_id}/repos/{owner}/{repo}"
|
|
4806
4886
|
|
|
4807
|
-
headers = {
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4887
|
+
headers = {
|
|
4888
|
+
"Content-Type": "application/json",
|
|
4889
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4890
|
+
**(headers or {}),
|
|
4891
|
+
}
|
|
4811
4892
|
|
|
4812
4893
|
json = kwargs if data is UNSET else data
|
|
4813
|
-
|
|
4894
|
+
if self._github.config.rest_api_validate_body:
|
|
4895
|
+
json = type_validate_python(TeamsTeamIdReposOwnerRepoPutBody, json)
|
|
4814
4896
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4815
4897
|
|
|
4816
4898
|
return await self._github.arequest(
|
|
@@ -4953,13 +5035,15 @@ class TeamsClient:
|
|
|
4953
5035
|
|
|
4954
5036
|
url = f"/teams/{team_id}/team-sync/group-mappings"
|
|
4955
5037
|
|
|
4956
|
-
headers = {
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
5038
|
+
headers = {
|
|
5039
|
+
"Content-Type": "application/json",
|
|
5040
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5041
|
+
**(headers or {}),
|
|
5042
|
+
}
|
|
4960
5043
|
|
|
4961
5044
|
json = kwargs if data is UNSET else data
|
|
4962
|
-
|
|
5045
|
+
if self._github.config.rest_api_validate_body:
|
|
5046
|
+
json = type_validate_python(TeamsTeamIdTeamSyncGroupMappingsPatchBody, json)
|
|
4963
5047
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4964
5048
|
|
|
4965
5049
|
return self._github.request(
|
|
@@ -5013,13 +5097,15 @@ class TeamsClient:
|
|
|
5013
5097
|
|
|
5014
5098
|
url = f"/teams/{team_id}/team-sync/group-mappings"
|
|
5015
5099
|
|
|
5016
|
-
headers = {
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5100
|
+
headers = {
|
|
5101
|
+
"Content-Type": "application/json",
|
|
5102
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5103
|
+
**(headers or {}),
|
|
5104
|
+
}
|
|
5020
5105
|
|
|
5021
5106
|
json = kwargs if data is UNSET else data
|
|
5022
|
-
|
|
5107
|
+
if self._github.config.rest_api_validate_body:
|
|
5108
|
+
json = type_validate_python(TeamsTeamIdTeamSyncGroupMappingsPatchBody, json)
|
|
5023
5109
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5024
5110
|
|
|
5025
5111
|
return await self._github.arequest(
|