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
|
@@ -400,13 +400,15 @@ class ReposClient:
|
|
|
400
400
|
|
|
401
401
|
url = f"/orgs/{org}/repos"
|
|
402
402
|
|
|
403
|
-
headers = {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
403
|
+
headers = {
|
|
404
|
+
"Content-Type": "application/json",
|
|
405
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
406
|
+
**(headers or {}),
|
|
407
|
+
}
|
|
407
408
|
|
|
408
409
|
json = kwargs if data is UNSET else data
|
|
409
|
-
|
|
410
|
+
if self._github.config.rest_api_validate_body:
|
|
411
|
+
json = type_validate_python(OrgsOrgReposPostBody, json)
|
|
410
412
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
411
413
|
|
|
412
414
|
return self._github.request(
|
|
@@ -489,13 +491,15 @@ class ReposClient:
|
|
|
489
491
|
|
|
490
492
|
url = f"/orgs/{org}/repos"
|
|
491
493
|
|
|
492
|
-
headers = {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
494
|
+
headers = {
|
|
495
|
+
"Content-Type": "application/json",
|
|
496
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
497
|
+
**(headers or {}),
|
|
498
|
+
}
|
|
496
499
|
|
|
497
500
|
json = kwargs if data is UNSET else data
|
|
498
|
-
|
|
501
|
+
if self._github.config.rest_api_validate_body:
|
|
502
|
+
json = type_validate_python(OrgsOrgReposPostBody, json)
|
|
499
503
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
500
504
|
|
|
501
505
|
return await self._github.arequest(
|
|
@@ -515,6 +519,7 @@ class ReposClient:
|
|
|
515
519
|
org: str,
|
|
516
520
|
per_page: Missing[int] = UNSET,
|
|
517
521
|
page: Missing[int] = UNSET,
|
|
522
|
+
targets: Missing[str] = UNSET,
|
|
518
523
|
*,
|
|
519
524
|
headers: Optional[Dict[str, str]] = None,
|
|
520
525
|
) -> Response[List[RepositoryRuleset]]:
|
|
@@ -529,6 +534,7 @@ class ReposClient:
|
|
|
529
534
|
params = {
|
|
530
535
|
"per_page": per_page,
|
|
531
536
|
"page": page,
|
|
537
|
+
"targets": targets,
|
|
532
538
|
}
|
|
533
539
|
|
|
534
540
|
headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
|
|
@@ -550,6 +556,7 @@ class ReposClient:
|
|
|
550
556
|
org: str,
|
|
551
557
|
per_page: Missing[int] = UNSET,
|
|
552
558
|
page: Missing[int] = UNSET,
|
|
559
|
+
targets: Missing[str] = UNSET,
|
|
553
560
|
*,
|
|
554
561
|
headers: Optional[Dict[str, str]] = None,
|
|
555
562
|
) -> Response[List[RepositoryRuleset]]:
|
|
@@ -564,6 +571,7 @@ class ReposClient:
|
|
|
564
571
|
params = {
|
|
565
572
|
"per_page": per_page,
|
|
566
573
|
"page": page,
|
|
574
|
+
"targets": targets,
|
|
567
575
|
}
|
|
568
576
|
|
|
569
577
|
headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
|
|
@@ -650,13 +658,15 @@ class ReposClient:
|
|
|
650
658
|
|
|
651
659
|
url = f"/orgs/{org}/rulesets"
|
|
652
660
|
|
|
653
|
-
headers = {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
661
|
+
headers = {
|
|
662
|
+
"Content-Type": "application/json",
|
|
663
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
664
|
+
**(headers or {}),
|
|
665
|
+
}
|
|
657
666
|
|
|
658
667
|
json = kwargs if data is UNSET else data
|
|
659
|
-
|
|
668
|
+
if self._github.config.rest_api_validate_body:
|
|
669
|
+
json = type_validate_python(OrgsOrgRulesetsPostBody, json)
|
|
660
670
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
661
671
|
|
|
662
672
|
return self._github.request(
|
|
@@ -741,13 +751,15 @@ class ReposClient:
|
|
|
741
751
|
|
|
742
752
|
url = f"/orgs/{org}/rulesets"
|
|
743
753
|
|
|
744
|
-
headers = {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
754
|
+
headers = {
|
|
755
|
+
"Content-Type": "application/json",
|
|
756
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
757
|
+
**(headers or {}),
|
|
758
|
+
}
|
|
748
759
|
|
|
749
760
|
json = kwargs if data is UNSET else data
|
|
750
|
-
|
|
761
|
+
if self._github.config.rest_api_validate_body:
|
|
762
|
+
json = type_validate_python(OrgsOrgRulesetsPostBody, json)
|
|
751
763
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
752
764
|
|
|
753
765
|
return await self._github.arequest(
|
|
@@ -1033,13 +1045,15 @@ class ReposClient:
|
|
|
1033
1045
|
|
|
1034
1046
|
url = f"/orgs/{org}/rulesets/{ruleset_id}"
|
|
1035
1047
|
|
|
1036
|
-
headers = {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1048
|
+
headers = {
|
|
1049
|
+
"Content-Type": "application/json",
|
|
1050
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1051
|
+
**(headers or {}),
|
|
1052
|
+
}
|
|
1040
1053
|
|
|
1041
1054
|
json = kwargs if data is UNSET else data
|
|
1042
|
-
|
|
1055
|
+
if self._github.config.rest_api_validate_body:
|
|
1056
|
+
json = type_validate_python(OrgsOrgRulesetsRulesetIdPutBody, json)
|
|
1043
1057
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1044
1058
|
|
|
1045
1059
|
return self._github.request(
|
|
@@ -1131,13 +1145,15 @@ class ReposClient:
|
|
|
1131
1145
|
|
|
1132
1146
|
url = f"/orgs/{org}/rulesets/{ruleset_id}"
|
|
1133
1147
|
|
|
1134
|
-
headers = {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1148
|
+
headers = {
|
|
1149
|
+
"Content-Type": "application/json",
|
|
1150
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1151
|
+
**(headers or {}),
|
|
1152
|
+
}
|
|
1138
1153
|
|
|
1139
1154
|
json = kwargs if data is UNSET else data
|
|
1140
|
-
|
|
1155
|
+
if self._github.config.rest_api_validate_body:
|
|
1156
|
+
json = type_validate_python(OrgsOrgRulesetsRulesetIdPutBody, json)
|
|
1141
1157
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1142
1158
|
|
|
1143
1159
|
return await self._github.arequest(
|
|
@@ -1375,13 +1391,15 @@ class ReposClient:
|
|
|
1375
1391
|
|
|
1376
1392
|
url = f"/repos/{owner}/{repo}"
|
|
1377
1393
|
|
|
1378
|
-
headers = {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1394
|
+
headers = {
|
|
1395
|
+
"Content-Type": "application/json",
|
|
1396
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1397
|
+
**(headers or {}),
|
|
1398
|
+
}
|
|
1382
1399
|
|
|
1383
1400
|
json = kwargs if data is UNSET else data
|
|
1384
|
-
|
|
1401
|
+
if self._github.config.rest_api_validate_body:
|
|
1402
|
+
json = type_validate_python(ReposOwnerRepoPatchBody, json)
|
|
1385
1403
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1386
1404
|
|
|
1387
1405
|
return self._github.request(
|
|
@@ -1468,13 +1486,15 @@ class ReposClient:
|
|
|
1468
1486
|
|
|
1469
1487
|
url = f"/repos/{owner}/{repo}"
|
|
1470
1488
|
|
|
1471
|
-
headers = {
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1489
|
+
headers = {
|
|
1490
|
+
"Content-Type": "application/json",
|
|
1491
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1492
|
+
**(headers or {}),
|
|
1493
|
+
}
|
|
1475
1494
|
|
|
1476
1495
|
json = kwargs if data is UNSET else data
|
|
1477
|
-
|
|
1496
|
+
if self._github.config.rest_api_validate_body:
|
|
1497
|
+
json = type_validate_python(ReposOwnerRepoPatchBody, json)
|
|
1478
1498
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1479
1499
|
|
|
1480
1500
|
return await self._github.arequest(
|
|
@@ -1647,13 +1667,15 @@ class ReposClient:
|
|
|
1647
1667
|
|
|
1648
1668
|
url = f"/repos/{owner}/{repo}/attestations"
|
|
1649
1669
|
|
|
1650
|
-
headers = {
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1670
|
+
headers = {
|
|
1671
|
+
"Content-Type": "application/json",
|
|
1672
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1673
|
+
**(headers or {}),
|
|
1674
|
+
}
|
|
1654
1675
|
|
|
1655
1676
|
json = kwargs if data is UNSET else data
|
|
1656
|
-
|
|
1677
|
+
if self._github.config.rest_api_validate_body:
|
|
1678
|
+
json = type_validate_python(ReposOwnerRepoAttestationsPostBody, json)
|
|
1657
1679
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1658
1680
|
|
|
1659
1681
|
return self._github.request(
|
|
@@ -1709,13 +1731,15 @@ class ReposClient:
|
|
|
1709
1731
|
|
|
1710
1732
|
url = f"/repos/{owner}/{repo}/attestations"
|
|
1711
1733
|
|
|
1712
|
-
headers = {
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1734
|
+
headers = {
|
|
1735
|
+
"Content-Type": "application/json",
|
|
1736
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1737
|
+
**(headers or {}),
|
|
1738
|
+
}
|
|
1716
1739
|
|
|
1717
1740
|
json = kwargs if data is UNSET else data
|
|
1718
|
-
|
|
1741
|
+
if self._github.config.rest_api_validate_body:
|
|
1742
|
+
json = type_validate_python(ReposOwnerRepoAttestationsPostBody, json)
|
|
1719
1743
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1720
1744
|
|
|
1721
1745
|
return await self._github.arequest(
|
|
@@ -1882,13 +1906,15 @@ class ReposClient:
|
|
|
1882
1906
|
|
|
1883
1907
|
url = f"/repos/{owner}/{repo}/autolinks"
|
|
1884
1908
|
|
|
1885
|
-
headers = {
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1909
|
+
headers = {
|
|
1910
|
+
"Content-Type": "application/json",
|
|
1911
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1912
|
+
**(headers or {}),
|
|
1913
|
+
}
|
|
1889
1914
|
|
|
1890
1915
|
json = kwargs if data is UNSET else data
|
|
1891
|
-
|
|
1916
|
+
if self._github.config.rest_api_validate_body:
|
|
1917
|
+
json = type_validate_python(ReposOwnerRepoAutolinksPostBody, json)
|
|
1892
1918
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1893
1919
|
|
|
1894
1920
|
return self._github.request(
|
|
@@ -1940,13 +1966,15 @@ class ReposClient:
|
|
|
1940
1966
|
|
|
1941
1967
|
url = f"/repos/{owner}/{repo}/autolinks"
|
|
1942
1968
|
|
|
1943
|
-
headers = {
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1969
|
+
headers = {
|
|
1970
|
+
"Content-Type": "application/json",
|
|
1971
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1972
|
+
**(headers or {}),
|
|
1973
|
+
}
|
|
1947
1974
|
|
|
1948
1975
|
json = kwargs if data is UNSET else data
|
|
1949
|
-
|
|
1976
|
+
if self._github.config.rest_api_validate_body:
|
|
1977
|
+
json = type_validate_python(ReposOwnerRepoAutolinksPostBody, json)
|
|
1950
1978
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1951
1979
|
|
|
1952
1980
|
return await self._github.arequest(
|
|
@@ -2424,13 +2452,17 @@ class ReposClient:
|
|
|
2424
2452
|
|
|
2425
2453
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection"
|
|
2426
2454
|
|
|
2427
|
-
headers = {
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2455
|
+
headers = {
|
|
2456
|
+
"Content-Type": "application/json",
|
|
2457
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2458
|
+
**(headers or {}),
|
|
2459
|
+
}
|
|
2431
2460
|
|
|
2432
2461
|
json = kwargs if data is UNSET else data
|
|
2433
|
-
|
|
2462
|
+
if self._github.config.rest_api_validate_body:
|
|
2463
|
+
json = type_validate_python(
|
|
2464
|
+
ReposOwnerRepoBranchesBranchProtectionPutBody, json
|
|
2465
|
+
)
|
|
2434
2466
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2435
2467
|
|
|
2436
2468
|
return self._github.request(
|
|
@@ -2508,13 +2540,17 @@ class ReposClient:
|
|
|
2508
2540
|
|
|
2509
2541
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection"
|
|
2510
2542
|
|
|
2511
|
-
headers = {
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2543
|
+
headers = {
|
|
2544
|
+
"Content-Type": "application/json",
|
|
2545
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2546
|
+
**(headers or {}),
|
|
2547
|
+
}
|
|
2515
2548
|
|
|
2516
2549
|
json = kwargs if data is UNSET else data
|
|
2517
|
-
|
|
2550
|
+
if self._github.config.rest_api_validate_body:
|
|
2551
|
+
json = type_validate_python(
|
|
2552
|
+
ReposOwnerRepoBranchesBranchProtectionPutBody, json
|
|
2553
|
+
)
|
|
2518
2554
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2519
2555
|
|
|
2520
2556
|
return await self._github.arequest(
|
|
@@ -2874,16 +2910,18 @@ class ReposClient:
|
|
|
2874
2910
|
|
|
2875
2911
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
2876
2912
|
|
|
2877
|
-
headers = {
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2913
|
+
headers = {
|
|
2914
|
+
"Content-Type": "application/json",
|
|
2915
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2916
|
+
**(headers or {}),
|
|
2917
|
+
}
|
|
2881
2918
|
|
|
2882
2919
|
json = kwargs if data is UNSET else data
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2920
|
+
if self._github.config.rest_api_validate_body:
|
|
2921
|
+
json = type_validate_python(
|
|
2922
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody,
|
|
2923
|
+
json,
|
|
2924
|
+
)
|
|
2887
2925
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2888
2926
|
|
|
2889
2927
|
return self._github.request(
|
|
@@ -2953,16 +2991,18 @@ class ReposClient:
|
|
|
2953
2991
|
|
|
2954
2992
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
2955
2993
|
|
|
2956
|
-
headers = {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2994
|
+
headers = {
|
|
2995
|
+
"Content-Type": "application/json",
|
|
2996
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2997
|
+
**(headers or {}),
|
|
2998
|
+
}
|
|
2960
2999
|
|
|
2961
3000
|
json = kwargs if data is UNSET else data
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3001
|
+
if self._github.config.rest_api_validate_body:
|
|
3002
|
+
json = type_validate_python(
|
|
3003
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody,
|
|
3004
|
+
json,
|
|
3005
|
+
)
|
|
2966
3006
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2967
3007
|
|
|
2968
3008
|
return await self._github.arequest(
|
|
@@ -3286,15 +3326,18 @@ class ReposClient:
|
|
|
3286
3326
|
f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
3287
3327
|
)
|
|
3288
3328
|
|
|
3289
|
-
headers = {
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3329
|
+
headers = {
|
|
3330
|
+
"Content-Type": "application/json",
|
|
3331
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3332
|
+
**(headers or {}),
|
|
3333
|
+
}
|
|
3293
3334
|
|
|
3294
3335
|
json = kwargs if data is UNSET else data
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3336
|
+
if self._github.config.rest_api_validate_body:
|
|
3337
|
+
json = type_validate_python(
|
|
3338
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody,
|
|
3339
|
+
json,
|
|
3340
|
+
)
|
|
3298
3341
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3299
3342
|
|
|
3300
3343
|
return self._github.request(
|
|
@@ -3365,15 +3408,18 @@ class ReposClient:
|
|
|
3365
3408
|
f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
3366
3409
|
)
|
|
3367
3410
|
|
|
3368
|
-
headers = {
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3411
|
+
headers = {
|
|
3412
|
+
"Content-Type": "application/json",
|
|
3413
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3414
|
+
**(headers or {}),
|
|
3415
|
+
}
|
|
3372
3416
|
|
|
3373
3417
|
json = kwargs if data is UNSET else data
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3418
|
+
if self._github.config.rest_api_validate_body:
|
|
3419
|
+
json = type_validate_python(
|
|
3420
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody,
|
|
3421
|
+
json,
|
|
3422
|
+
)
|
|
3377
3423
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3378
3424
|
|
|
3379
3425
|
return await self._github.arequest(
|
|
@@ -3499,19 +3545,21 @@ class ReposClient:
|
|
|
3499
3545
|
|
|
3500
3546
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
3501
3547
|
|
|
3502
|
-
headers = {
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3548
|
+
headers = {
|
|
3549
|
+
"Content-Type": "application/json",
|
|
3550
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3551
|
+
**(headers or {}),
|
|
3552
|
+
}
|
|
3506
3553
|
|
|
3507
3554
|
json = kwargs if data is UNSET else data
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3555
|
+
if self._github.config.rest_api_validate_body:
|
|
3556
|
+
json = type_validate_python(
|
|
3557
|
+
Union[
|
|
3558
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0,
|
|
3559
|
+
List[str],
|
|
3560
|
+
],
|
|
3561
|
+
json,
|
|
3562
|
+
)
|
|
3515
3563
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3516
3564
|
|
|
3517
3565
|
return self._github.request(
|
|
@@ -3581,19 +3629,21 @@ class ReposClient:
|
|
|
3581
3629
|
|
|
3582
3630
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
3583
3631
|
|
|
3584
|
-
headers = {
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3632
|
+
headers = {
|
|
3633
|
+
"Content-Type": "application/json",
|
|
3634
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3635
|
+
**(headers or {}),
|
|
3636
|
+
}
|
|
3588
3637
|
|
|
3589
3638
|
json = kwargs if data is UNSET else data
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3639
|
+
if self._github.config.rest_api_validate_body:
|
|
3640
|
+
json = type_validate_python(
|
|
3641
|
+
Union[
|
|
3642
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0,
|
|
3643
|
+
List[str],
|
|
3644
|
+
],
|
|
3645
|
+
json,
|
|
3646
|
+
)
|
|
3597
3647
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3598
3648
|
|
|
3599
3649
|
return await self._github.arequest(
|
|
@@ -3663,19 +3713,21 @@ class ReposClient:
|
|
|
3663
3713
|
|
|
3664
3714
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
3665
3715
|
|
|
3666
|
-
headers = {
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3716
|
+
headers = {
|
|
3717
|
+
"Content-Type": "application/json",
|
|
3718
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3719
|
+
**(headers or {}),
|
|
3720
|
+
}
|
|
3670
3721
|
|
|
3671
3722
|
json = kwargs if data is UNSET else data
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3723
|
+
if self._github.config.rest_api_validate_body:
|
|
3724
|
+
json = type_validate_python(
|
|
3725
|
+
Union[
|
|
3726
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0,
|
|
3727
|
+
List[str],
|
|
3728
|
+
],
|
|
3729
|
+
json,
|
|
3730
|
+
)
|
|
3679
3731
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3680
3732
|
|
|
3681
3733
|
return self._github.request(
|
|
@@ -3746,19 +3798,21 @@ class ReposClient:
|
|
|
3746
3798
|
|
|
3747
3799
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
3748
3800
|
|
|
3749
|
-
headers = {
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3801
|
+
headers = {
|
|
3802
|
+
"Content-Type": "application/json",
|
|
3803
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3804
|
+
**(headers or {}),
|
|
3805
|
+
}
|
|
3753
3806
|
|
|
3754
3807
|
json = kwargs if data is UNSET else data
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3808
|
+
if self._github.config.rest_api_validate_body:
|
|
3809
|
+
json = type_validate_python(
|
|
3810
|
+
Union[
|
|
3811
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0,
|
|
3812
|
+
List[str],
|
|
3813
|
+
],
|
|
3814
|
+
json,
|
|
3815
|
+
)
|
|
3762
3816
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3763
3817
|
|
|
3764
3818
|
return await self._github.arequest(
|
|
@@ -3829,19 +3883,21 @@ class ReposClient:
|
|
|
3829
3883
|
|
|
3830
3884
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
3831
3885
|
|
|
3832
|
-
headers = {
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3886
|
+
headers = {
|
|
3887
|
+
"Content-Type": "application/json",
|
|
3888
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3889
|
+
**(headers or {}),
|
|
3890
|
+
}
|
|
3836
3891
|
|
|
3837
3892
|
json = kwargs if data is UNSET else data
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3893
|
+
if self._github.config.rest_api_validate_body:
|
|
3894
|
+
json = type_validate_python(
|
|
3895
|
+
Union[
|
|
3896
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0,
|
|
3897
|
+
List[str],
|
|
3898
|
+
],
|
|
3899
|
+
json,
|
|
3900
|
+
)
|
|
3845
3901
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3846
3902
|
|
|
3847
3903
|
return self._github.request(
|
|
@@ -3911,19 +3967,21 @@ class ReposClient:
|
|
|
3911
3967
|
|
|
3912
3968
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
3913
3969
|
|
|
3914
|
-
headers = {
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3970
|
+
headers = {
|
|
3971
|
+
"Content-Type": "application/json",
|
|
3972
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3973
|
+
**(headers or {}),
|
|
3974
|
+
}
|
|
3918
3975
|
|
|
3919
3976
|
json = kwargs if data is UNSET else data
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3977
|
+
if self._github.config.rest_api_validate_body:
|
|
3978
|
+
json = type_validate_python(
|
|
3979
|
+
Union[
|
|
3980
|
+
ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0,
|
|
3981
|
+
List[str],
|
|
3982
|
+
],
|
|
3983
|
+
json,
|
|
3984
|
+
)
|
|
3927
3985
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3928
3986
|
|
|
3929
3987
|
return await self._github.arequest(
|
|
@@ -4133,15 +4191,17 @@ class ReposClient:
|
|
|
4133
4191
|
|
|
4134
4192
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
4135
4193
|
|
|
4136
|
-
headers = {
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4194
|
+
headers = {
|
|
4195
|
+
"Content-Type": "application/json",
|
|
4196
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4197
|
+
**(headers or {}),
|
|
4198
|
+
}
|
|
4140
4199
|
|
|
4141
4200
|
json = kwargs if data is UNSET else data
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4201
|
+
if self._github.config.rest_api_validate_body:
|
|
4202
|
+
json = type_validate_python(
|
|
4203
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, json
|
|
4204
|
+
)
|
|
4145
4205
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4146
4206
|
|
|
4147
4207
|
return self._github.request(
|
|
@@ -4202,15 +4262,17 @@ class ReposClient:
|
|
|
4202
4262
|
|
|
4203
4263
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
4204
4264
|
|
|
4205
|
-
headers = {
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4265
|
+
headers = {
|
|
4266
|
+
"Content-Type": "application/json",
|
|
4267
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4268
|
+
**(headers or {}),
|
|
4269
|
+
}
|
|
4209
4270
|
|
|
4210
4271
|
json = kwargs if data is UNSET else data
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4272
|
+
if self._github.config.rest_api_validate_body:
|
|
4273
|
+
json = type_validate_python(
|
|
4274
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, json
|
|
4275
|
+
)
|
|
4214
4276
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4215
4277
|
|
|
4216
4278
|
return await self._github.arequest(
|
|
@@ -4271,15 +4333,17 @@ class ReposClient:
|
|
|
4271
4333
|
|
|
4272
4334
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
4273
4335
|
|
|
4274
|
-
headers = {
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4336
|
+
headers = {
|
|
4337
|
+
"Content-Type": "application/json",
|
|
4338
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4339
|
+
**(headers or {}),
|
|
4340
|
+
}
|
|
4278
4341
|
|
|
4279
4342
|
json = kwargs if data is UNSET else data
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4343
|
+
if self._github.config.rest_api_validate_body:
|
|
4344
|
+
json = type_validate_python(
|
|
4345
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, json
|
|
4346
|
+
)
|
|
4283
4347
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4284
4348
|
|
|
4285
4349
|
return self._github.request(
|
|
@@ -4340,15 +4404,17 @@ class ReposClient:
|
|
|
4340
4404
|
|
|
4341
4405
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
4342
4406
|
|
|
4343
|
-
headers = {
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4407
|
+
headers = {
|
|
4408
|
+
"Content-Type": "application/json",
|
|
4409
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4410
|
+
**(headers or {}),
|
|
4411
|
+
}
|
|
4347
4412
|
|
|
4348
4413
|
json = kwargs if data is UNSET else data
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4414
|
+
if self._github.config.rest_api_validate_body:
|
|
4415
|
+
json = type_validate_python(
|
|
4416
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, json
|
|
4417
|
+
)
|
|
4352
4418
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4353
4419
|
|
|
4354
4420
|
return await self._github.arequest(
|
|
@@ -4409,15 +4475,17 @@ class ReposClient:
|
|
|
4409
4475
|
|
|
4410
4476
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
4411
4477
|
|
|
4412
|
-
headers = {
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4478
|
+
headers = {
|
|
4479
|
+
"Content-Type": "application/json",
|
|
4480
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4481
|
+
**(headers or {}),
|
|
4482
|
+
}
|
|
4416
4483
|
|
|
4417
4484
|
json = kwargs if data is UNSET else data
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4485
|
+
if self._github.config.rest_api_validate_body:
|
|
4486
|
+
json = type_validate_python(
|
|
4487
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, json
|
|
4488
|
+
)
|
|
4421
4489
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4422
4490
|
|
|
4423
4491
|
return self._github.request(
|
|
@@ -4478,15 +4546,17 @@ class ReposClient:
|
|
|
4478
4546
|
|
|
4479
4547
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
4480
4548
|
|
|
4481
|
-
headers = {
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4549
|
+
headers = {
|
|
4550
|
+
"Content-Type": "application/json",
|
|
4551
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4552
|
+
**(headers or {}),
|
|
4553
|
+
}
|
|
4485
4554
|
|
|
4486
4555
|
json = kwargs if data is UNSET else data
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4556
|
+
if self._github.config.rest_api_validate_body:
|
|
4557
|
+
json = type_validate_python(
|
|
4558
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, json
|
|
4559
|
+
)
|
|
4490
4560
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4491
4561
|
|
|
4492
4562
|
return await self._github.arequest(
|
|
@@ -4611,19 +4681,21 @@ class ReposClient:
|
|
|
4611
4681
|
|
|
4612
4682
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
4613
4683
|
|
|
4614
|
-
headers = {
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4684
|
+
headers = {
|
|
4685
|
+
"Content-Type": "application/json",
|
|
4686
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4687
|
+
**(headers or {}),
|
|
4688
|
+
}
|
|
4618
4689
|
|
|
4619
4690
|
json = kwargs if data is UNSET else data
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4691
|
+
if self._github.config.rest_api_validate_body:
|
|
4692
|
+
json = type_validate_python(
|
|
4693
|
+
Union[
|
|
4694
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0,
|
|
4695
|
+
List[str],
|
|
4696
|
+
],
|
|
4697
|
+
json,
|
|
4698
|
+
)
|
|
4627
4699
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4628
4700
|
|
|
4629
4701
|
return self._github.request(
|
|
@@ -4692,19 +4764,21 @@ class ReposClient:
|
|
|
4692
4764
|
|
|
4693
4765
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
4694
4766
|
|
|
4695
|
-
headers = {
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4767
|
+
headers = {
|
|
4768
|
+
"Content-Type": "application/json",
|
|
4769
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4770
|
+
**(headers or {}),
|
|
4771
|
+
}
|
|
4699
4772
|
|
|
4700
4773
|
json = kwargs if data is UNSET else data
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4774
|
+
if self._github.config.rest_api_validate_body:
|
|
4775
|
+
json = type_validate_python(
|
|
4776
|
+
Union[
|
|
4777
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0,
|
|
4778
|
+
List[str],
|
|
4779
|
+
],
|
|
4780
|
+
json,
|
|
4781
|
+
)
|
|
4708
4782
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4709
4783
|
|
|
4710
4784
|
return await self._github.arequest(
|
|
@@ -4773,19 +4847,21 @@ class ReposClient:
|
|
|
4773
4847
|
|
|
4774
4848
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
4775
4849
|
|
|
4776
|
-
headers = {
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4850
|
+
headers = {
|
|
4851
|
+
"Content-Type": "application/json",
|
|
4852
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4853
|
+
**(headers or {}),
|
|
4854
|
+
}
|
|
4780
4855
|
|
|
4781
4856
|
json = kwargs if data is UNSET else data
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4857
|
+
if self._github.config.rest_api_validate_body:
|
|
4858
|
+
json = type_validate_python(
|
|
4859
|
+
Union[
|
|
4860
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0,
|
|
4861
|
+
List[str],
|
|
4862
|
+
],
|
|
4863
|
+
json,
|
|
4864
|
+
)
|
|
4789
4865
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4790
4866
|
|
|
4791
4867
|
return self._github.request(
|
|
@@ -4854,19 +4930,21 @@ class ReposClient:
|
|
|
4854
4930
|
|
|
4855
4931
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
4856
4932
|
|
|
4857
|
-
headers = {
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4933
|
+
headers = {
|
|
4934
|
+
"Content-Type": "application/json",
|
|
4935
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4936
|
+
**(headers or {}),
|
|
4937
|
+
}
|
|
4861
4938
|
|
|
4862
4939
|
json = kwargs if data is UNSET else data
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4940
|
+
if self._github.config.rest_api_validate_body:
|
|
4941
|
+
json = type_validate_python(
|
|
4942
|
+
Union[
|
|
4943
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0,
|
|
4944
|
+
List[str],
|
|
4945
|
+
],
|
|
4946
|
+
json,
|
|
4947
|
+
)
|
|
4870
4948
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4871
4949
|
|
|
4872
4950
|
return await self._github.arequest(
|
|
@@ -4935,19 +5013,21 @@ class ReposClient:
|
|
|
4935
5013
|
|
|
4936
5014
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
4937
5015
|
|
|
4938
|
-
headers = {
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
5016
|
+
headers = {
|
|
5017
|
+
"Content-Type": "application/json",
|
|
5018
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5019
|
+
**(headers or {}),
|
|
5020
|
+
}
|
|
4942
5021
|
|
|
4943
5022
|
json = kwargs if data is UNSET else data
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
5023
|
+
if self._github.config.rest_api_validate_body:
|
|
5024
|
+
json = type_validate_python(
|
|
5025
|
+
Union[
|
|
5026
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0,
|
|
5027
|
+
List[str],
|
|
5028
|
+
],
|
|
5029
|
+
json,
|
|
5030
|
+
)
|
|
4951
5031
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4952
5032
|
|
|
4953
5033
|
return self._github.request(
|
|
@@ -5016,19 +5096,21 @@ class ReposClient:
|
|
|
5016
5096
|
|
|
5017
5097
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
5018
5098
|
|
|
5019
|
-
headers = {
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5099
|
+
headers = {
|
|
5100
|
+
"Content-Type": "application/json",
|
|
5101
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5102
|
+
**(headers or {}),
|
|
5103
|
+
}
|
|
5023
5104
|
|
|
5024
5105
|
json = kwargs if data is UNSET else data
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5106
|
+
if self._github.config.rest_api_validate_body:
|
|
5107
|
+
json = type_validate_python(
|
|
5108
|
+
Union[
|
|
5109
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0,
|
|
5110
|
+
List[str],
|
|
5111
|
+
],
|
|
5112
|
+
json,
|
|
5113
|
+
)
|
|
5032
5114
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5033
5115
|
|
|
5034
5116
|
return await self._github.arequest(
|
|
@@ -5145,15 +5227,17 @@ class ReposClient:
|
|
|
5145
5227
|
|
|
5146
5228
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
5147
5229
|
|
|
5148
|
-
headers = {
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5230
|
+
headers = {
|
|
5231
|
+
"Content-Type": "application/json",
|
|
5232
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5233
|
+
**(headers or {}),
|
|
5234
|
+
}
|
|
5152
5235
|
|
|
5153
5236
|
json = kwargs if data is UNSET else data
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5237
|
+
if self._github.config.rest_api_validate_body:
|
|
5238
|
+
json = type_validate_python(
|
|
5239
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, json
|
|
5240
|
+
)
|
|
5157
5241
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5158
5242
|
|
|
5159
5243
|
return self._github.request(
|
|
@@ -5214,15 +5298,17 @@ class ReposClient:
|
|
|
5214
5298
|
|
|
5215
5299
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
5216
5300
|
|
|
5217
|
-
headers = {
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5301
|
+
headers = {
|
|
5302
|
+
"Content-Type": "application/json",
|
|
5303
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5304
|
+
**(headers or {}),
|
|
5305
|
+
}
|
|
5221
5306
|
|
|
5222
5307
|
json = kwargs if data is UNSET else data
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5308
|
+
if self._github.config.rest_api_validate_body:
|
|
5309
|
+
json = type_validate_python(
|
|
5310
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, json
|
|
5311
|
+
)
|
|
5226
5312
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5227
5313
|
|
|
5228
5314
|
return await self._github.arequest(
|
|
@@ -5283,15 +5369,17 @@ class ReposClient:
|
|
|
5283
5369
|
|
|
5284
5370
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
5285
5371
|
|
|
5286
|
-
headers = {
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5372
|
+
headers = {
|
|
5373
|
+
"Content-Type": "application/json",
|
|
5374
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5375
|
+
**(headers or {}),
|
|
5376
|
+
}
|
|
5290
5377
|
|
|
5291
5378
|
json = kwargs if data is UNSET else data
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5379
|
+
if self._github.config.rest_api_validate_body:
|
|
5380
|
+
json = type_validate_python(
|
|
5381
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, json
|
|
5382
|
+
)
|
|
5295
5383
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5296
5384
|
|
|
5297
5385
|
return self._github.request(
|
|
@@ -5352,15 +5440,17 @@ class ReposClient:
|
|
|
5352
5440
|
|
|
5353
5441
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
5354
5442
|
|
|
5355
|
-
headers = {
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5443
|
+
headers = {
|
|
5444
|
+
"Content-Type": "application/json",
|
|
5445
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5446
|
+
**(headers or {}),
|
|
5447
|
+
}
|
|
5359
5448
|
|
|
5360
5449
|
json = kwargs if data is UNSET else data
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5450
|
+
if self._github.config.rest_api_validate_body:
|
|
5451
|
+
json = type_validate_python(
|
|
5452
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, json
|
|
5453
|
+
)
|
|
5364
5454
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5365
5455
|
|
|
5366
5456
|
return await self._github.arequest(
|
|
@@ -5421,15 +5511,17 @@ class ReposClient:
|
|
|
5421
5511
|
|
|
5422
5512
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
5423
5513
|
|
|
5424
|
-
headers = {
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5514
|
+
headers = {
|
|
5515
|
+
"Content-Type": "application/json",
|
|
5516
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5517
|
+
**(headers or {}),
|
|
5518
|
+
}
|
|
5428
5519
|
|
|
5429
5520
|
json = kwargs if data is UNSET else data
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5521
|
+
if self._github.config.rest_api_validate_body:
|
|
5522
|
+
json = type_validate_python(
|
|
5523
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, json
|
|
5524
|
+
)
|
|
5433
5525
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5434
5526
|
|
|
5435
5527
|
return self._github.request(
|
|
@@ -5490,15 +5582,17 @@ class ReposClient:
|
|
|
5490
5582
|
|
|
5491
5583
|
url = f"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
5492
5584
|
|
|
5493
|
-
headers = {
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5585
|
+
headers = {
|
|
5586
|
+
"Content-Type": "application/json",
|
|
5587
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5588
|
+
**(headers or {}),
|
|
5589
|
+
}
|
|
5497
5590
|
|
|
5498
5591
|
json = kwargs if data is UNSET else data
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5592
|
+
if self._github.config.rest_api_validate_body:
|
|
5593
|
+
json = type_validate_python(
|
|
5594
|
+
ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, json
|
|
5595
|
+
)
|
|
5502
5596
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5503
5597
|
|
|
5504
5598
|
return await self._github.arequest(
|
|
@@ -5556,13 +5650,17 @@ class ReposClient:
|
|
|
5556
5650
|
|
|
5557
5651
|
url = f"/repos/{owner}/{repo}/branches/{branch}/rename"
|
|
5558
5652
|
|
|
5559
|
-
headers = {
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5653
|
+
headers = {
|
|
5654
|
+
"Content-Type": "application/json",
|
|
5655
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5656
|
+
**(headers or {}),
|
|
5657
|
+
}
|
|
5563
5658
|
|
|
5564
5659
|
json = kwargs if data is UNSET else data
|
|
5565
|
-
|
|
5660
|
+
if self._github.config.rest_api_validate_body:
|
|
5661
|
+
json = type_validate_python(
|
|
5662
|
+
ReposOwnerRepoBranchesBranchRenamePostBody, json
|
|
5663
|
+
)
|
|
5566
5664
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5567
5665
|
|
|
5568
5666
|
return self._github.request(
|
|
@@ -5622,13 +5720,17 @@ class ReposClient:
|
|
|
5622
5720
|
|
|
5623
5721
|
url = f"/repos/{owner}/{repo}/branches/{branch}/rename"
|
|
5624
5722
|
|
|
5625
|
-
headers = {
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5723
|
+
headers = {
|
|
5724
|
+
"Content-Type": "application/json",
|
|
5725
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5726
|
+
**(headers or {}),
|
|
5727
|
+
}
|
|
5629
5728
|
|
|
5630
5729
|
json = kwargs if data is UNSET else data
|
|
5631
|
-
|
|
5730
|
+
if self._github.config.rest_api_validate_body:
|
|
5731
|
+
json = type_validate_python(
|
|
5732
|
+
ReposOwnerRepoBranchesBranchRenamePostBody, json
|
|
5733
|
+
)
|
|
5632
5734
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5633
5735
|
|
|
5634
5736
|
return await self._github.arequest(
|
|
@@ -5870,13 +5972,17 @@ class ReposClient:
|
|
|
5870
5972
|
|
|
5871
5973
|
url = f"/repos/{owner}/{repo}/collaborators/{username}"
|
|
5872
5974
|
|
|
5873
|
-
headers = {
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5975
|
+
headers = {
|
|
5976
|
+
"Content-Type": "application/json",
|
|
5977
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5978
|
+
**(headers or {}),
|
|
5979
|
+
}
|
|
5877
5980
|
|
|
5878
5981
|
json = kwargs if data is UNSET else data
|
|
5879
|
-
|
|
5982
|
+
if self._github.config.rest_api_validate_body:
|
|
5983
|
+
json = type_validate_python(
|
|
5984
|
+
ReposOwnerRepoCollaboratorsUsernamePutBody, json
|
|
5985
|
+
)
|
|
5880
5986
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5881
5987
|
|
|
5882
5988
|
return self._github.request(
|
|
@@ -5935,13 +6041,17 @@ class ReposClient:
|
|
|
5935
6041
|
|
|
5936
6042
|
url = f"/repos/{owner}/{repo}/collaborators/{username}"
|
|
5937
6043
|
|
|
5938
|
-
headers = {
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
6044
|
+
headers = {
|
|
6045
|
+
"Content-Type": "application/json",
|
|
6046
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6047
|
+
**(headers or {}),
|
|
6048
|
+
}
|
|
5942
6049
|
|
|
5943
6050
|
json = kwargs if data is UNSET else data
|
|
5944
|
-
|
|
6051
|
+
if self._github.config.rest_api_validate_body:
|
|
6052
|
+
json = type_validate_python(
|
|
6053
|
+
ReposOwnerRepoCollaboratorsUsernamePutBody, json
|
|
6054
|
+
)
|
|
5945
6055
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5946
6056
|
|
|
5947
6057
|
return await self._github.arequest(
|
|
@@ -6269,13 +6379,15 @@ class ReposClient:
|
|
|
6269
6379
|
|
|
6270
6380
|
url = f"/repos/{owner}/{repo}/comments/{comment_id}"
|
|
6271
6381
|
|
|
6272
|
-
headers = {
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6382
|
+
headers = {
|
|
6383
|
+
"Content-Type": "application/json",
|
|
6384
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6385
|
+
**(headers or {}),
|
|
6386
|
+
}
|
|
6276
6387
|
|
|
6277
6388
|
json = kwargs if data is UNSET else data
|
|
6278
|
-
|
|
6389
|
+
if self._github.config.rest_api_validate_body:
|
|
6390
|
+
json = type_validate_python(ReposOwnerRepoCommentsCommentIdPatchBody, json)
|
|
6279
6391
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6280
6392
|
|
|
6281
6393
|
return self._github.request(
|
|
@@ -6332,13 +6444,15 @@ class ReposClient:
|
|
|
6332
6444
|
|
|
6333
6445
|
url = f"/repos/{owner}/{repo}/comments/{comment_id}"
|
|
6334
6446
|
|
|
6335
|
-
headers = {
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6447
|
+
headers = {
|
|
6448
|
+
"Content-Type": "application/json",
|
|
6449
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6450
|
+
**(headers or {}),
|
|
6451
|
+
}
|
|
6339
6452
|
|
|
6340
6453
|
json = kwargs if data is UNSET else data
|
|
6341
|
-
|
|
6454
|
+
if self._github.config.rest_api_validate_body:
|
|
6455
|
+
json = type_validate_python(ReposOwnerRepoCommentsCommentIdPatchBody, json)
|
|
6342
6456
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6343
6457
|
|
|
6344
6458
|
return await self._github.arequest(
|
|
@@ -6623,15 +6737,17 @@ class ReposClient:
|
|
|
6623
6737
|
|
|
6624
6738
|
url = f"/repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
6625
6739
|
|
|
6626
|
-
headers = {
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6740
|
+
headers = {
|
|
6741
|
+
"Content-Type": "application/json",
|
|
6742
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6743
|
+
**(headers or {}),
|
|
6744
|
+
}
|
|
6630
6745
|
|
|
6631
6746
|
json = kwargs if data is UNSET else data
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6747
|
+
if self._github.config.rest_api_validate_body:
|
|
6748
|
+
json = type_validate_python(
|
|
6749
|
+
ReposOwnerRepoCommitsCommitShaCommentsPostBody, json
|
|
6750
|
+
)
|
|
6635
6751
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6636
6752
|
|
|
6637
6753
|
return self._github.request(
|
|
@@ -6693,15 +6809,17 @@ class ReposClient:
|
|
|
6693
6809
|
|
|
6694
6810
|
url = f"/repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
6695
6811
|
|
|
6696
|
-
headers = {
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6812
|
+
headers = {
|
|
6813
|
+
"Content-Type": "application/json",
|
|
6814
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6815
|
+
**(headers or {}),
|
|
6816
|
+
}
|
|
6700
6817
|
|
|
6701
6818
|
json = kwargs if data is UNSET else data
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6819
|
+
if self._github.config.rest_api_validate_body:
|
|
6820
|
+
json = type_validate_python(
|
|
6821
|
+
ReposOwnerRepoCommitsCommitShaCommentsPostBody, json
|
|
6822
|
+
)
|
|
6705
6823
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6706
6824
|
|
|
6707
6825
|
return await self._github.arequest(
|
|
@@ -7284,13 +7402,15 @@ class ReposClient:
|
|
|
7284
7402
|
|
|
7285
7403
|
url = f"/repos/{owner}/{repo}/contents/{path}"
|
|
7286
7404
|
|
|
7287
|
-
headers = {
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7405
|
+
headers = {
|
|
7406
|
+
"Content-Type": "application/json",
|
|
7407
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7408
|
+
**(headers or {}),
|
|
7409
|
+
}
|
|
7291
7410
|
|
|
7292
7411
|
json = kwargs if data is UNSET else data
|
|
7293
|
-
|
|
7412
|
+
if self._github.config.rest_api_validate_body:
|
|
7413
|
+
json = type_validate_python(ReposOwnerRepoContentsPathPutBody, json)
|
|
7294
7414
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7295
7415
|
|
|
7296
7416
|
return self._github.request(
|
|
@@ -7358,13 +7478,15 @@ class ReposClient:
|
|
|
7358
7478
|
|
|
7359
7479
|
url = f"/repos/{owner}/{repo}/contents/{path}"
|
|
7360
7480
|
|
|
7361
|
-
headers = {
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7481
|
+
headers = {
|
|
7482
|
+
"Content-Type": "application/json",
|
|
7483
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7484
|
+
**(headers or {}),
|
|
7485
|
+
}
|
|
7365
7486
|
|
|
7366
7487
|
json = kwargs if data is UNSET else data
|
|
7367
|
-
|
|
7488
|
+
if self._github.config.rest_api_validate_body:
|
|
7489
|
+
json = type_validate_python(ReposOwnerRepoContentsPathPutBody, json)
|
|
7368
7490
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7369
7491
|
|
|
7370
7492
|
return await self._github.arequest(
|
|
@@ -7431,13 +7553,15 @@ class ReposClient:
|
|
|
7431
7553
|
|
|
7432
7554
|
url = f"/repos/{owner}/{repo}/contents/{path}"
|
|
7433
7555
|
|
|
7434
|
-
headers = {
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7556
|
+
headers = {
|
|
7557
|
+
"Content-Type": "application/json",
|
|
7558
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7559
|
+
**(headers or {}),
|
|
7560
|
+
}
|
|
7438
7561
|
|
|
7439
7562
|
json = kwargs if data is UNSET else data
|
|
7440
|
-
|
|
7563
|
+
if self._github.config.rest_api_validate_body:
|
|
7564
|
+
json = type_validate_python(ReposOwnerRepoContentsPathDeleteBody, json)
|
|
7441
7565
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7442
7566
|
|
|
7443
7567
|
return self._github.request(
|
|
@@ -7505,13 +7629,15 @@ class ReposClient:
|
|
|
7505
7629
|
|
|
7506
7630
|
url = f"/repos/{owner}/{repo}/contents/{path}"
|
|
7507
7631
|
|
|
7508
|
-
headers = {
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7632
|
+
headers = {
|
|
7633
|
+
"Content-Type": "application/json",
|
|
7634
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7635
|
+
**(headers or {}),
|
|
7636
|
+
}
|
|
7512
7637
|
|
|
7513
7638
|
json = kwargs if data is UNSET else data
|
|
7514
|
-
|
|
7639
|
+
if self._github.config.rest_api_validate_body:
|
|
7640
|
+
json = type_validate_python(ReposOwnerRepoContentsPathDeleteBody, json)
|
|
7515
7641
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7516
7642
|
|
|
7517
7643
|
return await self._github.arequest(
|
|
@@ -7734,13 +7860,15 @@ class ReposClient:
|
|
|
7734
7860
|
|
|
7735
7861
|
url = f"/repos/{owner}/{repo}/deployments"
|
|
7736
7862
|
|
|
7737
|
-
headers = {
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7863
|
+
headers = {
|
|
7864
|
+
"Content-Type": "application/json",
|
|
7865
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7866
|
+
**(headers or {}),
|
|
7867
|
+
}
|
|
7741
7868
|
|
|
7742
7869
|
json = kwargs if data is UNSET else data
|
|
7743
|
-
|
|
7870
|
+
if self._github.config.rest_api_validate_body:
|
|
7871
|
+
json = type_validate_python(ReposOwnerRepoDeploymentsPostBody, json)
|
|
7744
7872
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7745
7873
|
|
|
7746
7874
|
return self._github.request(
|
|
@@ -7804,13 +7932,15 @@ class ReposClient:
|
|
|
7804
7932
|
|
|
7805
7933
|
url = f"/repos/{owner}/{repo}/deployments"
|
|
7806
7934
|
|
|
7807
|
-
headers = {
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7935
|
+
headers = {
|
|
7936
|
+
"Content-Type": "application/json",
|
|
7937
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7938
|
+
**(headers or {}),
|
|
7939
|
+
}
|
|
7811
7940
|
|
|
7812
7941
|
json = kwargs if data is UNSET else data
|
|
7813
|
-
|
|
7942
|
+
if self._github.config.rest_api_validate_body:
|
|
7943
|
+
json = type_validate_python(ReposOwnerRepoDeploymentsPostBody, json)
|
|
7814
7944
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7815
7945
|
|
|
7816
7946
|
return await self._github.arequest(
|
|
@@ -8059,15 +8189,17 @@ class ReposClient:
|
|
|
8059
8189
|
|
|
8060
8190
|
url = f"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
8061
8191
|
|
|
8062
|
-
headers = {
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8192
|
+
headers = {
|
|
8193
|
+
"Content-Type": "application/json",
|
|
8194
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8195
|
+
**(headers or {}),
|
|
8196
|
+
}
|
|
8066
8197
|
|
|
8067
8198
|
json = kwargs if data is UNSET else data
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8199
|
+
if self._github.config.rest_api_validate_body:
|
|
8200
|
+
json = type_validate_python(
|
|
8201
|
+
ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, json
|
|
8202
|
+
)
|
|
8071
8203
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8072
8204
|
|
|
8073
8205
|
return self._github.request(
|
|
@@ -8140,15 +8272,17 @@ class ReposClient:
|
|
|
8140
8272
|
|
|
8141
8273
|
url = f"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
8142
8274
|
|
|
8143
|
-
headers = {
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8275
|
+
headers = {
|
|
8276
|
+
"Content-Type": "application/json",
|
|
8277
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8278
|
+
**(headers or {}),
|
|
8279
|
+
}
|
|
8147
8280
|
|
|
8148
8281
|
json = kwargs if data is UNSET else data
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8282
|
+
if self._github.config.rest_api_validate_body:
|
|
8283
|
+
json = type_validate_python(
|
|
8284
|
+
ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, json
|
|
8285
|
+
)
|
|
8152
8286
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8153
8287
|
|
|
8154
8288
|
return await self._github.arequest(
|
|
@@ -8259,13 +8393,15 @@ class ReposClient:
|
|
|
8259
8393
|
|
|
8260
8394
|
url = f"/repos/{owner}/{repo}/dispatches"
|
|
8261
8395
|
|
|
8262
|
-
headers = {
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8396
|
+
headers = {
|
|
8397
|
+
"Content-Type": "application/json",
|
|
8398
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8399
|
+
**(headers or {}),
|
|
8400
|
+
}
|
|
8266
8401
|
|
|
8267
8402
|
json = kwargs if data is UNSET else data
|
|
8268
|
-
|
|
8403
|
+
if self._github.config.rest_api_validate_body:
|
|
8404
|
+
json = type_validate_python(ReposOwnerRepoDispatchesPostBody, json)
|
|
8269
8405
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8270
8406
|
|
|
8271
8407
|
return self._github.request(
|
|
@@ -8322,13 +8458,15 @@ class ReposClient:
|
|
|
8322
8458
|
|
|
8323
8459
|
url = f"/repos/{owner}/{repo}/dispatches"
|
|
8324
8460
|
|
|
8325
|
-
headers = {
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8461
|
+
headers = {
|
|
8462
|
+
"Content-Type": "application/json",
|
|
8463
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8464
|
+
**(headers or {}),
|
|
8465
|
+
}
|
|
8329
8466
|
|
|
8330
8467
|
json = kwargs if data is UNSET else data
|
|
8331
|
-
|
|
8468
|
+
if self._github.config.rest_api_validate_body:
|
|
8469
|
+
json = type_validate_python(ReposOwnerRepoDispatchesPostBody, json)
|
|
8332
8470
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8333
8471
|
|
|
8334
8472
|
return await self._github.arequest(
|
|
@@ -8509,15 +8647,17 @@ class ReposClient:
|
|
|
8509
8647
|
|
|
8510
8648
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}"
|
|
8511
8649
|
|
|
8512
|
-
headers = {
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8650
|
+
headers = {
|
|
8651
|
+
"Content-Type": "application/json",
|
|
8652
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8653
|
+
**(headers or {}),
|
|
8654
|
+
}
|
|
8516
8655
|
|
|
8517
8656
|
json = kwargs if data is UNSET else data
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8657
|
+
if self._github.config.rest_api_validate_body:
|
|
8658
|
+
json = type_validate_python(
|
|
8659
|
+
Union[ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, None], json
|
|
8660
|
+
)
|
|
8521
8661
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8522
8662
|
|
|
8523
8663
|
return self._github.request(
|
|
@@ -8592,15 +8732,17 @@ class ReposClient:
|
|
|
8592
8732
|
|
|
8593
8733
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}"
|
|
8594
8734
|
|
|
8595
|
-
headers = {
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8735
|
+
headers = {
|
|
8736
|
+
"Content-Type": "application/json",
|
|
8737
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8738
|
+
**(headers or {}),
|
|
8739
|
+
}
|
|
8599
8740
|
|
|
8600
8741
|
json = kwargs if data is UNSET else data
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8742
|
+
if self._github.config.rest_api_validate_body:
|
|
8743
|
+
json = type_validate_python(
|
|
8744
|
+
Union[ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, None], json
|
|
8745
|
+
)
|
|
8604
8746
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8605
8747
|
|
|
8606
8748
|
return await self._github.arequest(
|
|
@@ -8767,13 +8909,15 @@ class ReposClient:
|
|
|
8767
8909
|
|
|
8768
8910
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
8769
8911
|
|
|
8770
|
-
headers = {
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8912
|
+
headers = {
|
|
8913
|
+
"Content-Type": "application/json",
|
|
8914
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8915
|
+
**(headers or {}),
|
|
8916
|
+
}
|
|
8774
8917
|
|
|
8775
8918
|
json = kwargs if data is UNSET else data
|
|
8776
|
-
|
|
8919
|
+
if self._github.config.rest_api_validate_body:
|
|
8920
|
+
json = type_validate_python(DeploymentBranchPolicyNamePatternWithType, json)
|
|
8777
8921
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8778
8922
|
|
|
8779
8923
|
return self._github.request(
|
|
@@ -8828,13 +8972,15 @@ class ReposClient:
|
|
|
8828
8972
|
|
|
8829
8973
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
8830
8974
|
|
|
8831
|
-
headers = {
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8975
|
+
headers = {
|
|
8976
|
+
"Content-Type": "application/json",
|
|
8977
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8978
|
+
**(headers or {}),
|
|
8979
|
+
}
|
|
8835
8980
|
|
|
8836
8981
|
json = kwargs if data is UNSET else data
|
|
8837
|
-
|
|
8982
|
+
if self._github.config.rest_api_validate_body:
|
|
8983
|
+
json = type_validate_python(DeploymentBranchPolicyNamePatternWithType, json)
|
|
8838
8984
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8839
8985
|
|
|
8840
8986
|
return await self._github.arequest(
|
|
@@ -8936,13 +9082,15 @@ class ReposClient:
|
|
|
8936
9082
|
|
|
8937
9083
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
8938
9084
|
|
|
8939
|
-
headers = {
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
9085
|
+
headers = {
|
|
9086
|
+
"Content-Type": "application/json",
|
|
9087
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9088
|
+
**(headers or {}),
|
|
9089
|
+
}
|
|
8943
9090
|
|
|
8944
9091
|
json = kwargs if data is UNSET else data
|
|
8945
|
-
|
|
9092
|
+
if self._github.config.rest_api_validate_body:
|
|
9093
|
+
json = type_validate_python(DeploymentBranchPolicyNamePattern, json)
|
|
8946
9094
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8947
9095
|
|
|
8948
9096
|
return self._github.request(
|
|
@@ -8995,13 +9143,15 @@ class ReposClient:
|
|
|
8995
9143
|
|
|
8996
9144
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
8997
9145
|
|
|
8998
|
-
headers = {
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9146
|
+
headers = {
|
|
9147
|
+
"Content-Type": "application/json",
|
|
9148
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9149
|
+
**(headers or {}),
|
|
9150
|
+
}
|
|
9002
9151
|
|
|
9003
9152
|
json = kwargs if data is UNSET else data
|
|
9004
|
-
|
|
9153
|
+
if self._github.config.rest_api_validate_body:
|
|
9154
|
+
json = type_validate_python(DeploymentBranchPolicyNamePattern, json)
|
|
9005
9155
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9006
9156
|
|
|
9007
9157
|
return await self._github.arequest(
|
|
@@ -9152,16 +9302,18 @@ class ReposClient:
|
|
|
9152
9302
|
|
|
9153
9303
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
9154
9304
|
|
|
9155
|
-
headers = {
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9305
|
+
headers = {
|
|
9306
|
+
"Content-Type": "application/json",
|
|
9307
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9308
|
+
**(headers or {}),
|
|
9309
|
+
}
|
|
9159
9310
|
|
|
9160
9311
|
json = kwargs if data is UNSET else data
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9312
|
+
if self._github.config.rest_api_validate_body:
|
|
9313
|
+
json = type_validate_python(
|
|
9314
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody,
|
|
9315
|
+
json,
|
|
9316
|
+
)
|
|
9165
9317
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9166
9318
|
|
|
9167
9319
|
return self._github.request(
|
|
@@ -9216,16 +9368,18 @@ class ReposClient:
|
|
|
9216
9368
|
|
|
9217
9369
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
9218
9370
|
|
|
9219
|
-
headers = {
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9371
|
+
headers = {
|
|
9372
|
+
"Content-Type": "application/json",
|
|
9373
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9374
|
+
**(headers or {}),
|
|
9375
|
+
}
|
|
9223
9376
|
|
|
9224
9377
|
json = kwargs if data is UNSET else data
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9378
|
+
if self._github.config.rest_api_validate_body:
|
|
9379
|
+
json = type_validate_python(
|
|
9380
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody,
|
|
9381
|
+
json,
|
|
9382
|
+
)
|
|
9229
9383
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9230
9384
|
|
|
9231
9385
|
return await self._github.arequest(
|
|
@@ -9515,13 +9669,15 @@ class ReposClient:
|
|
|
9515
9669
|
|
|
9516
9670
|
url = f"/repos/{owner}/{repo}/forks"
|
|
9517
9671
|
|
|
9518
|
-
headers = {
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9672
|
+
headers = {
|
|
9673
|
+
"Content-Type": "application/json",
|
|
9674
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9675
|
+
**(headers or {}),
|
|
9676
|
+
}
|
|
9522
9677
|
|
|
9523
9678
|
json = kwargs if data is UNSET else data
|
|
9524
|
-
|
|
9679
|
+
if self._github.config.rest_api_validate_body:
|
|
9680
|
+
json = type_validate_python(Union[ReposOwnerRepoForksPostBody, None], json)
|
|
9525
9681
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9526
9682
|
|
|
9527
9683
|
return self._github.request(
|
|
@@ -9583,13 +9739,15 @@ class ReposClient:
|
|
|
9583
9739
|
|
|
9584
9740
|
url = f"/repos/{owner}/{repo}/forks"
|
|
9585
9741
|
|
|
9586
|
-
headers = {
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9742
|
+
headers = {
|
|
9743
|
+
"Content-Type": "application/json",
|
|
9744
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9745
|
+
**(headers or {}),
|
|
9746
|
+
}
|
|
9590
9747
|
|
|
9591
9748
|
json = kwargs if data is UNSET else data
|
|
9592
|
-
|
|
9749
|
+
if self._github.config.rest_api_validate_body:
|
|
9750
|
+
json = type_validate_python(Union[ReposOwnerRepoForksPostBody, None], json)
|
|
9593
9751
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9594
9752
|
|
|
9595
9753
|
return await self._github.arequest(
|
|
@@ -9722,13 +9880,15 @@ class ReposClient:
|
|
|
9722
9880
|
|
|
9723
9881
|
url = f"/repos/{owner}/{repo}/hooks"
|
|
9724
9882
|
|
|
9725
|
-
headers = {
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9883
|
+
headers = {
|
|
9884
|
+
"Content-Type": "application/json",
|
|
9885
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9886
|
+
**(headers or {}),
|
|
9887
|
+
}
|
|
9729
9888
|
|
|
9730
9889
|
json = kwargs if data is UNSET else data
|
|
9731
|
-
|
|
9890
|
+
if self._github.config.rest_api_validate_body:
|
|
9891
|
+
json = type_validate_python(Union[ReposOwnerRepoHooksPostBody, None], json)
|
|
9732
9892
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9733
9893
|
|
|
9734
9894
|
return self._github.request(
|
|
@@ -9790,13 +9950,15 @@ class ReposClient:
|
|
|
9790
9950
|
|
|
9791
9951
|
url = f"/repos/{owner}/{repo}/hooks"
|
|
9792
9952
|
|
|
9793
|
-
headers = {
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9953
|
+
headers = {
|
|
9954
|
+
"Content-Type": "application/json",
|
|
9955
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9956
|
+
**(headers or {}),
|
|
9957
|
+
}
|
|
9797
9958
|
|
|
9798
9959
|
json = kwargs if data is UNSET else data
|
|
9799
|
-
|
|
9960
|
+
if self._github.config.rest_api_validate_body:
|
|
9961
|
+
json = type_validate_python(Union[ReposOwnerRepoHooksPostBody, None], json)
|
|
9800
9962
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9801
9963
|
|
|
9802
9964
|
return await self._github.arequest(
|
|
@@ -9962,13 +10124,15 @@ class ReposClient:
|
|
|
9962
10124
|
|
|
9963
10125
|
url = f"/repos/{owner}/{repo}/hooks/{hook_id}"
|
|
9964
10126
|
|
|
9965
|
-
headers = {
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
10127
|
+
headers = {
|
|
10128
|
+
"Content-Type": "application/json",
|
|
10129
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10130
|
+
**(headers or {}),
|
|
10131
|
+
}
|
|
9969
10132
|
|
|
9970
10133
|
json = kwargs if data is UNSET else data
|
|
9971
|
-
|
|
10134
|
+
if self._github.config.rest_api_validate_body:
|
|
10135
|
+
json = type_validate_python(ReposOwnerRepoHooksHookIdPatchBody, json)
|
|
9972
10136
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9973
10137
|
|
|
9974
10138
|
return self._github.request(
|
|
@@ -10031,13 +10195,15 @@ class ReposClient:
|
|
|
10031
10195
|
|
|
10032
10196
|
url = f"/repos/{owner}/{repo}/hooks/{hook_id}"
|
|
10033
10197
|
|
|
10034
|
-
headers = {
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10198
|
+
headers = {
|
|
10199
|
+
"Content-Type": "application/json",
|
|
10200
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10201
|
+
**(headers or {}),
|
|
10202
|
+
}
|
|
10038
10203
|
|
|
10039
10204
|
json = kwargs if data is UNSET else data
|
|
10040
|
-
|
|
10205
|
+
if self._github.config.rest_api_validate_body:
|
|
10206
|
+
json = type_validate_python(ReposOwnerRepoHooksHookIdPatchBody, json)
|
|
10041
10207
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10042
10208
|
|
|
10043
10209
|
return await self._github.arequest(
|
|
@@ -10140,13 +10306,15 @@ class ReposClient:
|
|
|
10140
10306
|
|
|
10141
10307
|
url = f"/repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
10142
10308
|
|
|
10143
|
-
headers = {
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10309
|
+
headers = {
|
|
10310
|
+
"Content-Type": "application/json",
|
|
10311
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10312
|
+
**(headers or {}),
|
|
10313
|
+
}
|
|
10147
10314
|
|
|
10148
10315
|
json = kwargs if data is UNSET else data
|
|
10149
|
-
|
|
10316
|
+
if self._github.config.rest_api_validate_body:
|
|
10317
|
+
json = type_validate_python(ReposOwnerRepoHooksHookIdConfigPatchBody, json)
|
|
10150
10318
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10151
10319
|
|
|
10152
10320
|
return self._github.request(
|
|
@@ -10199,13 +10367,15 @@ class ReposClient:
|
|
|
10199
10367
|
|
|
10200
10368
|
url = f"/repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
10201
10369
|
|
|
10202
|
-
headers = {
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10370
|
+
headers = {
|
|
10371
|
+
"Content-Type": "application/json",
|
|
10372
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10373
|
+
**(headers or {}),
|
|
10374
|
+
}
|
|
10206
10375
|
|
|
10207
10376
|
json = kwargs if data is UNSET else data
|
|
10208
|
-
|
|
10377
|
+
if self._github.config.rest_api_validate_body:
|
|
10378
|
+
json = type_validate_python(ReposOwnerRepoHooksHookIdConfigPatchBody, json)
|
|
10209
10379
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10210
10380
|
|
|
10211
10381
|
return await self._github.arequest(
|
|
@@ -10662,15 +10832,17 @@ class ReposClient:
|
|
|
10662
10832
|
|
|
10663
10833
|
url = f"/repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
10664
10834
|
|
|
10665
|
-
headers = {
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10835
|
+
headers = {
|
|
10836
|
+
"Content-Type": "application/json",
|
|
10837
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10838
|
+
**(headers or {}),
|
|
10839
|
+
}
|
|
10669
10840
|
|
|
10670
10841
|
json = kwargs if data is UNSET else data
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10842
|
+
if self._github.config.rest_api_validate_body:
|
|
10843
|
+
json = type_validate_python(
|
|
10844
|
+
ReposOwnerRepoInvitationsInvitationIdPatchBody, json
|
|
10845
|
+
)
|
|
10674
10846
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10675
10847
|
|
|
10676
10848
|
return self._github.request(
|
|
@@ -10725,15 +10897,17 @@ class ReposClient:
|
|
|
10725
10897
|
|
|
10726
10898
|
url = f"/repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
10727
10899
|
|
|
10728
|
-
headers = {
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10900
|
+
headers = {
|
|
10901
|
+
"Content-Type": "application/json",
|
|
10902
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10903
|
+
**(headers or {}),
|
|
10904
|
+
}
|
|
10732
10905
|
|
|
10733
10906
|
json = kwargs if data is UNSET else data
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10907
|
+
if self._github.config.rest_api_validate_body:
|
|
10908
|
+
json = type_validate_python(
|
|
10909
|
+
ReposOwnerRepoInvitationsInvitationIdPatchBody, json
|
|
10910
|
+
)
|
|
10737
10911
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10738
10912
|
|
|
10739
10913
|
return await self._github.arequest(
|
|
@@ -10846,13 +11020,15 @@ class ReposClient:
|
|
|
10846
11020
|
|
|
10847
11021
|
url = f"/repos/{owner}/{repo}/keys"
|
|
10848
11022
|
|
|
10849
|
-
headers = {
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
11023
|
+
headers = {
|
|
11024
|
+
"Content-Type": "application/json",
|
|
11025
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11026
|
+
**(headers or {}),
|
|
11027
|
+
}
|
|
10853
11028
|
|
|
10854
11029
|
json = kwargs if data is UNSET else data
|
|
10855
|
-
|
|
11030
|
+
if self._github.config.rest_api_validate_body:
|
|
11031
|
+
json = type_validate_python(ReposOwnerRepoKeysPostBody, json)
|
|
10856
11032
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10857
11033
|
|
|
10858
11034
|
return self._github.request(
|
|
@@ -10904,13 +11080,15 @@ class ReposClient:
|
|
|
10904
11080
|
|
|
10905
11081
|
url = f"/repos/{owner}/{repo}/keys"
|
|
10906
11082
|
|
|
10907
|
-
headers = {
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
11083
|
+
headers = {
|
|
11084
|
+
"Content-Type": "application/json",
|
|
11085
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11086
|
+
**(headers or {}),
|
|
11087
|
+
}
|
|
10911
11088
|
|
|
10912
11089
|
json = kwargs if data is UNSET else data
|
|
10913
|
-
|
|
11090
|
+
if self._github.config.rest_api_validate_body:
|
|
11091
|
+
json = type_validate_python(ReposOwnerRepoKeysPostBody, json)
|
|
10914
11092
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10915
11093
|
|
|
10916
11094
|
return await self._github.arequest(
|
|
@@ -11180,13 +11358,15 @@ class ReposClient:
|
|
|
11180
11358
|
|
|
11181
11359
|
url = f"/repos/{owner}/{repo}/merge-upstream"
|
|
11182
11360
|
|
|
11183
|
-
headers = {
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11361
|
+
headers = {
|
|
11362
|
+
"Content-Type": "application/json",
|
|
11363
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11364
|
+
**(headers or {}),
|
|
11365
|
+
}
|
|
11187
11366
|
|
|
11188
11367
|
json = kwargs if data is UNSET else data
|
|
11189
|
-
|
|
11368
|
+
if self._github.config.rest_api_validate_body:
|
|
11369
|
+
json = type_validate_python(ReposOwnerRepoMergeUpstreamPostBody, json)
|
|
11190
11370
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11191
11371
|
|
|
11192
11372
|
return self._github.request(
|
|
@@ -11234,13 +11414,15 @@ class ReposClient:
|
|
|
11234
11414
|
|
|
11235
11415
|
url = f"/repos/{owner}/{repo}/merge-upstream"
|
|
11236
11416
|
|
|
11237
|
-
headers = {
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11417
|
+
headers = {
|
|
11418
|
+
"Content-Type": "application/json",
|
|
11419
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11420
|
+
**(headers or {}),
|
|
11421
|
+
}
|
|
11241
11422
|
|
|
11242
11423
|
json = kwargs if data is UNSET else data
|
|
11243
|
-
|
|
11424
|
+
if self._github.config.rest_api_validate_body:
|
|
11425
|
+
json = type_validate_python(ReposOwnerRepoMergeUpstreamPostBody, json)
|
|
11244
11426
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11245
11427
|
|
|
11246
11428
|
return await self._github.arequest(
|
|
@@ -11295,13 +11477,15 @@ class ReposClient:
|
|
|
11295
11477
|
|
|
11296
11478
|
url = f"/repos/{owner}/{repo}/merges"
|
|
11297
11479
|
|
|
11298
|
-
headers = {
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11480
|
+
headers = {
|
|
11481
|
+
"Content-Type": "application/json",
|
|
11482
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11483
|
+
**(headers or {}),
|
|
11484
|
+
}
|
|
11302
11485
|
|
|
11303
11486
|
json = kwargs if data is UNSET else data
|
|
11304
|
-
|
|
11487
|
+
if self._github.config.rest_api_validate_body:
|
|
11488
|
+
json = type_validate_python(ReposOwnerRepoMergesPostBody, json)
|
|
11305
11489
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11306
11490
|
|
|
11307
11491
|
return self._github.request(
|
|
@@ -11359,13 +11543,15 @@ class ReposClient:
|
|
|
11359
11543
|
|
|
11360
11544
|
url = f"/repos/{owner}/{repo}/merges"
|
|
11361
11545
|
|
|
11362
|
-
headers = {
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11546
|
+
headers = {
|
|
11547
|
+
"Content-Type": "application/json",
|
|
11548
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11549
|
+
**(headers or {}),
|
|
11550
|
+
}
|
|
11366
11551
|
|
|
11367
11552
|
json = kwargs if data is UNSET else data
|
|
11368
|
-
|
|
11553
|
+
if self._github.config.rest_api_validate_body:
|
|
11554
|
+
json = type_validate_python(ReposOwnerRepoMergesPostBody, json)
|
|
11369
11555
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11370
11556
|
|
|
11371
11557
|
return await self._github.arequest(
|
|
@@ -11577,22 +11763,24 @@ class ReposClient:
|
|
|
11577
11763
|
|
|
11578
11764
|
url = f"/repos/{owner}/{repo}/pages"
|
|
11579
11765
|
|
|
11580
|
-
headers = {
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11766
|
+
headers = {
|
|
11767
|
+
"Content-Type": "application/json",
|
|
11768
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11769
|
+
**(headers or {}),
|
|
11770
|
+
}
|
|
11584
11771
|
|
|
11585
11772
|
json = kwargs if data is UNSET else data
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11773
|
+
if self._github.config.rest_api_validate_body:
|
|
11774
|
+
json = type_validate_python(
|
|
11775
|
+
Union[
|
|
11776
|
+
ReposOwnerRepoPagesPutBodyAnyof0,
|
|
11777
|
+
ReposOwnerRepoPagesPutBodyAnyof1,
|
|
11778
|
+
ReposOwnerRepoPagesPutBodyAnyof2,
|
|
11779
|
+
ReposOwnerRepoPagesPutBodyAnyof3,
|
|
11780
|
+
ReposOwnerRepoPagesPutBodyAnyof4,
|
|
11781
|
+
],
|
|
11782
|
+
json,
|
|
11783
|
+
)
|
|
11596
11784
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11597
11785
|
|
|
11598
11786
|
return self._github.request(
|
|
@@ -11754,22 +11942,24 @@ class ReposClient:
|
|
|
11754
11942
|
|
|
11755
11943
|
url = f"/repos/{owner}/{repo}/pages"
|
|
11756
11944
|
|
|
11757
|
-
headers = {
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11945
|
+
headers = {
|
|
11946
|
+
"Content-Type": "application/json",
|
|
11947
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
11948
|
+
**(headers or {}),
|
|
11949
|
+
}
|
|
11761
11950
|
|
|
11762
11951
|
json = kwargs if data is UNSET else data
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11952
|
+
if self._github.config.rest_api_validate_body:
|
|
11953
|
+
json = type_validate_python(
|
|
11954
|
+
Union[
|
|
11955
|
+
ReposOwnerRepoPagesPutBodyAnyof0,
|
|
11956
|
+
ReposOwnerRepoPagesPutBodyAnyof1,
|
|
11957
|
+
ReposOwnerRepoPagesPutBodyAnyof2,
|
|
11958
|
+
ReposOwnerRepoPagesPutBodyAnyof3,
|
|
11959
|
+
ReposOwnerRepoPagesPutBodyAnyof4,
|
|
11960
|
+
],
|
|
11961
|
+
json,
|
|
11962
|
+
)
|
|
11773
11963
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11774
11964
|
|
|
11775
11965
|
return await self._github.arequest(
|
|
@@ -11853,21 +12043,23 @@ class ReposClient:
|
|
|
11853
12043
|
|
|
11854
12044
|
url = f"/repos/{owner}/{repo}/pages"
|
|
11855
12045
|
|
|
11856
|
-
headers = {
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
12046
|
+
headers = {
|
|
12047
|
+
"Content-Type": "application/json",
|
|
12048
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
12049
|
+
**(headers or {}),
|
|
12050
|
+
}
|
|
11860
12051
|
|
|
11861
12052
|
json = kwargs if data is UNSET else data
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
12053
|
+
if self._github.config.rest_api_validate_body:
|
|
12054
|
+
json = type_validate_python(
|
|
12055
|
+
Union[
|
|
12056
|
+
ReposOwnerRepoPagesPostBodyAnyof0,
|
|
12057
|
+
None,
|
|
12058
|
+
ReposOwnerRepoPagesPostBodyAnyof1,
|
|
12059
|
+
None,
|
|
12060
|
+
],
|
|
12061
|
+
json,
|
|
12062
|
+
)
|
|
11871
12063
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11872
12064
|
|
|
11873
12065
|
return self._github.request(
|
|
@@ -11951,21 +12143,23 @@ class ReposClient:
|
|
|
11951
12143
|
|
|
11952
12144
|
url = f"/repos/{owner}/{repo}/pages"
|
|
11953
12145
|
|
|
11954
|
-
headers = {
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
12146
|
+
headers = {
|
|
12147
|
+
"Content-Type": "application/json",
|
|
12148
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
12149
|
+
**(headers or {}),
|
|
12150
|
+
}
|
|
11958
12151
|
|
|
11959
12152
|
json = kwargs if data is UNSET else data
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
12153
|
+
if self._github.config.rest_api_validate_body:
|
|
12154
|
+
json = type_validate_python(
|
|
12155
|
+
Union[
|
|
12156
|
+
ReposOwnerRepoPagesPostBodyAnyof0,
|
|
12157
|
+
None,
|
|
12158
|
+
ReposOwnerRepoPagesPostBodyAnyof1,
|
|
12159
|
+
None,
|
|
12160
|
+
],
|
|
12161
|
+
json,
|
|
12162
|
+
)
|
|
11969
12163
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
11970
12164
|
|
|
11971
12165
|
return await self._github.arequest(
|
|
@@ -12275,13 +12469,15 @@ class ReposClient:
|
|
|
12275
12469
|
|
|
12276
12470
|
url = f"/repos/{owner}/{repo}/pages/deployments"
|
|
12277
12471
|
|
|
12278
|
-
headers = {
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12472
|
+
headers = {
|
|
12473
|
+
"Content-Type": "application/json",
|
|
12474
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
12475
|
+
**(headers or {}),
|
|
12476
|
+
}
|
|
12282
12477
|
|
|
12283
12478
|
json = kwargs if data is UNSET else data
|
|
12284
|
-
|
|
12479
|
+
if self._github.config.rest_api_validate_body:
|
|
12480
|
+
json = type_validate_python(ReposOwnerRepoPagesDeploymentsPostBody, json)
|
|
12285
12481
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
12286
12482
|
|
|
12287
12483
|
return self._github.request(
|
|
@@ -12342,13 +12538,15 @@ class ReposClient:
|
|
|
12342
12538
|
|
|
12343
12539
|
url = f"/repos/{owner}/{repo}/pages/deployments"
|
|
12344
12540
|
|
|
12345
|
-
headers = {
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12541
|
+
headers = {
|
|
12542
|
+
"Content-Type": "application/json",
|
|
12543
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
12544
|
+
**(headers or {}),
|
|
12545
|
+
}
|
|
12349
12546
|
|
|
12350
12547
|
json = kwargs if data is UNSET else data
|
|
12351
|
-
|
|
12548
|
+
if self._github.config.rest_api_validate_body:
|
|
12549
|
+
json = type_validate_python(ReposOwnerRepoPagesDeploymentsPostBody, json)
|
|
12352
12550
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
12353
12551
|
|
|
12354
12552
|
return await self._github.arequest(
|
|
@@ -12764,13 +12962,15 @@ class ReposClient:
|
|
|
12764
12962
|
|
|
12765
12963
|
url = f"/repos/{owner}/{repo}/properties/values"
|
|
12766
12964
|
|
|
12767
|
-
headers = {
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12965
|
+
headers = {
|
|
12966
|
+
"Content-Type": "application/json",
|
|
12967
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
12968
|
+
**(headers or {}),
|
|
12969
|
+
}
|
|
12771
12970
|
|
|
12772
12971
|
json = kwargs if data is UNSET else data
|
|
12773
|
-
|
|
12972
|
+
if self._github.config.rest_api_validate_body:
|
|
12973
|
+
json = type_validate_python(ReposOwnerRepoPropertiesValuesPatchBody, json)
|
|
12774
12974
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
12775
12975
|
|
|
12776
12976
|
return self._github.request(
|
|
@@ -12825,13 +13025,15 @@ class ReposClient:
|
|
|
12825
13025
|
|
|
12826
13026
|
url = f"/repos/{owner}/{repo}/properties/values"
|
|
12827
13027
|
|
|
12828
|
-
headers = {
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
13028
|
+
headers = {
|
|
13029
|
+
"Content-Type": "application/json",
|
|
13030
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13031
|
+
**(headers or {}),
|
|
13032
|
+
}
|
|
12832
13033
|
|
|
12833
13034
|
json = kwargs if data is UNSET else data
|
|
12834
|
-
|
|
13035
|
+
if self._github.config.rest_api_validate_body:
|
|
13036
|
+
json = type_validate_python(ReposOwnerRepoPropertiesValuesPatchBody, json)
|
|
12835
13037
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
12836
13038
|
|
|
12837
13039
|
return await self._github.arequest(
|
|
@@ -13095,13 +13297,15 @@ class ReposClient:
|
|
|
13095
13297
|
|
|
13096
13298
|
url = f"/repos/{owner}/{repo}/releases"
|
|
13097
13299
|
|
|
13098
|
-
headers = {
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13300
|
+
headers = {
|
|
13301
|
+
"Content-Type": "application/json",
|
|
13302
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13303
|
+
**(headers or {}),
|
|
13304
|
+
}
|
|
13102
13305
|
|
|
13103
13306
|
json = kwargs if data is UNSET else data
|
|
13104
|
-
|
|
13307
|
+
if self._github.config.rest_api_validate_body:
|
|
13308
|
+
json = type_validate_python(ReposOwnerRepoReleasesPostBody, json)
|
|
13105
13309
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13106
13310
|
|
|
13107
13311
|
return self._github.request(
|
|
@@ -13165,13 +13369,15 @@ class ReposClient:
|
|
|
13165
13369
|
|
|
13166
13370
|
url = f"/repos/{owner}/{repo}/releases"
|
|
13167
13371
|
|
|
13168
|
-
headers = {
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13372
|
+
headers = {
|
|
13373
|
+
"Content-Type": "application/json",
|
|
13374
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13375
|
+
**(headers or {}),
|
|
13376
|
+
}
|
|
13172
13377
|
|
|
13173
13378
|
json = kwargs if data is UNSET else data
|
|
13174
|
-
|
|
13379
|
+
if self._github.config.rest_api_validate_body:
|
|
13380
|
+
json = type_validate_python(ReposOwnerRepoReleasesPostBody, json)
|
|
13175
13381
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13176
13382
|
|
|
13177
13383
|
return await self._github.arequest(
|
|
@@ -13319,13 +13525,17 @@ class ReposClient:
|
|
|
13319
13525
|
|
|
13320
13526
|
url = f"/repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
13321
13527
|
|
|
13322
|
-
headers = {
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13528
|
+
headers = {
|
|
13529
|
+
"Content-Type": "application/json",
|
|
13530
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13531
|
+
**(headers or {}),
|
|
13532
|
+
}
|
|
13326
13533
|
|
|
13327
13534
|
json = kwargs if data is UNSET else data
|
|
13328
|
-
|
|
13535
|
+
if self._github.config.rest_api_validate_body:
|
|
13536
|
+
json = type_validate_python(
|
|
13537
|
+
ReposOwnerRepoReleasesAssetsAssetIdPatchBody, json
|
|
13538
|
+
)
|
|
13329
13539
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13330
13540
|
|
|
13331
13541
|
return self._github.request(
|
|
@@ -13377,13 +13587,17 @@ class ReposClient:
|
|
|
13377
13587
|
|
|
13378
13588
|
url = f"/repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
13379
13589
|
|
|
13380
|
-
headers = {
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13590
|
+
headers = {
|
|
13591
|
+
"Content-Type": "application/json",
|
|
13592
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13593
|
+
**(headers or {}),
|
|
13594
|
+
}
|
|
13384
13595
|
|
|
13385
13596
|
json = kwargs if data is UNSET else data
|
|
13386
|
-
|
|
13597
|
+
if self._github.config.rest_api_validate_body:
|
|
13598
|
+
json = type_validate_python(
|
|
13599
|
+
ReposOwnerRepoReleasesAssetsAssetIdPatchBody, json
|
|
13600
|
+
)
|
|
13387
13601
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13388
13602
|
|
|
13389
13603
|
return await self._github.arequest(
|
|
@@ -13437,13 +13651,17 @@ class ReposClient:
|
|
|
13437
13651
|
|
|
13438
13652
|
url = f"/repos/{owner}/{repo}/releases/generate-notes"
|
|
13439
13653
|
|
|
13440
|
-
headers = {
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13654
|
+
headers = {
|
|
13655
|
+
"Content-Type": "application/json",
|
|
13656
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13657
|
+
**(headers or {}),
|
|
13658
|
+
}
|
|
13444
13659
|
|
|
13445
13660
|
json = kwargs if data is UNSET else data
|
|
13446
|
-
|
|
13661
|
+
if self._github.config.rest_api_validate_body:
|
|
13662
|
+
json = type_validate_python(
|
|
13663
|
+
ReposOwnerRepoReleasesGenerateNotesPostBody, json
|
|
13664
|
+
)
|
|
13447
13665
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13448
13666
|
|
|
13449
13667
|
return self._github.request(
|
|
@@ -13500,13 +13718,17 @@ class ReposClient:
|
|
|
13500
13718
|
|
|
13501
13719
|
url = f"/repos/{owner}/{repo}/releases/generate-notes"
|
|
13502
13720
|
|
|
13503
|
-
headers = {
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13721
|
+
headers = {
|
|
13722
|
+
"Content-Type": "application/json",
|
|
13723
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13724
|
+
**(headers or {}),
|
|
13725
|
+
}
|
|
13507
13726
|
|
|
13508
13727
|
json = kwargs if data is UNSET else data
|
|
13509
|
-
|
|
13728
|
+
if self._github.config.rest_api_validate_body:
|
|
13729
|
+
json = type_validate_python(
|
|
13730
|
+
ReposOwnerRepoReleasesGenerateNotesPostBody, json
|
|
13731
|
+
)
|
|
13510
13732
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13511
13733
|
|
|
13512
13734
|
return await self._github.arequest(
|
|
@@ -13754,13 +13976,15 @@ class ReposClient:
|
|
|
13754
13976
|
|
|
13755
13977
|
url = f"/repos/{owner}/{repo}/releases/{release_id}"
|
|
13756
13978
|
|
|
13757
|
-
headers = {
|
|
13758
|
-
|
|
13759
|
-
|
|
13760
|
-
|
|
13979
|
+
headers = {
|
|
13980
|
+
"Content-Type": "application/json",
|
|
13981
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
13982
|
+
**(headers or {}),
|
|
13983
|
+
}
|
|
13761
13984
|
|
|
13762
13985
|
json = kwargs if data is UNSET else data
|
|
13763
|
-
|
|
13986
|
+
if self._github.config.rest_api_validate_body:
|
|
13987
|
+
json = type_validate_python(ReposOwnerRepoReleasesReleaseIdPatchBody, json)
|
|
13764
13988
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13765
13989
|
|
|
13766
13990
|
return self._github.request(
|
|
@@ -13824,13 +14048,15 @@ class ReposClient:
|
|
|
13824
14048
|
|
|
13825
14049
|
url = f"/repos/{owner}/{repo}/releases/{release_id}"
|
|
13826
14050
|
|
|
13827
|
-
headers = {
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
14051
|
+
headers = {
|
|
14052
|
+
"Content-Type": "application/json",
|
|
14053
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
14054
|
+
**(headers or {}),
|
|
14055
|
+
}
|
|
13831
14056
|
|
|
13832
14057
|
json = kwargs if data is UNSET else data
|
|
13833
|
-
|
|
14058
|
+
if self._github.config.rest_api_validate_body:
|
|
14059
|
+
json = type_validate_python(ReposOwnerRepoReleasesReleaseIdPatchBody, json)
|
|
13834
14060
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
13835
14061
|
|
|
13836
14062
|
return await self._github.arequest(
|
|
@@ -13920,12 +14146,9 @@ class ReposClient:
|
|
|
13920
14146
|
*,
|
|
13921
14147
|
headers: Optional[Dict[str, str]] = None,
|
|
13922
14148
|
data: FileTypes,
|
|
13923
|
-
**kwargs,
|
|
13924
14149
|
) -> Response[ReleaseAsset]:
|
|
13925
14150
|
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#upload-a-release-asset"""
|
|
13926
14151
|
|
|
13927
|
-
from githubkit.typing import FileTypes
|
|
13928
|
-
|
|
13929
14152
|
from ..models import ReleaseAsset
|
|
13930
14153
|
|
|
13931
14154
|
url = f"/repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
@@ -13935,14 +14158,13 @@ class ReposClient:
|
|
|
13935
14158
|
"label": label,
|
|
13936
14159
|
}
|
|
13937
14160
|
|
|
13938
|
-
headers = {
|
|
13939
|
-
|
|
13940
|
-
|
|
13941
|
-
|
|
14161
|
+
headers = {
|
|
14162
|
+
"Content-Type": "application/octet-stream",
|
|
14163
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
14164
|
+
**(headers or {}),
|
|
14165
|
+
}
|
|
13942
14166
|
|
|
13943
|
-
content =
|
|
13944
|
-
content = type_validate_python(FileTypes, content)
|
|
13945
|
-
content = model_dump(content) if isinstance(content, BaseModel) else content
|
|
14167
|
+
content = data
|
|
13946
14168
|
|
|
13947
14169
|
return self._github.request(
|
|
13948
14170
|
"POST",
|
|
@@ -13964,12 +14186,9 @@ class ReposClient:
|
|
|
13964
14186
|
*,
|
|
13965
14187
|
headers: Optional[Dict[str, str]] = None,
|
|
13966
14188
|
data: FileTypes,
|
|
13967
|
-
**kwargs,
|
|
13968
14189
|
) -> Response[ReleaseAsset]:
|
|
13969
14190
|
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#upload-a-release-asset"""
|
|
13970
14191
|
|
|
13971
|
-
from githubkit.typing import FileTypes
|
|
13972
|
-
|
|
13973
14192
|
from ..models import ReleaseAsset
|
|
13974
14193
|
|
|
13975
14194
|
url = f"/repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
@@ -13979,14 +14198,13 @@ class ReposClient:
|
|
|
13979
14198
|
"label": label,
|
|
13980
14199
|
}
|
|
13981
14200
|
|
|
13982
|
-
headers = {
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
14201
|
+
headers = {
|
|
14202
|
+
"Content-Type": "application/octet-stream",
|
|
14203
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
14204
|
+
**(headers or {}),
|
|
14205
|
+
}
|
|
13986
14206
|
|
|
13987
|
-
content =
|
|
13988
|
-
content = type_validate_python(FileTypes, content)
|
|
13989
|
-
content = model_dump(content) if isinstance(content, BaseModel) else content
|
|
14207
|
+
content = data
|
|
13990
14208
|
|
|
13991
14209
|
return await self._github.arequest(
|
|
13992
14210
|
"POST",
|
|
@@ -14191,6 +14409,7 @@ class ReposClient:
|
|
|
14191
14409
|
per_page: Missing[int] = UNSET,
|
|
14192
14410
|
page: Missing[int] = UNSET,
|
|
14193
14411
|
includes_parents: Missing[bool] = UNSET,
|
|
14412
|
+
targets: Missing[str] = UNSET,
|
|
14194
14413
|
*,
|
|
14195
14414
|
headers: Optional[Dict[str, str]] = None,
|
|
14196
14415
|
) -> Response[List[RepositoryRuleset]]:
|
|
@@ -14206,6 +14425,7 @@ class ReposClient:
|
|
|
14206
14425
|
"per_page": per_page,
|
|
14207
14426
|
"page": page,
|
|
14208
14427
|
"includes_parents": includes_parents,
|
|
14428
|
+
"targets": targets,
|
|
14209
14429
|
}
|
|
14210
14430
|
|
|
14211
14431
|
headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
|
|
@@ -14229,6 +14449,7 @@ class ReposClient:
|
|
|
14229
14449
|
per_page: Missing[int] = UNSET,
|
|
14230
14450
|
page: Missing[int] = UNSET,
|
|
14231
14451
|
includes_parents: Missing[bool] = UNSET,
|
|
14452
|
+
targets: Missing[str] = UNSET,
|
|
14232
14453
|
*,
|
|
14233
14454
|
headers: Optional[Dict[str, str]] = None,
|
|
14234
14455
|
) -> Response[List[RepositoryRuleset]]:
|
|
@@ -14244,6 +14465,7 @@ class ReposClient:
|
|
|
14244
14465
|
"per_page": per_page,
|
|
14245
14466
|
"page": page,
|
|
14246
14467
|
"includes_parents": includes_parents,
|
|
14468
|
+
"targets": targets,
|
|
14247
14469
|
}
|
|
14248
14470
|
|
|
14249
14471
|
headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
|
|
@@ -14331,13 +14553,15 @@ class ReposClient:
|
|
|
14331
14553
|
|
|
14332
14554
|
url = f"/repos/{owner}/{repo}/rulesets"
|
|
14333
14555
|
|
|
14334
|
-
headers = {
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
|
|
14556
|
+
headers = {
|
|
14557
|
+
"Content-Type": "application/json",
|
|
14558
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
14559
|
+
**(headers or {}),
|
|
14560
|
+
}
|
|
14338
14561
|
|
|
14339
14562
|
json = kwargs if data is UNSET else data
|
|
14340
|
-
|
|
14563
|
+
if self._github.config.rest_api_validate_body:
|
|
14564
|
+
json = type_validate_python(ReposOwnerRepoRulesetsPostBody, json)
|
|
14341
14565
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
14342
14566
|
|
|
14343
14567
|
return self._github.request(
|
|
@@ -14423,13 +14647,15 @@ class ReposClient:
|
|
|
14423
14647
|
|
|
14424
14648
|
url = f"/repos/{owner}/{repo}/rulesets"
|
|
14425
14649
|
|
|
14426
|
-
headers = {
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14650
|
+
headers = {
|
|
14651
|
+
"Content-Type": "application/json",
|
|
14652
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
14653
|
+
**(headers or {}),
|
|
14654
|
+
}
|
|
14430
14655
|
|
|
14431
14656
|
json = kwargs if data is UNSET else data
|
|
14432
|
-
|
|
14657
|
+
if self._github.config.rest_api_validate_body:
|
|
14658
|
+
json = type_validate_python(ReposOwnerRepoRulesetsPostBody, json)
|
|
14433
14659
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
14434
14660
|
|
|
14435
14661
|
return await self._github.arequest(
|
|
@@ -14726,13 +14952,15 @@ class ReposClient:
|
|
|
14726
14952
|
|
|
14727
14953
|
url = f"/repos/{owner}/{repo}/rulesets/{ruleset_id}"
|
|
14728
14954
|
|
|
14729
|
-
headers = {
|
|
14730
|
-
|
|
14731
|
-
|
|
14732
|
-
|
|
14955
|
+
headers = {
|
|
14956
|
+
"Content-Type": "application/json",
|
|
14957
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
14958
|
+
**(headers or {}),
|
|
14959
|
+
}
|
|
14733
14960
|
|
|
14734
14961
|
json = kwargs if data is UNSET else data
|
|
14735
|
-
|
|
14962
|
+
if self._github.config.rest_api_validate_body:
|
|
14963
|
+
json = type_validate_python(ReposOwnerRepoRulesetsRulesetIdPutBody, json)
|
|
14736
14964
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
14737
14965
|
|
|
14738
14966
|
return self._github.request(
|
|
@@ -14821,13 +15049,15 @@ class ReposClient:
|
|
|
14821
15049
|
|
|
14822
15050
|
url = f"/repos/{owner}/{repo}/rulesets/{ruleset_id}"
|
|
14823
15051
|
|
|
14824
|
-
headers = {
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
15052
|
+
headers = {
|
|
15053
|
+
"Content-Type": "application/json",
|
|
15054
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
15055
|
+
**(headers or {}),
|
|
15056
|
+
}
|
|
14828
15057
|
|
|
14829
15058
|
json = kwargs if data is UNSET else data
|
|
14830
|
-
|
|
15059
|
+
if self._github.config.rest_api_validate_body:
|
|
15060
|
+
json = type_validate_python(ReposOwnerRepoRulesetsRulesetIdPutBody, json)
|
|
14831
15061
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
14832
15062
|
|
|
14833
15063
|
return await self._github.arequest(
|
|
@@ -15172,13 +15402,15 @@ class ReposClient:
|
|
|
15172
15402
|
|
|
15173
15403
|
url = f"/repos/{owner}/{repo}/statuses/{sha}"
|
|
15174
15404
|
|
|
15175
|
-
headers = {
|
|
15176
|
-
|
|
15177
|
-
|
|
15178
|
-
|
|
15405
|
+
headers = {
|
|
15406
|
+
"Content-Type": "application/json",
|
|
15407
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
15408
|
+
**(headers or {}),
|
|
15409
|
+
}
|
|
15179
15410
|
|
|
15180
15411
|
json = kwargs if data is UNSET else data
|
|
15181
|
-
|
|
15412
|
+
if self._github.config.rest_api_validate_body:
|
|
15413
|
+
json = type_validate_python(ReposOwnerRepoStatusesShaPostBody, json)
|
|
15182
15414
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
15183
15415
|
|
|
15184
15416
|
return self._github.request(
|
|
@@ -15231,13 +15463,15 @@ class ReposClient:
|
|
|
15231
15463
|
|
|
15232
15464
|
url = f"/repos/{owner}/{repo}/statuses/{sha}"
|
|
15233
15465
|
|
|
15234
|
-
headers = {
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15466
|
+
headers = {
|
|
15467
|
+
"Content-Type": "application/json",
|
|
15468
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
15469
|
+
**(headers or {}),
|
|
15470
|
+
}
|
|
15238
15471
|
|
|
15239
15472
|
json = kwargs if data is UNSET else data
|
|
15240
|
-
|
|
15473
|
+
if self._github.config.rest_api_validate_body:
|
|
15474
|
+
json = type_validate_python(ReposOwnerRepoStatusesShaPostBody, json)
|
|
15241
15475
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
15242
15476
|
|
|
15243
15477
|
return await self._github.arequest(
|
|
@@ -15408,13 +15642,15 @@ class ReposClient:
|
|
|
15408
15642
|
|
|
15409
15643
|
url = f"/repos/{owner}/{repo}/tags/protection"
|
|
15410
15644
|
|
|
15411
|
-
headers = {
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15645
|
+
headers = {
|
|
15646
|
+
"Content-Type": "application/json",
|
|
15647
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
15648
|
+
**(headers or {}),
|
|
15649
|
+
}
|
|
15415
15650
|
|
|
15416
15651
|
json = kwargs if data is UNSET else data
|
|
15417
|
-
|
|
15652
|
+
if self._github.config.rest_api_validate_body:
|
|
15653
|
+
json = type_validate_python(ReposOwnerRepoTagsProtectionPostBody, json)
|
|
15418
15654
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
15419
15655
|
|
|
15420
15656
|
return self._github.request(
|
|
@@ -15469,13 +15705,15 @@ class ReposClient:
|
|
|
15469
15705
|
|
|
15470
15706
|
url = f"/repos/{owner}/{repo}/tags/protection"
|
|
15471
15707
|
|
|
15472
|
-
headers = {
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15708
|
+
headers = {
|
|
15709
|
+
"Content-Type": "application/json",
|
|
15710
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
15711
|
+
**(headers or {}),
|
|
15712
|
+
}
|
|
15476
15713
|
|
|
15477
15714
|
json = kwargs if data is UNSET else data
|
|
15478
|
-
|
|
15715
|
+
if self._github.config.rest_api_validate_body:
|
|
15716
|
+
json = type_validate_python(ReposOwnerRepoTagsProtectionPostBody, json)
|
|
15479
15717
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
15480
15718
|
|
|
15481
15719
|
return await self._github.arequest(
|
|
@@ -15759,13 +15997,15 @@ class ReposClient:
|
|
|
15759
15997
|
|
|
15760
15998
|
url = f"/repos/{owner}/{repo}/topics"
|
|
15761
15999
|
|
|
15762
|
-
headers = {
|
|
15763
|
-
|
|
15764
|
-
|
|
15765
|
-
|
|
16000
|
+
headers = {
|
|
16001
|
+
"Content-Type": "application/json",
|
|
16002
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16003
|
+
**(headers or {}),
|
|
16004
|
+
}
|
|
15766
16005
|
|
|
15767
16006
|
json = kwargs if data is UNSET else data
|
|
15768
|
-
|
|
16007
|
+
if self._github.config.rest_api_validate_body:
|
|
16008
|
+
json = type_validate_python(ReposOwnerRepoTopicsPutBody, json)
|
|
15769
16009
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
15770
16010
|
|
|
15771
16011
|
return self._github.request(
|
|
@@ -15821,13 +16061,15 @@ class ReposClient:
|
|
|
15821
16061
|
|
|
15822
16062
|
url = f"/repos/{owner}/{repo}/topics"
|
|
15823
16063
|
|
|
15824
|
-
headers = {
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
16064
|
+
headers = {
|
|
16065
|
+
"Content-Type": "application/json",
|
|
16066
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16067
|
+
**(headers or {}),
|
|
16068
|
+
}
|
|
15828
16069
|
|
|
15829
16070
|
json = kwargs if data is UNSET else data
|
|
15830
|
-
|
|
16071
|
+
if self._github.config.rest_api_validate_body:
|
|
16072
|
+
json = type_validate_python(ReposOwnerRepoTopicsPutBody, json)
|
|
15831
16073
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
15832
16074
|
|
|
15833
16075
|
return await self._github.arequest(
|
|
@@ -16112,13 +16354,15 @@ class ReposClient:
|
|
|
16112
16354
|
|
|
16113
16355
|
url = f"/repos/{owner}/{repo}/transfer"
|
|
16114
16356
|
|
|
16115
|
-
headers = {
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16357
|
+
headers = {
|
|
16358
|
+
"Content-Type": "application/json",
|
|
16359
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16360
|
+
**(headers or {}),
|
|
16361
|
+
}
|
|
16119
16362
|
|
|
16120
16363
|
json = kwargs if data is UNSET else data
|
|
16121
|
-
|
|
16364
|
+
if self._github.config.rest_api_validate_body:
|
|
16365
|
+
json = type_validate_python(ReposOwnerRepoTransferPostBody, json)
|
|
16122
16366
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
16123
16367
|
|
|
16124
16368
|
return self._github.request(
|
|
@@ -16167,13 +16411,15 @@ class ReposClient:
|
|
|
16167
16411
|
|
|
16168
16412
|
url = f"/repos/{owner}/{repo}/transfer"
|
|
16169
16413
|
|
|
16170
|
-
headers = {
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
16414
|
+
headers = {
|
|
16415
|
+
"Content-Type": "application/json",
|
|
16416
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16417
|
+
**(headers or {}),
|
|
16418
|
+
}
|
|
16174
16419
|
|
|
16175
16420
|
json = kwargs if data is UNSET else data
|
|
16176
|
-
|
|
16421
|
+
if self._github.config.rest_api_validate_body:
|
|
16422
|
+
json = type_validate_python(ReposOwnerRepoTransferPostBody, json)
|
|
16177
16423
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
16178
16424
|
|
|
16179
16425
|
return await self._github.arequest(
|
|
@@ -16383,15 +16629,17 @@ class ReposClient:
|
|
|
16383
16629
|
|
|
16384
16630
|
url = f"/repos/{template_owner}/{template_repo}/generate"
|
|
16385
16631
|
|
|
16386
|
-
headers = {
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16632
|
+
headers = {
|
|
16633
|
+
"Content-Type": "application/json",
|
|
16634
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16635
|
+
**(headers or {}),
|
|
16636
|
+
}
|
|
16390
16637
|
|
|
16391
16638
|
json = kwargs if data is UNSET else data
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16639
|
+
if self._github.config.rest_api_validate_body:
|
|
16640
|
+
json = type_validate_python(
|
|
16641
|
+
ReposTemplateOwnerTemplateRepoGeneratePostBody, json
|
|
16642
|
+
)
|
|
16395
16643
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
16396
16644
|
|
|
16397
16645
|
return self._github.request(
|
|
@@ -16445,15 +16693,17 @@ class ReposClient:
|
|
|
16445
16693
|
|
|
16446
16694
|
url = f"/repos/{template_owner}/{template_repo}/generate"
|
|
16447
16695
|
|
|
16448
|
-
headers = {
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
|
|
16696
|
+
headers = {
|
|
16697
|
+
"Content-Type": "application/json",
|
|
16698
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16699
|
+
**(headers or {}),
|
|
16700
|
+
}
|
|
16452
16701
|
|
|
16453
16702
|
json = kwargs if data is UNSET else data
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16703
|
+
if self._github.config.rest_api_validate_body:
|
|
16704
|
+
json = type_validate_python(
|
|
16705
|
+
ReposTemplateOwnerTemplateRepoGeneratePostBody, json
|
|
16706
|
+
)
|
|
16457
16707
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
16458
16708
|
|
|
16459
16709
|
return await self._github.arequest(
|
|
@@ -16682,13 +16932,15 @@ class ReposClient:
|
|
|
16682
16932
|
|
|
16683
16933
|
url = "/user/repos"
|
|
16684
16934
|
|
|
16685
|
-
headers = {
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
-
|
|
16935
|
+
headers = {
|
|
16936
|
+
"Content-Type": "application/json",
|
|
16937
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
16938
|
+
**(headers or {}),
|
|
16939
|
+
}
|
|
16689
16940
|
|
|
16690
16941
|
json = kwargs if data is UNSET else data
|
|
16691
|
-
|
|
16942
|
+
if self._github.config.rest_api_validate_body:
|
|
16943
|
+
json = type_validate_python(UserReposPostBody, json)
|
|
16692
16944
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
16693
16945
|
|
|
16694
16946
|
return self._github.request(
|
|
@@ -16764,13 +17016,15 @@ class ReposClient:
|
|
|
16764
17016
|
|
|
16765
17017
|
url = "/user/repos"
|
|
16766
17018
|
|
|
16767
|
-
headers = {
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
17019
|
+
headers = {
|
|
17020
|
+
"Content-Type": "application/json",
|
|
17021
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
17022
|
+
**(headers or {}),
|
|
17023
|
+
}
|
|
16771
17024
|
|
|
16772
17025
|
json = kwargs if data is UNSET else data
|
|
16773
|
-
|
|
17026
|
+
if self._github.config.rest_api_validate_body:
|
|
17027
|
+
json = type_validate_python(UserReposPostBody, json)
|
|
16774
17028
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
16775
17029
|
|
|
16776
17030
|
return await self._github.arequest(
|