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
|
@@ -331,13 +331,15 @@ class OrgsClient:
|
|
|
331
331
|
|
|
332
332
|
url = f"/orgs/{org}"
|
|
333
333
|
|
|
334
|
-
headers = {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
headers = {
|
|
335
|
+
"Content-Type": "application/json",
|
|
336
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
337
|
+
**(headers or {}),
|
|
338
|
+
}
|
|
338
339
|
|
|
339
340
|
json = kwargs if data is UNSET else data
|
|
340
|
-
|
|
341
|
+
if self._github.config.rest_api_validate_body:
|
|
342
|
+
json = type_validate_python(OrgsOrgPatchBody, json)
|
|
341
343
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
342
344
|
|
|
343
345
|
return self._github.request(
|
|
@@ -427,13 +429,15 @@ class OrgsClient:
|
|
|
427
429
|
|
|
428
430
|
url = f"/orgs/{org}"
|
|
429
431
|
|
|
430
|
-
headers = {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
headers = {
|
|
433
|
+
"Content-Type": "application/json",
|
|
434
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
435
|
+
**(headers or {}),
|
|
436
|
+
}
|
|
434
437
|
|
|
435
438
|
json = kwargs if data is UNSET else data
|
|
436
|
-
|
|
439
|
+
if self._github.config.rest_api_validate_body:
|
|
440
|
+
json = type_validate_python(OrgsOrgPatchBody, json)
|
|
437
441
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
438
442
|
|
|
439
443
|
return await self._github.arequest(
|
|
@@ -880,13 +884,15 @@ class OrgsClient:
|
|
|
880
884
|
|
|
881
885
|
url = f"/orgs/{org}/hooks"
|
|
882
886
|
|
|
883
|
-
headers = {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
+
headers = {
|
|
888
|
+
"Content-Type": "application/json",
|
|
889
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
890
|
+
**(headers or {}),
|
|
891
|
+
}
|
|
887
892
|
|
|
888
893
|
json = kwargs if data is UNSET else data
|
|
889
|
-
|
|
894
|
+
if self._github.config.rest_api_validate_body:
|
|
895
|
+
json = type_validate_python(OrgsOrgHooksPostBody, json)
|
|
890
896
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
891
897
|
|
|
892
898
|
return self._github.request(
|
|
@@ -937,13 +943,15 @@ class OrgsClient:
|
|
|
937
943
|
|
|
938
944
|
url = f"/orgs/{org}/hooks"
|
|
939
945
|
|
|
940
|
-
headers = {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
946
|
+
headers = {
|
|
947
|
+
"Content-Type": "application/json",
|
|
948
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
949
|
+
**(headers or {}),
|
|
950
|
+
}
|
|
944
951
|
|
|
945
952
|
json = kwargs if data is UNSET else data
|
|
946
|
-
|
|
953
|
+
if self._github.config.rest_api_validate_body:
|
|
954
|
+
json = type_validate_python(OrgsOrgHooksPostBody, json)
|
|
947
955
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
948
956
|
|
|
949
957
|
return await self._github.arequest(
|
|
@@ -1100,13 +1108,15 @@ class OrgsClient:
|
|
|
1100
1108
|
|
|
1101
1109
|
url = f"/orgs/{org}/hooks/{hook_id}"
|
|
1102
1110
|
|
|
1103
|
-
headers = {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1111
|
+
headers = {
|
|
1112
|
+
"Content-Type": "application/json",
|
|
1113
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1114
|
+
**(headers or {}),
|
|
1115
|
+
}
|
|
1107
1116
|
|
|
1108
1117
|
json = kwargs if data is UNSET else data
|
|
1109
|
-
|
|
1118
|
+
if self._github.config.rest_api_validate_body:
|
|
1119
|
+
json = type_validate_python(OrgsOrgHooksHookIdPatchBody, json)
|
|
1110
1120
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1111
1121
|
|
|
1112
1122
|
return self._github.request(
|
|
@@ -1165,13 +1175,15 @@ class OrgsClient:
|
|
|
1165
1175
|
|
|
1166
1176
|
url = f"/orgs/{org}/hooks/{hook_id}"
|
|
1167
1177
|
|
|
1168
|
-
headers = {
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1178
|
+
headers = {
|
|
1179
|
+
"Content-Type": "application/json",
|
|
1180
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1181
|
+
**(headers or {}),
|
|
1182
|
+
}
|
|
1172
1183
|
|
|
1173
1184
|
json = kwargs if data is UNSET else data
|
|
1174
|
-
|
|
1185
|
+
if self._github.config.rest_api_validate_body:
|
|
1186
|
+
json = type_validate_python(OrgsOrgHooksHookIdPatchBody, json)
|
|
1175
1187
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1176
1188
|
|
|
1177
1189
|
return await self._github.arequest(
|
|
@@ -1269,13 +1281,15 @@ class OrgsClient:
|
|
|
1269
1281
|
|
|
1270
1282
|
url = f"/orgs/{org}/hooks/{hook_id}/config"
|
|
1271
1283
|
|
|
1272
|
-
headers = {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1284
|
+
headers = {
|
|
1285
|
+
"Content-Type": "application/json",
|
|
1286
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1287
|
+
**(headers or {}),
|
|
1288
|
+
}
|
|
1276
1289
|
|
|
1277
1290
|
json = kwargs if data is UNSET else data
|
|
1278
|
-
|
|
1291
|
+
if self._github.config.rest_api_validate_body:
|
|
1292
|
+
json = type_validate_python(OrgsOrgHooksHookIdConfigPatchBody, json)
|
|
1279
1293
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1280
1294
|
|
|
1281
1295
|
return self._github.request(
|
|
@@ -1325,13 +1339,15 @@ class OrgsClient:
|
|
|
1325
1339
|
|
|
1326
1340
|
url = f"/orgs/{org}/hooks/{hook_id}/config"
|
|
1327
1341
|
|
|
1328
|
-
headers = {
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1342
|
+
headers = {
|
|
1343
|
+
"Content-Type": "application/json",
|
|
1344
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1345
|
+
**(headers or {}),
|
|
1346
|
+
}
|
|
1332
1347
|
|
|
1333
1348
|
json = kwargs if data is UNSET else data
|
|
1334
|
-
|
|
1349
|
+
if self._github.config.rest_api_validate_body:
|
|
1350
|
+
json = type_validate_python(OrgsOrgHooksHookIdConfigPatchBody, json)
|
|
1335
1351
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1336
1352
|
|
|
1337
1353
|
return await self._github.arequest(
|
|
@@ -1767,13 +1783,15 @@ class OrgsClient:
|
|
|
1767
1783
|
|
|
1768
1784
|
url = f"/orgs/{org}/invitations"
|
|
1769
1785
|
|
|
1770
|
-
headers = {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1786
|
+
headers = {
|
|
1787
|
+
"Content-Type": "application/json",
|
|
1788
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1789
|
+
**(headers or {}),
|
|
1790
|
+
}
|
|
1774
1791
|
|
|
1775
1792
|
json = kwargs if data is UNSET else data
|
|
1776
|
-
|
|
1793
|
+
if self._github.config.rest_api_validate_body:
|
|
1794
|
+
json = type_validate_python(OrgsOrgInvitationsPostBody, json)
|
|
1777
1795
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1778
1796
|
|
|
1779
1797
|
return self._github.request(
|
|
@@ -1831,13 +1849,15 @@ class OrgsClient:
|
|
|
1831
1849
|
|
|
1832
1850
|
url = f"/orgs/{org}/invitations"
|
|
1833
1851
|
|
|
1834
|
-
headers = {
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1852
|
+
headers = {
|
|
1853
|
+
"Content-Type": "application/json",
|
|
1854
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1855
|
+
**(headers or {}),
|
|
1856
|
+
}
|
|
1838
1857
|
|
|
1839
1858
|
json = kwargs if data is UNSET else data
|
|
1840
|
-
|
|
1859
|
+
if self._github.config.rest_api_validate_body:
|
|
1860
|
+
json = type_validate_python(OrgsOrgInvitationsPostBody, json)
|
|
1841
1861
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1842
1862
|
|
|
1843
1863
|
return await self._github.arequest(
|
|
@@ -2229,13 +2249,15 @@ class OrgsClient:
|
|
|
2229
2249
|
|
|
2230
2250
|
url = f"/orgs/{org}/memberships/{username}"
|
|
2231
2251
|
|
|
2232
|
-
headers = {
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2252
|
+
headers = {
|
|
2253
|
+
"Content-Type": "application/json",
|
|
2254
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2255
|
+
**(headers or {}),
|
|
2256
|
+
}
|
|
2236
2257
|
|
|
2237
2258
|
json = kwargs if data is UNSET else data
|
|
2238
|
-
|
|
2259
|
+
if self._github.config.rest_api_validate_body:
|
|
2260
|
+
json = type_validate_python(OrgsOrgMembershipsUsernamePutBody, json)
|
|
2239
2261
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2240
2262
|
|
|
2241
2263
|
return self._github.request(
|
|
@@ -2291,13 +2313,15 @@ class OrgsClient:
|
|
|
2291
2313
|
|
|
2292
2314
|
url = f"/orgs/{org}/memberships/{username}"
|
|
2293
2315
|
|
|
2294
|
-
headers = {
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2316
|
+
headers = {
|
|
2317
|
+
"Content-Type": "application/json",
|
|
2318
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2319
|
+
**(headers or {}),
|
|
2320
|
+
}
|
|
2298
2321
|
|
|
2299
2322
|
json = kwargs if data is UNSET else data
|
|
2300
|
-
|
|
2323
|
+
if self._github.config.rest_api_validate_body:
|
|
2324
|
+
json = type_validate_python(OrgsOrgMembershipsUsernamePutBody, json)
|
|
2301
2325
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2302
2326
|
|
|
2303
2327
|
return await self._github.arequest(
|
|
@@ -2950,13 +2974,17 @@ class OrgsClient:
|
|
|
2950
2974
|
|
|
2951
2975
|
url = f"/orgs/{org}/outside_collaborators/{username}"
|
|
2952
2976
|
|
|
2953
|
-
headers = {
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2977
|
+
headers = {
|
|
2978
|
+
"Content-Type": "application/json",
|
|
2979
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2980
|
+
**(headers or {}),
|
|
2981
|
+
}
|
|
2957
2982
|
|
|
2958
2983
|
json = kwargs if data is UNSET else data
|
|
2959
|
-
|
|
2984
|
+
if self._github.config.rest_api_validate_body:
|
|
2985
|
+
json = type_validate_python(
|
|
2986
|
+
OrgsOrgOutsideCollaboratorsUsernamePutBody, json
|
|
2987
|
+
)
|
|
2960
2988
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2961
2989
|
|
|
2962
2990
|
return self._github.request(
|
|
@@ -3010,13 +3038,17 @@ class OrgsClient:
|
|
|
3010
3038
|
|
|
3011
3039
|
url = f"/orgs/{org}/outside_collaborators/{username}"
|
|
3012
3040
|
|
|
3013
|
-
headers = {
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3041
|
+
headers = {
|
|
3042
|
+
"Content-Type": "application/json",
|
|
3043
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3044
|
+
**(headers or {}),
|
|
3045
|
+
}
|
|
3017
3046
|
|
|
3018
3047
|
json = kwargs if data is UNSET else data
|
|
3019
|
-
|
|
3048
|
+
if self._github.config.rest_api_validate_body:
|
|
3049
|
+
json = type_validate_python(
|
|
3050
|
+
OrgsOrgOutsideCollaboratorsUsernamePutBody, json
|
|
3051
|
+
)
|
|
3020
3052
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3021
3053
|
|
|
3022
3054
|
return await self._github.arequest(
|
|
@@ -3228,13 +3260,17 @@ class OrgsClient:
|
|
|
3228
3260
|
|
|
3229
3261
|
url = f"/orgs/{org}/personal-access-token-requests"
|
|
3230
3262
|
|
|
3231
|
-
headers = {
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3263
|
+
headers = {
|
|
3264
|
+
"Content-Type": "application/json",
|
|
3265
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3266
|
+
**(headers or {}),
|
|
3267
|
+
}
|
|
3235
3268
|
|
|
3236
3269
|
json = kwargs if data is UNSET else data
|
|
3237
|
-
|
|
3270
|
+
if self._github.config.rest_api_validate_body:
|
|
3271
|
+
json = type_validate_python(
|
|
3272
|
+
OrgsOrgPersonalAccessTokenRequestsPostBody, json
|
|
3273
|
+
)
|
|
3238
3274
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3239
3275
|
|
|
3240
3276
|
return self._github.request(
|
|
@@ -3291,13 +3327,17 @@ class OrgsClient:
|
|
|
3291
3327
|
|
|
3292
3328
|
url = f"/orgs/{org}/personal-access-token-requests"
|
|
3293
3329
|
|
|
3294
|
-
headers = {
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3330
|
+
headers = {
|
|
3331
|
+
"Content-Type": "application/json",
|
|
3332
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3333
|
+
**(headers or {}),
|
|
3334
|
+
}
|
|
3298
3335
|
|
|
3299
3336
|
json = kwargs if data is UNSET else data
|
|
3300
|
-
|
|
3337
|
+
if self._github.config.rest_api_validate_body:
|
|
3338
|
+
json = type_validate_python(
|
|
3339
|
+
OrgsOrgPersonalAccessTokenRequestsPostBody, json
|
|
3340
|
+
)
|
|
3301
3341
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3302
3342
|
|
|
3303
3343
|
return await self._github.arequest(
|
|
@@ -3357,15 +3397,17 @@ class OrgsClient:
|
|
|
3357
3397
|
|
|
3358
3398
|
url = f"/orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
3359
3399
|
|
|
3360
|
-
headers = {
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3400
|
+
headers = {
|
|
3401
|
+
"Content-Type": "application/json",
|
|
3402
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3403
|
+
**(headers or {}),
|
|
3404
|
+
}
|
|
3364
3405
|
|
|
3365
3406
|
json = kwargs if data is UNSET else data
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3407
|
+
if self._github.config.rest_api_validate_body:
|
|
3408
|
+
json = type_validate_python(
|
|
3409
|
+
OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, json
|
|
3410
|
+
)
|
|
3369
3411
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3370
3412
|
|
|
3371
3413
|
return self._github.request(
|
|
@@ -3424,15 +3466,17 @@ class OrgsClient:
|
|
|
3424
3466
|
|
|
3425
3467
|
url = f"/orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
3426
3468
|
|
|
3427
|
-
headers = {
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3469
|
+
headers = {
|
|
3470
|
+
"Content-Type": "application/json",
|
|
3471
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3472
|
+
**(headers or {}),
|
|
3473
|
+
}
|
|
3431
3474
|
|
|
3432
3475
|
json = kwargs if data is UNSET else data
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3476
|
+
if self._github.config.rest_api_validate_body:
|
|
3477
|
+
json = type_validate_python(
|
|
3478
|
+
OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, json
|
|
3479
|
+
)
|
|
3436
3480
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3437
3481
|
|
|
3438
3482
|
return await self._github.arequest(
|
|
@@ -3675,13 +3719,15 @@ class OrgsClient:
|
|
|
3675
3719
|
|
|
3676
3720
|
url = f"/orgs/{org}/personal-access-tokens"
|
|
3677
3721
|
|
|
3678
|
-
headers = {
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3722
|
+
headers = {
|
|
3723
|
+
"Content-Type": "application/json",
|
|
3724
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3725
|
+
**(headers or {}),
|
|
3726
|
+
}
|
|
3682
3727
|
|
|
3683
3728
|
json = kwargs if data is UNSET else data
|
|
3684
|
-
|
|
3729
|
+
if self._github.config.rest_api_validate_body:
|
|
3730
|
+
json = type_validate_python(OrgsOrgPersonalAccessTokensPostBody, json)
|
|
3685
3731
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3686
3732
|
|
|
3687
3733
|
return self._github.request(
|
|
@@ -3737,13 +3783,15 @@ class OrgsClient:
|
|
|
3737
3783
|
|
|
3738
3784
|
url = f"/orgs/{org}/personal-access-tokens"
|
|
3739
3785
|
|
|
3740
|
-
headers = {
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3786
|
+
headers = {
|
|
3787
|
+
"Content-Type": "application/json",
|
|
3788
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3789
|
+
**(headers or {}),
|
|
3790
|
+
}
|
|
3744
3791
|
|
|
3745
3792
|
json = kwargs if data is UNSET else data
|
|
3746
|
-
|
|
3793
|
+
if self._github.config.rest_api_validate_body:
|
|
3794
|
+
json = type_validate_python(OrgsOrgPersonalAccessTokensPostBody, json)
|
|
3747
3795
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3748
3796
|
|
|
3749
3797
|
return await self._github.arequest(
|
|
@@ -3800,13 +3848,15 @@ class OrgsClient:
|
|
|
3800
3848
|
|
|
3801
3849
|
url = f"/orgs/{org}/personal-access-tokens/{pat_id}"
|
|
3802
3850
|
|
|
3803
|
-
headers = {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3851
|
+
headers = {
|
|
3852
|
+
"Content-Type": "application/json",
|
|
3853
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3854
|
+
**(headers or {}),
|
|
3855
|
+
}
|
|
3807
3856
|
|
|
3808
3857
|
json = kwargs if data is UNSET else data
|
|
3809
|
-
|
|
3858
|
+
if self._github.config.rest_api_validate_body:
|
|
3859
|
+
json = type_validate_python(OrgsOrgPersonalAccessTokensPatIdPostBody, json)
|
|
3810
3860
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3811
3861
|
|
|
3812
3862
|
return self._github.request(
|
|
@@ -3862,13 +3912,15 @@ class OrgsClient:
|
|
|
3862
3912
|
|
|
3863
3913
|
url = f"/orgs/{org}/personal-access-tokens/{pat_id}"
|
|
3864
3914
|
|
|
3865
|
-
headers = {
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3915
|
+
headers = {
|
|
3916
|
+
"Content-Type": "application/json",
|
|
3917
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3918
|
+
**(headers or {}),
|
|
3919
|
+
}
|
|
3869
3920
|
|
|
3870
3921
|
json = kwargs if data is UNSET else data
|
|
3871
|
-
|
|
3922
|
+
if self._github.config.rest_api_validate_body:
|
|
3923
|
+
json = type_validate_python(OrgsOrgPersonalAccessTokensPatIdPostBody, json)
|
|
3872
3924
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3873
3925
|
|
|
3874
3926
|
return await self._github.arequest(
|
|
@@ -4051,13 +4103,15 @@ class OrgsClient:
|
|
|
4051
4103
|
|
|
4052
4104
|
url = f"/orgs/{org}/properties/schema"
|
|
4053
4105
|
|
|
4054
|
-
headers = {
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4106
|
+
headers = {
|
|
4107
|
+
"Content-Type": "application/json",
|
|
4108
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4109
|
+
**(headers or {}),
|
|
4110
|
+
}
|
|
4058
4111
|
|
|
4059
4112
|
json = kwargs if data is UNSET else data
|
|
4060
|
-
|
|
4113
|
+
if self._github.config.rest_api_validate_body:
|
|
4114
|
+
json = type_validate_python(OrgsOrgPropertiesSchemaPatchBody, json)
|
|
4061
4115
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4062
4116
|
|
|
4063
4117
|
return self._github.request(
|
|
@@ -4111,13 +4165,15 @@ class OrgsClient:
|
|
|
4111
4165
|
|
|
4112
4166
|
url = f"/orgs/{org}/properties/schema"
|
|
4113
4167
|
|
|
4114
|
-
headers = {
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4168
|
+
headers = {
|
|
4169
|
+
"Content-Type": "application/json",
|
|
4170
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4171
|
+
**(headers or {}),
|
|
4172
|
+
}
|
|
4118
4173
|
|
|
4119
4174
|
json = kwargs if data is UNSET else data
|
|
4120
|
-
|
|
4175
|
+
if self._github.config.rest_api_validate_body:
|
|
4176
|
+
json = type_validate_python(OrgsOrgPropertiesSchemaPatchBody, json)
|
|
4121
4177
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4122
4178
|
|
|
4123
4179
|
return await self._github.arequest(
|
|
@@ -4228,15 +4284,17 @@ class OrgsClient:
|
|
|
4228
4284
|
|
|
4229
4285
|
url = f"/orgs/{org}/properties/schema/{custom_property_name}"
|
|
4230
4286
|
|
|
4231
|
-
headers = {
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4287
|
+
headers = {
|
|
4288
|
+
"Content-Type": "application/json",
|
|
4289
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4290
|
+
**(headers or {}),
|
|
4291
|
+
}
|
|
4235
4292
|
|
|
4236
4293
|
json = kwargs if data is UNSET else data
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4294
|
+
if self._github.config.rest_api_validate_body:
|
|
4295
|
+
json = type_validate_python(
|
|
4296
|
+
OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, json
|
|
4297
|
+
)
|
|
4240
4298
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4241
4299
|
|
|
4242
4300
|
return self._github.request(
|
|
@@ -4295,15 +4353,17 @@ class OrgsClient:
|
|
|
4295
4353
|
|
|
4296
4354
|
url = f"/orgs/{org}/properties/schema/{custom_property_name}"
|
|
4297
4355
|
|
|
4298
|
-
headers = {
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4356
|
+
headers = {
|
|
4357
|
+
"Content-Type": "application/json",
|
|
4358
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4359
|
+
**(headers or {}),
|
|
4360
|
+
}
|
|
4302
4361
|
|
|
4303
4362
|
json = kwargs if data is UNSET else data
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4363
|
+
if self._github.config.rest_api_validate_body:
|
|
4364
|
+
json = type_validate_python(
|
|
4365
|
+
OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, json
|
|
4366
|
+
)
|
|
4307
4367
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4308
4368
|
|
|
4309
4369
|
return await self._github.arequest(
|
|
@@ -4480,13 +4540,15 @@ class OrgsClient:
|
|
|
4480
4540
|
|
|
4481
4541
|
url = f"/orgs/{org}/properties/values"
|
|
4482
4542
|
|
|
4483
|
-
headers = {
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4543
|
+
headers = {
|
|
4544
|
+
"Content-Type": "application/json",
|
|
4545
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4546
|
+
**(headers or {}),
|
|
4547
|
+
}
|
|
4487
4548
|
|
|
4488
4549
|
json = kwargs if data is UNSET else data
|
|
4489
|
-
|
|
4550
|
+
if self._github.config.rest_api_validate_body:
|
|
4551
|
+
json = type_validate_python(OrgsOrgPropertiesValuesPatchBody, json)
|
|
4490
4552
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4491
4553
|
|
|
4492
4554
|
return self._github.request(
|
|
@@ -4539,13 +4601,15 @@ class OrgsClient:
|
|
|
4539
4601
|
|
|
4540
4602
|
url = f"/orgs/{org}/properties/values"
|
|
4541
4603
|
|
|
4542
|
-
headers = {
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4604
|
+
headers = {
|
|
4605
|
+
"Content-Type": "application/json",
|
|
4606
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4607
|
+
**(headers or {}),
|
|
4608
|
+
}
|
|
4546
4609
|
|
|
4547
4610
|
json = kwargs if data is UNSET else data
|
|
4548
|
-
|
|
4611
|
+
if self._github.config.rest_api_validate_body:
|
|
4612
|
+
json = type_validate_python(OrgsOrgPropertiesValuesPatchBody, json)
|
|
4549
4613
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4550
4614
|
|
|
4551
4615
|
return await self._github.arequest(
|
|
@@ -4933,13 +4997,15 @@ class OrgsClient:
|
|
|
4933
4997
|
|
|
4934
4998
|
url = f"/orgs/{org}/{security_product}/{enablement}"
|
|
4935
4999
|
|
|
4936
|
-
headers = {
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
5000
|
+
headers = {
|
|
5001
|
+
"Content-Type": "application/json",
|
|
5002
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5003
|
+
**(headers or {}),
|
|
5004
|
+
}
|
|
4940
5005
|
|
|
4941
5006
|
json = kwargs if data is UNSET else data
|
|
4942
|
-
|
|
5007
|
+
if self._github.config.rest_api_validate_body:
|
|
5008
|
+
json = type_validate_python(OrgsOrgSecurityProductEnablementPostBody, json)
|
|
4943
5009
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4944
5010
|
|
|
4945
5011
|
return self._github.request(
|
|
@@ -5013,13 +5079,15 @@ class OrgsClient:
|
|
|
5013
5079
|
|
|
5014
5080
|
url = f"/orgs/{org}/{security_product}/{enablement}"
|
|
5015
5081
|
|
|
5016
|
-
headers = {
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5082
|
+
headers = {
|
|
5083
|
+
"Content-Type": "application/json",
|
|
5084
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5085
|
+
**(headers or {}),
|
|
5086
|
+
}
|
|
5020
5087
|
|
|
5021
5088
|
json = kwargs if data is UNSET else data
|
|
5022
|
-
|
|
5089
|
+
if self._github.config.rest_api_validate_body:
|
|
5090
|
+
json = type_validate_python(OrgsOrgSecurityProductEnablementPostBody, json)
|
|
5023
5091
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5024
5092
|
|
|
5025
5093
|
return await self._github.arequest(
|
|
@@ -5192,13 +5260,15 @@ class OrgsClient:
|
|
|
5192
5260
|
|
|
5193
5261
|
url = f"/user/memberships/orgs/{org}"
|
|
5194
5262
|
|
|
5195
|
-
headers = {
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5263
|
+
headers = {
|
|
5264
|
+
"Content-Type": "application/json",
|
|
5265
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5266
|
+
**(headers or {}),
|
|
5267
|
+
}
|
|
5199
5268
|
|
|
5200
5269
|
json = kwargs if data is UNSET else data
|
|
5201
|
-
|
|
5270
|
+
if self._github.config.rest_api_validate_body:
|
|
5271
|
+
json = type_validate_python(UserMembershipsOrgsOrgPatchBody, json)
|
|
5202
5272
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5203
5273
|
|
|
5204
5274
|
return self._github.request(
|
|
@@ -5252,13 +5322,15 @@ class OrgsClient:
|
|
|
5252
5322
|
|
|
5253
5323
|
url = f"/user/memberships/orgs/{org}"
|
|
5254
5324
|
|
|
5255
|
-
headers = {
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5325
|
+
headers = {
|
|
5326
|
+
"Content-Type": "application/json",
|
|
5327
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5328
|
+
**(headers or {}),
|
|
5329
|
+
}
|
|
5259
5330
|
|
|
5260
5331
|
json = kwargs if data is UNSET else data
|
|
5261
|
-
|
|
5332
|
+
if self._github.config.rest_api_validate_body:
|
|
5333
|
+
json = type_validate_python(UserMembershipsOrgsOrgPatchBody, json)
|
|
5262
5334
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5263
5335
|
|
|
5264
5336
|
return await self._github.arequest(
|