GitHubKit 0.11.12__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_0051.py +5 -1
- githubkit/versions/ghec_v2022_11_28/models/group_0088.py +0 -1
- githubkit/versions/ghec_v2022_11_28/models/group_0098.py +4 -0
- githubkit/versions/ghec_v2022_11_28/models/group_1010.py +3 -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 +83 -66
- 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 +1035 -800
- 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_0051.py +2 -1
- githubkit/versions/ghec_v2022_11_28/types/group_0088.py +0 -1
- githubkit/versions/ghec_v2022_11_28/types/group_0098.py +1 -0
- githubkit/versions/ghec_v2022_11_28/types/group_1010.py +3 -1
- githubkit/versions/v2022_11_28/models/group_0030.py +5 -1
- githubkit/versions/v2022_11_28/models/group_0060.py +0 -1
- githubkit/versions/v2022_11_28/models/group_0082.py +4 -0
- githubkit/versions/v2022_11_28/models/group_0936.py +3 -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 +83 -66
- 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 +1035 -800
- 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_0030.py +2 -1
- githubkit/versions/v2022_11_28/types/group_0060.py +0 -1
- githubkit/versions/v2022_11_28/types/group_0082.py +1 -0
- githubkit/versions/v2022_11_28/types/group_0936.py +3 -1
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/METADATA +3 -2
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/RECORD +78 -78
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/LICENSE +0 -0
|
@@ -215,13 +215,17 @@ class ActionsClient:
|
|
|
215
215
|
|
|
216
216
|
url = f"/enterprises/{enterprise}/actions/oidc/customization/issuer"
|
|
217
217
|
|
|
218
|
-
headers = {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
headers = {
|
|
219
|
+
"Content-Type": "application/json",
|
|
220
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
221
|
+
**(headers or {}),
|
|
222
|
+
}
|
|
222
223
|
|
|
223
224
|
json = kwargs if data is UNSET else data
|
|
224
|
-
|
|
225
|
+
if self._github.config.rest_api_validate_body:
|
|
226
|
+
json = type_validate_python(
|
|
227
|
+
ActionsOidcCustomIssuerPolicyForEnterprise, json
|
|
228
|
+
)
|
|
225
229
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
226
230
|
|
|
227
231
|
return self._github.request(
|
|
@@ -264,13 +268,17 @@ class ActionsClient:
|
|
|
264
268
|
|
|
265
269
|
url = f"/enterprises/{enterprise}/actions/oidc/customization/issuer"
|
|
266
270
|
|
|
267
|
-
headers = {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
+
headers = {
|
|
272
|
+
"Content-Type": "application/json",
|
|
273
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
274
|
+
**(headers or {}),
|
|
275
|
+
}
|
|
271
276
|
|
|
272
277
|
json = kwargs if data is UNSET else data
|
|
273
|
-
|
|
278
|
+
if self._github.config.rest_api_validate_body:
|
|
279
|
+
json = type_validate_python(
|
|
280
|
+
ActionsOidcCustomIssuerPolicyForEnterprise, json
|
|
281
|
+
)
|
|
274
282
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
275
283
|
|
|
276
284
|
return await self._github.arequest(
|
|
@@ -356,13 +364,15 @@ class ActionsClient:
|
|
|
356
364
|
|
|
357
365
|
url = f"/enterprises/{enterprise}/actions/permissions/workflow"
|
|
358
366
|
|
|
359
|
-
headers = {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
367
|
+
headers = {
|
|
368
|
+
"Content-Type": "application/json",
|
|
369
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
370
|
+
**(headers or {}),
|
|
371
|
+
}
|
|
363
372
|
|
|
364
373
|
json = kwargs if data is UNSET else data
|
|
365
|
-
|
|
374
|
+
if self._github.config.rest_api_validate_body:
|
|
375
|
+
json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json)
|
|
366
376
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
367
377
|
|
|
368
378
|
return self._github.request(
|
|
@@ -406,13 +416,15 @@ class ActionsClient:
|
|
|
406
416
|
|
|
407
417
|
url = f"/enterprises/{enterprise}/actions/permissions/workflow"
|
|
408
418
|
|
|
409
|
-
headers = {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
419
|
+
headers = {
|
|
420
|
+
"Content-Type": "application/json",
|
|
421
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
422
|
+
**(headers or {}),
|
|
423
|
+
}
|
|
413
424
|
|
|
414
425
|
json = kwargs if data is UNSET else data
|
|
415
|
-
|
|
426
|
+
if self._github.config.rest_api_validate_body:
|
|
427
|
+
json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json)
|
|
416
428
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
417
429
|
|
|
418
430
|
return await self._github.arequest(
|
|
@@ -469,15 +481,17 @@ class ActionsClient:
|
|
|
469
481
|
|
|
470
482
|
url = f"/enterprises/{enterprise}/actions/runners/generate-jitconfig"
|
|
471
483
|
|
|
472
|
-
headers = {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
484
|
+
headers = {
|
|
485
|
+
"Content-Type": "application/json",
|
|
486
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
487
|
+
**(headers or {}),
|
|
488
|
+
}
|
|
476
489
|
|
|
477
490
|
json = kwargs if data is UNSET else data
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
491
|
+
if self._github.config.rest_api_validate_body:
|
|
492
|
+
json = type_validate_python(
|
|
493
|
+
EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, json
|
|
494
|
+
)
|
|
481
495
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
482
496
|
|
|
483
497
|
return self._github.request(
|
|
@@ -539,15 +553,17 @@ class ActionsClient:
|
|
|
539
553
|
|
|
540
554
|
url = f"/enterprises/{enterprise}/actions/runners/generate-jitconfig"
|
|
541
555
|
|
|
542
|
-
headers = {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
556
|
+
headers = {
|
|
557
|
+
"Content-Type": "application/json",
|
|
558
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
559
|
+
**(headers or {}),
|
|
560
|
+
}
|
|
546
561
|
|
|
547
562
|
json = kwargs if data is UNSET else data
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
563
|
+
if self._github.config.rest_api_validate_body:
|
|
564
|
+
json = type_validate_python(
|
|
565
|
+
EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, json
|
|
566
|
+
)
|
|
551
567
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
552
568
|
|
|
553
569
|
return await self._github.arequest(
|
|
@@ -738,13 +754,15 @@ class ActionsClient:
|
|
|
738
754
|
|
|
739
755
|
url = f"/orgs/{org}/actions/permissions"
|
|
740
756
|
|
|
741
|
-
headers = {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
757
|
+
headers = {
|
|
758
|
+
"Content-Type": "application/json",
|
|
759
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
760
|
+
**(headers or {}),
|
|
761
|
+
}
|
|
745
762
|
|
|
746
763
|
json = kwargs if data is UNSET else data
|
|
747
|
-
|
|
764
|
+
if self._github.config.rest_api_validate_body:
|
|
765
|
+
json = type_validate_python(OrgsOrgActionsPermissionsPutBody, json)
|
|
748
766
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
749
767
|
|
|
750
768
|
return self._github.request(
|
|
@@ -788,13 +806,15 @@ class ActionsClient:
|
|
|
788
806
|
|
|
789
807
|
url = f"/orgs/{org}/actions/permissions"
|
|
790
808
|
|
|
791
|
-
headers = {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
809
|
+
headers = {
|
|
810
|
+
"Content-Type": "application/json",
|
|
811
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
812
|
+
**(headers or {}),
|
|
813
|
+
}
|
|
795
814
|
|
|
796
815
|
json = kwargs if data is UNSET else data
|
|
797
|
-
|
|
816
|
+
if self._github.config.rest_api_validate_body:
|
|
817
|
+
json = type_validate_python(OrgsOrgActionsPermissionsPutBody, json)
|
|
798
818
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
799
819
|
|
|
800
820
|
return await self._github.arequest(
|
|
@@ -895,13 +915,17 @@ class ActionsClient:
|
|
|
895
915
|
|
|
896
916
|
url = f"/orgs/{org}/actions/permissions/repositories"
|
|
897
917
|
|
|
898
|
-
headers = {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
918
|
+
headers = {
|
|
919
|
+
"Content-Type": "application/json",
|
|
920
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
921
|
+
**(headers or {}),
|
|
922
|
+
}
|
|
902
923
|
|
|
903
924
|
json = kwargs if data is UNSET else data
|
|
904
|
-
|
|
925
|
+
if self._github.config.rest_api_validate_body:
|
|
926
|
+
json = type_validate_python(
|
|
927
|
+
OrgsOrgActionsPermissionsRepositoriesPutBody, json
|
|
928
|
+
)
|
|
905
929
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
906
930
|
|
|
907
931
|
return self._github.request(
|
|
@@ -944,13 +968,17 @@ class ActionsClient:
|
|
|
944
968
|
|
|
945
969
|
url = f"/orgs/{org}/actions/permissions/repositories"
|
|
946
970
|
|
|
947
|
-
headers = {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
971
|
+
headers = {
|
|
972
|
+
"Content-Type": "application/json",
|
|
973
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
974
|
+
**(headers or {}),
|
|
975
|
+
}
|
|
951
976
|
|
|
952
977
|
json = kwargs if data is UNSET else data
|
|
953
|
-
|
|
978
|
+
if self._github.config.rest_api_validate_body:
|
|
979
|
+
json = type_validate_python(
|
|
980
|
+
OrgsOrgActionsPermissionsRepositoriesPutBody, json
|
|
981
|
+
)
|
|
954
982
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
955
983
|
|
|
956
984
|
return await self._github.arequest(
|
|
@@ -1113,13 +1141,15 @@ class ActionsClient:
|
|
|
1113
1141
|
|
|
1114
1142
|
url = f"/orgs/{org}/actions/permissions/selected-actions"
|
|
1115
1143
|
|
|
1116
|
-
headers = {
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1144
|
+
headers = {
|
|
1145
|
+
"Content-Type": "application/json",
|
|
1146
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1147
|
+
**(headers or {}),
|
|
1148
|
+
}
|
|
1120
1149
|
|
|
1121
1150
|
json = kwargs if data is UNSET else data
|
|
1122
|
-
|
|
1151
|
+
if self._github.config.rest_api_validate_body:
|
|
1152
|
+
json = type_validate_python(SelectedActions, json)
|
|
1123
1153
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1124
1154
|
|
|
1125
1155
|
return self._github.request(
|
|
@@ -1164,13 +1194,15 @@ class ActionsClient:
|
|
|
1164
1194
|
|
|
1165
1195
|
url = f"/orgs/{org}/actions/permissions/selected-actions"
|
|
1166
1196
|
|
|
1167
|
-
headers = {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1197
|
+
headers = {
|
|
1198
|
+
"Content-Type": "application/json",
|
|
1199
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1200
|
+
**(headers or {}),
|
|
1201
|
+
}
|
|
1171
1202
|
|
|
1172
1203
|
json = kwargs if data is UNSET else data
|
|
1173
|
-
|
|
1204
|
+
if self._github.config.rest_api_validate_body:
|
|
1205
|
+
json = type_validate_python(SelectedActions, json)
|
|
1174
1206
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1175
1207
|
|
|
1176
1208
|
return await self._github.arequest(
|
|
@@ -1256,13 +1288,15 @@ class ActionsClient:
|
|
|
1256
1288
|
|
|
1257
1289
|
url = f"/orgs/{org}/actions/permissions/workflow"
|
|
1258
1290
|
|
|
1259
|
-
headers = {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1291
|
+
headers = {
|
|
1292
|
+
"Content-Type": "application/json",
|
|
1293
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1294
|
+
**(headers or {}),
|
|
1295
|
+
}
|
|
1263
1296
|
|
|
1264
1297
|
json = kwargs if data is UNSET else data
|
|
1265
|
-
|
|
1298
|
+
if self._github.config.rest_api_validate_body:
|
|
1299
|
+
json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json)
|
|
1266
1300
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1267
1301
|
|
|
1268
1302
|
return self._github.request(
|
|
@@ -1307,13 +1341,15 @@ class ActionsClient:
|
|
|
1307
1341
|
|
|
1308
1342
|
url = f"/orgs/{org}/actions/permissions/workflow"
|
|
1309
1343
|
|
|
1310
|
-
headers = {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1344
|
+
headers = {
|
|
1345
|
+
"Content-Type": "application/json",
|
|
1346
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1347
|
+
**(headers or {}),
|
|
1348
|
+
}
|
|
1314
1349
|
|
|
1315
1350
|
json = kwargs if data is UNSET else data
|
|
1316
|
-
|
|
1351
|
+
if self._github.config.rest_api_validate_body:
|
|
1352
|
+
json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json)
|
|
1317
1353
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1318
1354
|
|
|
1319
1355
|
return await self._github.arequest(
|
|
@@ -1425,13 +1461,15 @@ class ActionsClient:
|
|
|
1425
1461
|
|
|
1426
1462
|
url = f"/orgs/{org}/actions/runner-groups"
|
|
1427
1463
|
|
|
1428
|
-
headers = {
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1464
|
+
headers = {
|
|
1465
|
+
"Content-Type": "application/json",
|
|
1466
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1467
|
+
**(headers or {}),
|
|
1468
|
+
}
|
|
1432
1469
|
|
|
1433
1470
|
json = kwargs if data is UNSET else data
|
|
1434
|
-
|
|
1471
|
+
if self._github.config.rest_api_validate_body:
|
|
1472
|
+
json = type_validate_python(OrgsOrgActionsRunnerGroupsPostBody, json)
|
|
1435
1473
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1436
1474
|
|
|
1437
1475
|
return self._github.request(
|
|
@@ -1481,13 +1519,15 @@ class ActionsClient:
|
|
|
1481
1519
|
|
|
1482
1520
|
url = f"/orgs/{org}/actions/runner-groups"
|
|
1483
1521
|
|
|
1484
|
-
headers = {
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1522
|
+
headers = {
|
|
1523
|
+
"Content-Type": "application/json",
|
|
1524
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1525
|
+
**(headers or {}),
|
|
1526
|
+
}
|
|
1488
1527
|
|
|
1489
1528
|
json = kwargs if data is UNSET else data
|
|
1490
|
-
|
|
1529
|
+
if self._github.config.rest_api_validate_body:
|
|
1530
|
+
json = type_validate_python(OrgsOrgActionsRunnerGroupsPostBody, json)
|
|
1491
1531
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1492
1532
|
|
|
1493
1533
|
return await self._github.arequest(
|
|
@@ -1623,15 +1663,17 @@ class ActionsClient:
|
|
|
1623
1663
|
|
|
1624
1664
|
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}"
|
|
1625
1665
|
|
|
1626
|
-
headers = {
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1666
|
+
headers = {
|
|
1667
|
+
"Content-Type": "application/json",
|
|
1668
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1669
|
+
**(headers or {}),
|
|
1670
|
+
}
|
|
1630
1671
|
|
|
1631
1672
|
json = kwargs if data is UNSET else data
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1673
|
+
if self._github.config.rest_api_validate_body:
|
|
1674
|
+
json = type_validate_python(
|
|
1675
|
+
OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, json
|
|
1676
|
+
)
|
|
1635
1677
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1636
1678
|
|
|
1637
1679
|
return self._github.request(
|
|
@@ -1685,15 +1727,17 @@ class ActionsClient:
|
|
|
1685
1727
|
|
|
1686
1728
|
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}"
|
|
1687
1729
|
|
|
1688
|
-
headers = {
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1730
|
+
headers = {
|
|
1731
|
+
"Content-Type": "application/json",
|
|
1732
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1733
|
+
**(headers or {}),
|
|
1734
|
+
}
|
|
1692
1735
|
|
|
1693
1736
|
json = kwargs if data is UNSET else data
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1737
|
+
if self._github.config.rest_api_validate_body:
|
|
1738
|
+
json = type_validate_python(
|
|
1739
|
+
OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, json
|
|
1740
|
+
)
|
|
1697
1741
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1698
1742
|
|
|
1699
1743
|
return await self._github.arequest(
|
|
@@ -1806,15 +1850,17 @@ class ActionsClient:
|
|
|
1806
1850
|
|
|
1807
1851
|
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"
|
|
1808
1852
|
|
|
1809
|
-
headers = {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1853
|
+
headers = {
|
|
1854
|
+
"Content-Type": "application/json",
|
|
1855
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1856
|
+
**(headers or {}),
|
|
1857
|
+
}
|
|
1813
1858
|
|
|
1814
1859
|
json = kwargs if data is UNSET else data
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1860
|
+
if self._github.config.rest_api_validate_body:
|
|
1861
|
+
json = type_validate_python(
|
|
1862
|
+
OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, json
|
|
1863
|
+
)
|
|
1818
1864
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1819
1865
|
|
|
1820
1866
|
return self._github.request(
|
|
@@ -1862,15 +1908,17 @@ class ActionsClient:
|
|
|
1862
1908
|
|
|
1863
1909
|
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"
|
|
1864
1910
|
|
|
1865
|
-
headers = {
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1911
|
+
headers = {
|
|
1912
|
+
"Content-Type": "application/json",
|
|
1913
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1914
|
+
**(headers or {}),
|
|
1915
|
+
}
|
|
1869
1916
|
|
|
1870
1917
|
json = kwargs if data is UNSET else data
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1918
|
+
if self._github.config.rest_api_validate_body:
|
|
1919
|
+
json = type_validate_python(
|
|
1920
|
+
OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, json
|
|
1921
|
+
)
|
|
1874
1922
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1875
1923
|
|
|
1876
1924
|
return await self._github.arequest(
|
|
@@ -2062,15 +2110,17 @@ class ActionsClient:
|
|
|
2062
2110
|
|
|
2063
2111
|
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners"
|
|
2064
2112
|
|
|
2065
|
-
headers = {
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2113
|
+
headers = {
|
|
2114
|
+
"Content-Type": "application/json",
|
|
2115
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2116
|
+
**(headers or {}),
|
|
2117
|
+
}
|
|
2069
2118
|
|
|
2070
2119
|
json = kwargs if data is UNSET else data
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2120
|
+
if self._github.config.rest_api_validate_body:
|
|
2121
|
+
json = type_validate_python(
|
|
2122
|
+
OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, json
|
|
2123
|
+
)
|
|
2074
2124
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2075
2125
|
|
|
2076
2126
|
return self._github.request(
|
|
@@ -2118,15 +2168,17 @@ class ActionsClient:
|
|
|
2118
2168
|
|
|
2119
2169
|
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners"
|
|
2120
2170
|
|
|
2121
|
-
headers = {
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2171
|
+
headers = {
|
|
2172
|
+
"Content-Type": "application/json",
|
|
2173
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2174
|
+
**(headers or {}),
|
|
2175
|
+
}
|
|
2125
2176
|
|
|
2126
2177
|
json = kwargs if data is UNSET else data
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2178
|
+
if self._github.config.rest_api_validate_body:
|
|
2179
|
+
json = type_validate_python(
|
|
2180
|
+
OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, json
|
|
2181
|
+
)
|
|
2130
2182
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2131
2183
|
|
|
2132
2184
|
return await self._github.arequest(
|
|
@@ -2369,15 +2421,17 @@ class ActionsClient:
|
|
|
2369
2421
|
|
|
2370
2422
|
url = f"/orgs/{org}/actions/runners/generate-jitconfig"
|
|
2371
2423
|
|
|
2372
|
-
headers = {
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2424
|
+
headers = {
|
|
2425
|
+
"Content-Type": "application/json",
|
|
2426
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2427
|
+
**(headers or {}),
|
|
2428
|
+
}
|
|
2376
2429
|
|
|
2377
2430
|
json = kwargs if data is UNSET else data
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2431
|
+
if self._github.config.rest_api_validate_body:
|
|
2432
|
+
json = type_validate_python(
|
|
2433
|
+
OrgsOrgActionsRunnersGenerateJitconfigPostBody, json
|
|
2434
|
+
)
|
|
2381
2435
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2382
2436
|
|
|
2383
2437
|
return self._github.request(
|
|
@@ -2437,15 +2491,17 @@ class ActionsClient:
|
|
|
2437
2491
|
|
|
2438
2492
|
url = f"/orgs/{org}/actions/runners/generate-jitconfig"
|
|
2439
2493
|
|
|
2440
|
-
headers = {
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2494
|
+
headers = {
|
|
2495
|
+
"Content-Type": "application/json",
|
|
2496
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2497
|
+
**(headers or {}),
|
|
2498
|
+
}
|
|
2444
2499
|
|
|
2445
2500
|
json = kwargs if data is UNSET else data
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2501
|
+
if self._github.config.rest_api_validate_body:
|
|
2502
|
+
json = type_validate_python(
|
|
2503
|
+
OrgsOrgActionsRunnersGenerateJitconfigPostBody, json
|
|
2504
|
+
)
|
|
2449
2505
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2450
2506
|
|
|
2451
2507
|
return await self._github.arequest(
|
|
@@ -2723,13 +2779,17 @@ class ActionsClient:
|
|
|
2723
2779
|
|
|
2724
2780
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
2725
2781
|
|
|
2726
|
-
headers = {
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2782
|
+
headers = {
|
|
2783
|
+
"Content-Type": "application/json",
|
|
2784
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2785
|
+
**(headers or {}),
|
|
2786
|
+
}
|
|
2730
2787
|
|
|
2731
2788
|
json = kwargs if data is UNSET else data
|
|
2732
|
-
|
|
2789
|
+
if self._github.config.rest_api_validate_body:
|
|
2790
|
+
json = type_validate_python(
|
|
2791
|
+
OrgsOrgActionsRunnersRunnerIdLabelsPutBody, json
|
|
2792
|
+
)
|
|
2733
2793
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2734
2794
|
|
|
2735
2795
|
return self._github.request(
|
|
@@ -2785,13 +2845,17 @@ class ActionsClient:
|
|
|
2785
2845
|
|
|
2786
2846
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
2787
2847
|
|
|
2788
|
-
headers = {
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2848
|
+
headers = {
|
|
2849
|
+
"Content-Type": "application/json",
|
|
2850
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2851
|
+
**(headers or {}),
|
|
2852
|
+
}
|
|
2792
2853
|
|
|
2793
2854
|
json = kwargs if data is UNSET else data
|
|
2794
|
-
|
|
2855
|
+
if self._github.config.rest_api_validate_body:
|
|
2856
|
+
json = type_validate_python(
|
|
2857
|
+
OrgsOrgActionsRunnersRunnerIdLabelsPutBody, json
|
|
2858
|
+
)
|
|
2795
2859
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2796
2860
|
|
|
2797
2861
|
return await self._github.arequest(
|
|
@@ -2847,13 +2911,17 @@ class ActionsClient:
|
|
|
2847
2911
|
|
|
2848
2912
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
2849
2913
|
|
|
2850
|
-
headers = {
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2914
|
+
headers = {
|
|
2915
|
+
"Content-Type": "application/json",
|
|
2916
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2917
|
+
**(headers or {}),
|
|
2918
|
+
}
|
|
2854
2919
|
|
|
2855
2920
|
json = kwargs if data is UNSET else data
|
|
2856
|
-
|
|
2921
|
+
if self._github.config.rest_api_validate_body:
|
|
2922
|
+
json = type_validate_python(
|
|
2923
|
+
OrgsOrgActionsRunnersRunnerIdLabelsPostBody, json
|
|
2924
|
+
)
|
|
2857
2925
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2858
2926
|
|
|
2859
2927
|
return self._github.request(
|
|
@@ -2909,13 +2977,17 @@ class ActionsClient:
|
|
|
2909
2977
|
|
|
2910
2978
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
2911
2979
|
|
|
2912
|
-
headers = {
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2980
|
+
headers = {
|
|
2981
|
+
"Content-Type": "application/json",
|
|
2982
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2983
|
+
**(headers or {}),
|
|
2984
|
+
}
|
|
2916
2985
|
|
|
2917
2986
|
json = kwargs if data is UNSET else data
|
|
2918
|
-
|
|
2987
|
+
if self._github.config.rest_api_validate_body:
|
|
2988
|
+
json = type_validate_python(
|
|
2989
|
+
OrgsOrgActionsRunnersRunnerIdLabelsPostBody, json
|
|
2990
|
+
)
|
|
2919
2991
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
2920
2992
|
|
|
2921
2993
|
return await self._github.arequest(
|
|
@@ -3231,13 +3303,15 @@ class ActionsClient:
|
|
|
3231
3303
|
|
|
3232
3304
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
3233
3305
|
|
|
3234
|
-
headers = {
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3306
|
+
headers = {
|
|
3307
|
+
"Content-Type": "application/json",
|
|
3308
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3309
|
+
**(headers or {}),
|
|
3310
|
+
}
|
|
3238
3311
|
|
|
3239
3312
|
json = kwargs if data is UNSET else data
|
|
3240
|
-
|
|
3313
|
+
if self._github.config.rest_api_validate_body:
|
|
3314
|
+
json = type_validate_python(OrgsOrgActionsSecretsSecretNamePutBody, json)
|
|
3241
3315
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3242
3316
|
|
|
3243
3317
|
return self._github.request(
|
|
@@ -3287,13 +3361,15 @@ class ActionsClient:
|
|
|
3287
3361
|
|
|
3288
3362
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
3289
3363
|
|
|
3290
|
-
headers = {
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3364
|
+
headers = {
|
|
3365
|
+
"Content-Type": "application/json",
|
|
3366
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3367
|
+
**(headers or {}),
|
|
3368
|
+
}
|
|
3294
3369
|
|
|
3295
3370
|
json = kwargs if data is UNSET else data
|
|
3296
|
-
|
|
3371
|
+
if self._github.config.rest_api_validate_body:
|
|
3372
|
+
json = type_validate_python(OrgsOrgActionsSecretsSecretNamePutBody, json)
|
|
3297
3373
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3298
3374
|
|
|
3299
3375
|
return await self._github.arequest(
|
|
@@ -3438,15 +3514,17 @@ class ActionsClient:
|
|
|
3438
3514
|
|
|
3439
3515
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
3440
3516
|
|
|
3441
|
-
headers = {
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3517
|
+
headers = {
|
|
3518
|
+
"Content-Type": "application/json",
|
|
3519
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3520
|
+
**(headers or {}),
|
|
3521
|
+
}
|
|
3445
3522
|
|
|
3446
3523
|
json = kwargs if data is UNSET else data
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3524
|
+
if self._github.config.rest_api_validate_body:
|
|
3525
|
+
json = type_validate_python(
|
|
3526
|
+
OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, json
|
|
3527
|
+
)
|
|
3450
3528
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3451
3529
|
|
|
3452
3530
|
return self._github.request(
|
|
@@ -3492,15 +3570,17 @@ class ActionsClient:
|
|
|
3492
3570
|
|
|
3493
3571
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
3494
3572
|
|
|
3495
|
-
headers = {
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3573
|
+
headers = {
|
|
3574
|
+
"Content-Type": "application/json",
|
|
3575
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3576
|
+
**(headers or {}),
|
|
3577
|
+
}
|
|
3499
3578
|
|
|
3500
3579
|
json = kwargs if data is UNSET else data
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3580
|
+
if self._github.config.rest_api_validate_body:
|
|
3581
|
+
json = type_validate_python(
|
|
3582
|
+
OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, json
|
|
3583
|
+
)
|
|
3504
3584
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3505
3585
|
|
|
3506
3586
|
return await self._github.arequest(
|
|
@@ -3688,13 +3768,15 @@ class ActionsClient:
|
|
|
3688
3768
|
|
|
3689
3769
|
url = f"/orgs/{org}/actions/variables"
|
|
3690
3770
|
|
|
3691
|
-
headers = {
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3771
|
+
headers = {
|
|
3772
|
+
"Content-Type": "application/json",
|
|
3773
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3774
|
+
**(headers or {}),
|
|
3775
|
+
}
|
|
3695
3776
|
|
|
3696
3777
|
json = kwargs if data is UNSET else data
|
|
3697
|
-
|
|
3778
|
+
if self._github.config.rest_api_validate_body:
|
|
3779
|
+
json = type_validate_python(OrgsOrgActionsVariablesPostBody, json)
|
|
3698
3780
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3699
3781
|
|
|
3700
3782
|
return self._github.request(
|
|
@@ -3741,13 +3823,15 @@ class ActionsClient:
|
|
|
3741
3823
|
|
|
3742
3824
|
url = f"/orgs/{org}/actions/variables"
|
|
3743
3825
|
|
|
3744
|
-
headers = {
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3826
|
+
headers = {
|
|
3827
|
+
"Content-Type": "application/json",
|
|
3828
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3829
|
+
**(headers or {}),
|
|
3830
|
+
}
|
|
3748
3831
|
|
|
3749
3832
|
json = kwargs if data is UNSET else data
|
|
3750
|
-
|
|
3833
|
+
if self._github.config.rest_api_validate_body:
|
|
3834
|
+
json = type_validate_python(OrgsOrgActionsVariablesPostBody, json)
|
|
3751
3835
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3752
3836
|
|
|
3753
3837
|
return await self._github.arequest(
|
|
@@ -3878,13 +3962,15 @@ class ActionsClient:
|
|
|
3878
3962
|
|
|
3879
3963
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
3880
3964
|
|
|
3881
|
-
headers = {
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3965
|
+
headers = {
|
|
3966
|
+
"Content-Type": "application/json",
|
|
3967
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3968
|
+
**(headers or {}),
|
|
3969
|
+
}
|
|
3885
3970
|
|
|
3886
3971
|
json = kwargs if data is UNSET else data
|
|
3887
|
-
|
|
3972
|
+
if self._github.config.rest_api_validate_body:
|
|
3973
|
+
json = type_validate_python(OrgsOrgActionsVariablesNamePatchBody, json)
|
|
3888
3974
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3889
3975
|
|
|
3890
3976
|
return self._github.request(
|
|
@@ -3932,13 +4018,15 @@ class ActionsClient:
|
|
|
3932
4018
|
|
|
3933
4019
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
3934
4020
|
|
|
3935
|
-
headers = {
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
4021
|
+
headers = {
|
|
4022
|
+
"Content-Type": "application/json",
|
|
4023
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4024
|
+
**(headers or {}),
|
|
4025
|
+
}
|
|
3939
4026
|
|
|
3940
4027
|
json = kwargs if data is UNSET else data
|
|
3941
|
-
|
|
4028
|
+
if self._github.config.rest_api_validate_body:
|
|
4029
|
+
json = type_validate_python(OrgsOrgActionsVariablesNamePatchBody, json)
|
|
3942
4030
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
3943
4031
|
|
|
3944
4032
|
return await self._github.arequest(
|
|
@@ -4046,15 +4134,17 @@ class ActionsClient:
|
|
|
4046
4134
|
|
|
4047
4135
|
url = f"/orgs/{org}/actions/variables/{name}/repositories"
|
|
4048
4136
|
|
|
4049
|
-
headers = {
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4137
|
+
headers = {
|
|
4138
|
+
"Content-Type": "application/json",
|
|
4139
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4140
|
+
**(headers or {}),
|
|
4141
|
+
}
|
|
4053
4142
|
|
|
4054
4143
|
json = kwargs if data is UNSET else data
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4144
|
+
if self._github.config.rest_api_validate_body:
|
|
4145
|
+
json = type_validate_python(
|
|
4146
|
+
OrgsOrgActionsVariablesNameRepositoriesPutBody, json
|
|
4147
|
+
)
|
|
4058
4148
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4059
4149
|
|
|
4060
4150
|
return self._github.request(
|
|
@@ -4101,15 +4191,17 @@ class ActionsClient:
|
|
|
4101
4191
|
|
|
4102
4192
|
url = f"/orgs/{org}/actions/variables/{name}/repositories"
|
|
4103
4193
|
|
|
4104
|
-
headers = {
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4194
|
+
headers = {
|
|
4195
|
+
"Content-Type": "application/json",
|
|
4196
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4197
|
+
**(headers or {}),
|
|
4198
|
+
}
|
|
4108
4199
|
|
|
4109
4200
|
json = kwargs if data is UNSET else data
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4201
|
+
if self._github.config.rest_api_validate_body:
|
|
4202
|
+
json = type_validate_python(
|
|
4203
|
+
OrgsOrgActionsVariablesNameRepositoriesPutBody, json
|
|
4204
|
+
)
|
|
4113
4205
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4114
4206
|
|
|
4115
4207
|
return await self._github.arequest(
|
|
@@ -4765,15 +4857,17 @@ class ActionsClient:
|
|
|
4765
4857
|
|
|
4766
4858
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
4767
4859
|
|
|
4768
|
-
headers = {
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4860
|
+
headers = {
|
|
4861
|
+
"Content-Type": "application/json",
|
|
4862
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4863
|
+
**(headers or {}),
|
|
4864
|
+
}
|
|
4772
4865
|
|
|
4773
4866
|
json = kwargs if data is UNSET else data
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4867
|
+
if self._github.config.rest_api_validate_body:
|
|
4868
|
+
json = type_validate_python(
|
|
4869
|
+
Union[ReposOwnerRepoActionsJobsJobIdRerunPostBody, None], json
|
|
4870
|
+
)
|
|
4777
4871
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4778
4872
|
|
|
4779
4873
|
return self._github.request(
|
|
@@ -4836,15 +4930,17 @@ class ActionsClient:
|
|
|
4836
4930
|
|
|
4837
4931
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
4838
4932
|
|
|
4839
|
-
headers = {
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4933
|
+
headers = {
|
|
4934
|
+
"Content-Type": "application/json",
|
|
4935
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4936
|
+
**(headers or {}),
|
|
4937
|
+
}
|
|
4843
4938
|
|
|
4844
4939
|
json = kwargs if data is UNSET else data
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4940
|
+
if self._github.config.rest_api_validate_body:
|
|
4941
|
+
json = type_validate_python(
|
|
4942
|
+
Union[ReposOwnerRepoActionsJobsJobIdRerunPostBody, None], json
|
|
4943
|
+
)
|
|
4848
4944
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4849
4945
|
|
|
4850
4946
|
return await self._github.arequest(
|
|
@@ -4952,15 +5048,17 @@ class ActionsClient:
|
|
|
4952
5048
|
|
|
4953
5049
|
url = f"/repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
4954
5050
|
|
|
4955
|
-
headers = {
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
5051
|
+
headers = {
|
|
5052
|
+
"Content-Type": "application/json",
|
|
5053
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5054
|
+
**(headers or {}),
|
|
5055
|
+
}
|
|
4959
5056
|
|
|
4960
5057
|
json = kwargs if data is UNSET else data
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
5058
|
+
if self._github.config.rest_api_validate_body:
|
|
5059
|
+
json = type_validate_python(
|
|
5060
|
+
ReposOwnerRepoActionsOidcCustomizationSubPutBody, json
|
|
5061
|
+
)
|
|
4964
5062
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
4965
5063
|
|
|
4966
5064
|
return self._github.request(
|
|
@@ -5018,15 +5116,17 @@ class ActionsClient:
|
|
|
5018
5116
|
|
|
5019
5117
|
url = f"/repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
5020
5118
|
|
|
5021
|
-
headers = {
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5119
|
+
headers = {
|
|
5120
|
+
"Content-Type": "application/json",
|
|
5121
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5122
|
+
**(headers or {}),
|
|
5123
|
+
}
|
|
5025
5124
|
|
|
5026
5125
|
json = kwargs if data is UNSET else data
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5126
|
+
if self._github.config.rest_api_validate_body:
|
|
5127
|
+
json = type_validate_python(
|
|
5128
|
+
ReposOwnerRepoActionsOidcCustomizationSubPutBody, json
|
|
5129
|
+
)
|
|
5030
5130
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5031
5131
|
|
|
5032
5132
|
return await self._github.arequest(
|
|
@@ -5243,13 +5343,15 @@ class ActionsClient:
|
|
|
5243
5343
|
|
|
5244
5344
|
url = f"/repos/{owner}/{repo}/actions/permissions"
|
|
5245
5345
|
|
|
5246
|
-
headers = {
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5346
|
+
headers = {
|
|
5347
|
+
"Content-Type": "application/json",
|
|
5348
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5349
|
+
**(headers or {}),
|
|
5350
|
+
}
|
|
5250
5351
|
|
|
5251
5352
|
json = kwargs if data is UNSET else data
|
|
5252
|
-
|
|
5353
|
+
if self._github.config.rest_api_validate_body:
|
|
5354
|
+
json = type_validate_python(ReposOwnerRepoActionsPermissionsPutBody, json)
|
|
5253
5355
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5254
5356
|
|
|
5255
5357
|
return self._github.request(
|
|
@@ -5296,13 +5398,15 @@ class ActionsClient:
|
|
|
5296
5398
|
|
|
5297
5399
|
url = f"/repos/{owner}/{repo}/actions/permissions"
|
|
5298
5400
|
|
|
5299
|
-
headers = {
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5401
|
+
headers = {
|
|
5402
|
+
"Content-Type": "application/json",
|
|
5403
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5404
|
+
**(headers or {}),
|
|
5405
|
+
}
|
|
5303
5406
|
|
|
5304
5407
|
json = kwargs if data is UNSET else data
|
|
5305
|
-
|
|
5408
|
+
if self._github.config.rest_api_validate_body:
|
|
5409
|
+
json = type_validate_python(ReposOwnerRepoActionsPermissionsPutBody, json)
|
|
5306
5410
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5307
5411
|
|
|
5308
5412
|
return await self._github.arequest(
|
|
@@ -5392,13 +5496,15 @@ class ActionsClient:
|
|
|
5392
5496
|
|
|
5393
5497
|
url = f"/repos/{owner}/{repo}/actions/permissions/access"
|
|
5394
5498
|
|
|
5395
|
-
headers = {
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5499
|
+
headers = {
|
|
5500
|
+
"Content-Type": "application/json",
|
|
5501
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5502
|
+
**(headers or {}),
|
|
5503
|
+
}
|
|
5399
5504
|
|
|
5400
5505
|
json = kwargs if data is UNSET else data
|
|
5401
|
-
|
|
5506
|
+
if self._github.config.rest_api_validate_body:
|
|
5507
|
+
json = type_validate_python(ActionsWorkflowAccessToRepository, json)
|
|
5402
5508
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5403
5509
|
|
|
5404
5510
|
return self._github.request(
|
|
@@ -5444,13 +5550,15 @@ class ActionsClient:
|
|
|
5444
5550
|
|
|
5445
5551
|
url = f"/repos/{owner}/{repo}/actions/permissions/access"
|
|
5446
5552
|
|
|
5447
|
-
headers = {
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5553
|
+
headers = {
|
|
5554
|
+
"Content-Type": "application/json",
|
|
5555
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5556
|
+
**(headers or {}),
|
|
5557
|
+
}
|
|
5451
5558
|
|
|
5452
5559
|
json = kwargs if data is UNSET else data
|
|
5453
|
-
|
|
5560
|
+
if self._github.config.rest_api_validate_body:
|
|
5561
|
+
json = type_validate_python(ActionsWorkflowAccessToRepository, json)
|
|
5454
5562
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5455
5563
|
|
|
5456
5564
|
return await self._github.arequest(
|
|
@@ -5542,13 +5650,15 @@ class ActionsClient:
|
|
|
5542
5650
|
|
|
5543
5651
|
url = f"/repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
5544
5652
|
|
|
5545
|
-
headers = {
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5653
|
+
headers = {
|
|
5654
|
+
"Content-Type": "application/json",
|
|
5655
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5656
|
+
**(headers or {}),
|
|
5657
|
+
}
|
|
5549
5658
|
|
|
5550
5659
|
json = kwargs if data is UNSET else data
|
|
5551
|
-
|
|
5660
|
+
if self._github.config.rest_api_validate_body:
|
|
5661
|
+
json = type_validate_python(SelectedActions, json)
|
|
5552
5662
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5553
5663
|
|
|
5554
5664
|
return self._github.request(
|
|
@@ -5596,13 +5706,15 @@ class ActionsClient:
|
|
|
5596
5706
|
|
|
5597
5707
|
url = f"/repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
5598
5708
|
|
|
5599
|
-
headers = {
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5709
|
+
headers = {
|
|
5710
|
+
"Content-Type": "application/json",
|
|
5711
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5712
|
+
**(headers or {}),
|
|
5713
|
+
}
|
|
5603
5714
|
|
|
5604
5715
|
json = kwargs if data is UNSET else data
|
|
5605
|
-
|
|
5716
|
+
if self._github.config.rest_api_validate_body:
|
|
5717
|
+
json = type_validate_python(SelectedActions, json)
|
|
5606
5718
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5607
5719
|
|
|
5608
5720
|
return await self._github.arequest(
|
|
@@ -5693,13 +5805,15 @@ class ActionsClient:
|
|
|
5693
5805
|
|
|
5694
5806
|
url = f"/repos/{owner}/{repo}/actions/permissions/workflow"
|
|
5695
5807
|
|
|
5696
|
-
headers = {
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5808
|
+
headers = {
|
|
5809
|
+
"Content-Type": "application/json",
|
|
5810
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5811
|
+
**(headers or {}),
|
|
5812
|
+
}
|
|
5700
5813
|
|
|
5701
5814
|
json = kwargs if data is UNSET else data
|
|
5702
|
-
|
|
5815
|
+
if self._github.config.rest_api_validate_body:
|
|
5816
|
+
json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json)
|
|
5703
5817
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5704
5818
|
|
|
5705
5819
|
return self._github.request(
|
|
@@ -5747,13 +5861,15 @@ class ActionsClient:
|
|
|
5747
5861
|
|
|
5748
5862
|
url = f"/repos/{owner}/{repo}/actions/permissions/workflow"
|
|
5749
5863
|
|
|
5750
|
-
headers = {
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5864
|
+
headers = {
|
|
5865
|
+
"Content-Type": "application/json",
|
|
5866
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5867
|
+
**(headers or {}),
|
|
5868
|
+
}
|
|
5754
5869
|
|
|
5755
5870
|
json = kwargs if data is UNSET else data
|
|
5756
|
-
|
|
5871
|
+
if self._github.config.rest_api_validate_body:
|
|
5872
|
+
json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json)
|
|
5757
5873
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5758
5874
|
|
|
5759
5875
|
return await self._github.arequest(
|
|
@@ -5926,15 +6042,17 @@ class ActionsClient:
|
|
|
5926
6042
|
|
|
5927
6043
|
url = f"/repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
5928
6044
|
|
|
5929
|
-
headers = {
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
6045
|
+
headers = {
|
|
6046
|
+
"Content-Type": "application/json",
|
|
6047
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6048
|
+
**(headers or {}),
|
|
6049
|
+
}
|
|
5933
6050
|
|
|
5934
6051
|
json = kwargs if data is UNSET else data
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
6052
|
+
if self._github.config.rest_api_validate_body:
|
|
6053
|
+
json = type_validate_python(
|
|
6054
|
+
ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, json
|
|
6055
|
+
)
|
|
5938
6056
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
5939
6057
|
|
|
5940
6058
|
return self._github.request(
|
|
@@ -5999,15 +6117,17 @@ class ActionsClient:
|
|
|
5999
6117
|
|
|
6000
6118
|
url = f"/repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
6001
6119
|
|
|
6002
|
-
headers = {
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6120
|
+
headers = {
|
|
6121
|
+
"Content-Type": "application/json",
|
|
6122
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6123
|
+
**(headers or {}),
|
|
6124
|
+
}
|
|
6006
6125
|
|
|
6007
6126
|
json = kwargs if data is UNSET else data
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6127
|
+
if self._github.config.rest_api_validate_body:
|
|
6128
|
+
json = type_validate_python(
|
|
6129
|
+
ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, json
|
|
6130
|
+
)
|
|
6011
6131
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6012
6132
|
|
|
6013
6133
|
return await self._github.arequest(
|
|
@@ -6298,15 +6418,17 @@ class ActionsClient:
|
|
|
6298
6418
|
|
|
6299
6419
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
6300
6420
|
|
|
6301
|
-
headers = {
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6421
|
+
headers = {
|
|
6422
|
+
"Content-Type": "application/json",
|
|
6423
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6424
|
+
**(headers or {}),
|
|
6425
|
+
}
|
|
6305
6426
|
|
|
6306
6427
|
json = kwargs if data is UNSET else data
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6428
|
+
if self._github.config.rest_api_validate_body:
|
|
6429
|
+
json = type_validate_python(
|
|
6430
|
+
ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, json
|
|
6431
|
+
)
|
|
6310
6432
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6311
6433
|
|
|
6312
6434
|
return self._github.request(
|
|
@@ -6365,15 +6487,17 @@ class ActionsClient:
|
|
|
6365
6487
|
|
|
6366
6488
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
6367
6489
|
|
|
6368
|
-
headers = {
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6490
|
+
headers = {
|
|
6491
|
+
"Content-Type": "application/json",
|
|
6492
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6493
|
+
**(headers or {}),
|
|
6494
|
+
}
|
|
6372
6495
|
|
|
6373
6496
|
json = kwargs if data is UNSET else data
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6497
|
+
if self._github.config.rest_api_validate_body:
|
|
6498
|
+
json = type_validate_python(
|
|
6499
|
+
ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, json
|
|
6500
|
+
)
|
|
6377
6501
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6378
6502
|
|
|
6379
6503
|
return await self._github.arequest(
|
|
@@ -6432,15 +6556,17 @@ class ActionsClient:
|
|
|
6432
6556
|
|
|
6433
6557
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
6434
6558
|
|
|
6435
|
-
headers = {
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6559
|
+
headers = {
|
|
6560
|
+
"Content-Type": "application/json",
|
|
6561
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6562
|
+
**(headers or {}),
|
|
6563
|
+
}
|
|
6439
6564
|
|
|
6440
6565
|
json = kwargs if data is UNSET else data
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6566
|
+
if self._github.config.rest_api_validate_body:
|
|
6567
|
+
json = type_validate_python(
|
|
6568
|
+
ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, json
|
|
6569
|
+
)
|
|
6444
6570
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6445
6571
|
|
|
6446
6572
|
return self._github.request(
|
|
@@ -6499,15 +6625,17 @@ class ActionsClient:
|
|
|
6499
6625
|
|
|
6500
6626
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
6501
6627
|
|
|
6502
|
-
headers = {
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6628
|
+
headers = {
|
|
6629
|
+
"Content-Type": "application/json",
|
|
6630
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6631
|
+
**(headers or {}),
|
|
6632
|
+
}
|
|
6506
6633
|
|
|
6507
6634
|
json = kwargs if data is UNSET else data
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6635
|
+
if self._github.config.rest_api_validate_body:
|
|
6636
|
+
json = type_validate_python(
|
|
6637
|
+
ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, json
|
|
6638
|
+
)
|
|
6511
6639
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
6512
6640
|
|
|
6513
6641
|
return await self._github.arequest(
|
|
@@ -7337,16 +7465,18 @@ class ActionsClient:
|
|
|
7337
7465
|
|
|
7338
7466
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
7339
7467
|
|
|
7340
|
-
headers = {
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7468
|
+
headers = {
|
|
7469
|
+
"Content-Type": "application/json",
|
|
7470
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7471
|
+
**(headers or {}),
|
|
7472
|
+
}
|
|
7344
7473
|
|
|
7345
7474
|
json = kwargs if data is UNSET else data
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7475
|
+
if self._github.config.rest_api_validate_body:
|
|
7476
|
+
json = type_validate_python(
|
|
7477
|
+
Union[ReviewCustomGatesCommentRequired, ReviewCustomGatesStateRequired],
|
|
7478
|
+
json,
|
|
7479
|
+
)
|
|
7350
7480
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7351
7481
|
|
|
7352
7482
|
return self._github.request(
|
|
@@ -7421,16 +7551,18 @@ class ActionsClient:
|
|
|
7421
7551
|
|
|
7422
7552
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
7423
7553
|
|
|
7424
|
-
headers = {
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7554
|
+
headers = {
|
|
7555
|
+
"Content-Type": "application/json",
|
|
7556
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7557
|
+
**(headers or {}),
|
|
7558
|
+
}
|
|
7428
7559
|
|
|
7429
7560
|
json = kwargs if data is UNSET else data
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7561
|
+
if self._github.config.rest_api_validate_body:
|
|
7562
|
+
json = type_validate_python(
|
|
7563
|
+
Union[ReviewCustomGatesCommentRequired, ReviewCustomGatesStateRequired],
|
|
7564
|
+
json,
|
|
7565
|
+
)
|
|
7434
7566
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7435
7567
|
|
|
7436
7568
|
return await self._github.arequest(
|
|
@@ -7748,15 +7880,17 @@ class ActionsClient:
|
|
|
7748
7880
|
|
|
7749
7881
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
7750
7882
|
|
|
7751
|
-
headers = {
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7883
|
+
headers = {
|
|
7884
|
+
"Content-Type": "application/json",
|
|
7885
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7886
|
+
**(headers or {}),
|
|
7887
|
+
}
|
|
7755
7888
|
|
|
7756
7889
|
json = kwargs if data is UNSET else data
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7890
|
+
if self._github.config.rest_api_validate_body:
|
|
7891
|
+
json = type_validate_python(
|
|
7892
|
+
ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, json
|
|
7893
|
+
)
|
|
7760
7894
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7761
7895
|
|
|
7762
7896
|
return self._github.request(
|
|
@@ -7815,15 +7949,17 @@ class ActionsClient:
|
|
|
7815
7949
|
|
|
7816
7950
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
7817
7951
|
|
|
7818
|
-
headers = {
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7952
|
+
headers = {
|
|
7953
|
+
"Content-Type": "application/json",
|
|
7954
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7955
|
+
**(headers or {}),
|
|
7956
|
+
}
|
|
7822
7957
|
|
|
7823
7958
|
json = kwargs if data is UNSET else data
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7959
|
+
if self._github.config.rest_api_validate_body:
|
|
7960
|
+
json = type_validate_python(
|
|
7961
|
+
ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, json
|
|
7962
|
+
)
|
|
7827
7963
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7828
7964
|
|
|
7829
7965
|
return await self._github.arequest(
|
|
@@ -7879,15 +8015,17 @@ class ActionsClient:
|
|
|
7879
8015
|
|
|
7880
8016
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun"
|
|
7881
8017
|
|
|
7882
|
-
headers = {
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
8018
|
+
headers = {
|
|
8019
|
+
"Content-Type": "application/json",
|
|
8020
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8021
|
+
**(headers or {}),
|
|
8022
|
+
}
|
|
7886
8023
|
|
|
7887
8024
|
json = kwargs if data is UNSET else data
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
8025
|
+
if self._github.config.rest_api_validate_body:
|
|
8026
|
+
json = type_validate_python(
|
|
8027
|
+
Union[ReposOwnerRepoActionsRunsRunIdRerunPostBody, None], json
|
|
8028
|
+
)
|
|
7891
8029
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7892
8030
|
|
|
7893
8031
|
return self._github.request(
|
|
@@ -7943,15 +8081,17 @@ class ActionsClient:
|
|
|
7943
8081
|
|
|
7944
8082
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun"
|
|
7945
8083
|
|
|
7946
|
-
headers = {
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
8084
|
+
headers = {
|
|
8085
|
+
"Content-Type": "application/json",
|
|
8086
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8087
|
+
**(headers or {}),
|
|
8088
|
+
}
|
|
7950
8089
|
|
|
7951
8090
|
json = kwargs if data is UNSET else data
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
8091
|
+
if self._github.config.rest_api_validate_body:
|
|
8092
|
+
json = type_validate_python(
|
|
8093
|
+
Union[ReposOwnerRepoActionsRunsRunIdRerunPostBody, None], json
|
|
8094
|
+
)
|
|
7955
8095
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
7956
8096
|
|
|
7957
8097
|
return await self._github.arequest(
|
|
@@ -8010,15 +8150,17 @@ class ActionsClient:
|
|
|
8010
8150
|
|
|
8011
8151
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
8012
8152
|
|
|
8013
|
-
headers = {
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8153
|
+
headers = {
|
|
8154
|
+
"Content-Type": "application/json",
|
|
8155
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8156
|
+
**(headers or {}),
|
|
8157
|
+
}
|
|
8017
8158
|
|
|
8018
8159
|
json = kwargs if data is UNSET else data
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8160
|
+
if self._github.config.rest_api_validate_body:
|
|
8161
|
+
json = type_validate_python(
|
|
8162
|
+
Union[ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, None], json
|
|
8163
|
+
)
|
|
8022
8164
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8023
8165
|
|
|
8024
8166
|
return self._github.request(
|
|
@@ -8077,15 +8219,17 @@ class ActionsClient:
|
|
|
8077
8219
|
|
|
8078
8220
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
8079
8221
|
|
|
8080
|
-
headers = {
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8222
|
+
headers = {
|
|
8223
|
+
"Content-Type": "application/json",
|
|
8224
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8225
|
+
**(headers or {}),
|
|
8226
|
+
}
|
|
8084
8227
|
|
|
8085
8228
|
json = kwargs if data is UNSET else data
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8229
|
+
if self._github.config.rest_api_validate_body:
|
|
8230
|
+
json = type_validate_python(
|
|
8231
|
+
Union[ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, None], json
|
|
8232
|
+
)
|
|
8089
8233
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8090
8234
|
|
|
8091
8235
|
return await self._github.arequest(
|
|
@@ -8332,13 +8476,17 @@ class ActionsClient:
|
|
|
8332
8476
|
|
|
8333
8477
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
8334
8478
|
|
|
8335
|
-
headers = {
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8479
|
+
headers = {
|
|
8480
|
+
"Content-Type": "application/json",
|
|
8481
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8482
|
+
**(headers or {}),
|
|
8483
|
+
}
|
|
8339
8484
|
|
|
8340
8485
|
json = kwargs if data is UNSET else data
|
|
8341
|
-
|
|
8486
|
+
if self._github.config.rest_api_validate_body:
|
|
8487
|
+
json = type_validate_python(
|
|
8488
|
+
ReposOwnerRepoActionsSecretsSecretNamePutBody, json
|
|
8489
|
+
)
|
|
8342
8490
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8343
8491
|
|
|
8344
8492
|
return self._github.request(
|
|
@@ -8389,13 +8537,17 @@ class ActionsClient:
|
|
|
8389
8537
|
|
|
8390
8538
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
8391
8539
|
|
|
8392
|
-
headers = {
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8540
|
+
headers = {
|
|
8541
|
+
"Content-Type": "application/json",
|
|
8542
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8543
|
+
**(headers or {}),
|
|
8544
|
+
}
|
|
8396
8545
|
|
|
8397
8546
|
json = kwargs if data is UNSET else data
|
|
8398
|
-
|
|
8547
|
+
if self._github.config.rest_api_validate_body:
|
|
8548
|
+
json = type_validate_python(
|
|
8549
|
+
ReposOwnerRepoActionsSecretsSecretNamePutBody, json
|
|
8550
|
+
)
|
|
8399
8551
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8400
8552
|
|
|
8401
8553
|
return await self._github.arequest(
|
|
@@ -8543,13 +8695,15 @@ class ActionsClient:
|
|
|
8543
8695
|
|
|
8544
8696
|
url = f"/repos/{owner}/{repo}/actions/variables"
|
|
8545
8697
|
|
|
8546
|
-
headers = {
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8698
|
+
headers = {
|
|
8699
|
+
"Content-Type": "application/json",
|
|
8700
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8701
|
+
**(headers or {}),
|
|
8702
|
+
}
|
|
8550
8703
|
|
|
8551
8704
|
json = kwargs if data is UNSET else data
|
|
8552
|
-
|
|
8705
|
+
if self._github.config.rest_api_validate_body:
|
|
8706
|
+
json = type_validate_python(ReposOwnerRepoActionsVariablesPostBody, json)
|
|
8553
8707
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8554
8708
|
|
|
8555
8709
|
return self._github.request(
|
|
@@ -8597,13 +8751,15 @@ class ActionsClient:
|
|
|
8597
8751
|
|
|
8598
8752
|
url = f"/repos/{owner}/{repo}/actions/variables"
|
|
8599
8753
|
|
|
8600
|
-
headers = {
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8754
|
+
headers = {
|
|
8755
|
+
"Content-Type": "application/json",
|
|
8756
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8757
|
+
**(headers or {}),
|
|
8758
|
+
}
|
|
8604
8759
|
|
|
8605
8760
|
json = kwargs if data is UNSET else data
|
|
8606
|
-
|
|
8761
|
+
if self._github.config.rest_api_validate_body:
|
|
8762
|
+
json = type_validate_python(ReposOwnerRepoActionsVariablesPostBody, json)
|
|
8607
8763
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8608
8764
|
|
|
8609
8765
|
return await self._github.arequest(
|
|
@@ -8739,13 +8895,17 @@ class ActionsClient:
|
|
|
8739
8895
|
|
|
8740
8896
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
8741
8897
|
|
|
8742
|
-
headers = {
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8898
|
+
headers = {
|
|
8899
|
+
"Content-Type": "application/json",
|
|
8900
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8901
|
+
**(headers or {}),
|
|
8902
|
+
}
|
|
8746
8903
|
|
|
8747
8904
|
json = kwargs if data is UNSET else data
|
|
8748
|
-
|
|
8905
|
+
if self._github.config.rest_api_validate_body:
|
|
8906
|
+
json = type_validate_python(
|
|
8907
|
+
ReposOwnerRepoActionsVariablesNamePatchBody, json
|
|
8908
|
+
)
|
|
8749
8909
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8750
8910
|
|
|
8751
8911
|
return self._github.request(
|
|
@@ -8794,13 +8954,17 @@ class ActionsClient:
|
|
|
8794
8954
|
|
|
8795
8955
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
8796
8956
|
|
|
8797
|
-
headers = {
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8957
|
+
headers = {
|
|
8958
|
+
"Content-Type": "application/json",
|
|
8959
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
8960
|
+
**(headers or {}),
|
|
8961
|
+
}
|
|
8801
8962
|
|
|
8802
8963
|
json = kwargs if data is UNSET else data
|
|
8803
|
-
|
|
8964
|
+
if self._github.config.rest_api_validate_body:
|
|
8965
|
+
json = type_validate_python(
|
|
8966
|
+
ReposOwnerRepoActionsVariablesNamePatchBody, json
|
|
8967
|
+
)
|
|
8804
8968
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
8805
8969
|
|
|
8806
8970
|
return await self._github.arequest(
|
|
@@ -9000,15 +9164,17 @@ class ActionsClient:
|
|
|
9000
9164
|
|
|
9001
9165
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
9002
9166
|
|
|
9003
|
-
headers = {
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9167
|
+
headers = {
|
|
9168
|
+
"Content-Type": "application/json",
|
|
9169
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9170
|
+
**(headers or {}),
|
|
9171
|
+
}
|
|
9007
9172
|
|
|
9008
9173
|
json = kwargs if data is UNSET else data
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9174
|
+
if self._github.config.rest_api_validate_body:
|
|
9175
|
+
json = type_validate_python(
|
|
9176
|
+
ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, json
|
|
9177
|
+
)
|
|
9012
9178
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9013
9179
|
|
|
9014
9180
|
return self._github.request(
|
|
@@ -9062,15 +9228,17 @@ class ActionsClient:
|
|
|
9062
9228
|
|
|
9063
9229
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
9064
9230
|
|
|
9065
|
-
headers = {
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9231
|
+
headers = {
|
|
9232
|
+
"Content-Type": "application/json",
|
|
9233
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9234
|
+
**(headers or {}),
|
|
9235
|
+
}
|
|
9069
9236
|
|
|
9070
9237
|
json = kwargs if data is UNSET else data
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9238
|
+
if self._github.config.rest_api_validate_body:
|
|
9239
|
+
json = type_validate_python(
|
|
9240
|
+
ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, json
|
|
9241
|
+
)
|
|
9074
9242
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9075
9243
|
|
|
9076
9244
|
return await self._github.arequest(
|
|
@@ -9506,15 +9674,17 @@ class ActionsClient:
|
|
|
9506
9674
|
|
|
9507
9675
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
9508
9676
|
|
|
9509
|
-
headers = {
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9677
|
+
headers = {
|
|
9678
|
+
"Content-Type": "application/json",
|
|
9679
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9680
|
+
**(headers or {}),
|
|
9681
|
+
}
|
|
9513
9682
|
|
|
9514
9683
|
json = kwargs if data is UNSET else data
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9684
|
+
if self._github.config.rest_api_validate_body:
|
|
9685
|
+
json = type_validate_python(
|
|
9686
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, json
|
|
9687
|
+
)
|
|
9518
9688
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9519
9689
|
|
|
9520
9690
|
return self._github.request(
|
|
@@ -9573,15 +9743,17 @@ class ActionsClient:
|
|
|
9573
9743
|
|
|
9574
9744
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
9575
9745
|
|
|
9576
|
-
headers = {
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9746
|
+
headers = {
|
|
9747
|
+
"Content-Type": "application/json",
|
|
9748
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9749
|
+
**(headers or {}),
|
|
9750
|
+
}
|
|
9580
9751
|
|
|
9581
9752
|
json = kwargs if data is UNSET else data
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9753
|
+
if self._github.config.rest_api_validate_body:
|
|
9754
|
+
json = type_validate_python(
|
|
9755
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, json
|
|
9756
|
+
)
|
|
9585
9757
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9586
9758
|
|
|
9587
9759
|
return await self._github.arequest(
|
|
@@ -9745,15 +9917,17 @@ class ActionsClient:
|
|
|
9745
9917
|
|
|
9746
9918
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
9747
9919
|
|
|
9748
|
-
headers = {
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9920
|
+
headers = {
|
|
9921
|
+
"Content-Type": "application/json",
|
|
9922
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9923
|
+
**(headers or {}),
|
|
9924
|
+
}
|
|
9752
9925
|
|
|
9753
9926
|
json = kwargs if data is UNSET else data
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9927
|
+
if self._github.config.rest_api_validate_body:
|
|
9928
|
+
json = type_validate_python(
|
|
9929
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, json
|
|
9930
|
+
)
|
|
9757
9931
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9758
9932
|
|
|
9759
9933
|
return self._github.request(
|
|
@@ -9809,15 +9983,17 @@ class ActionsClient:
|
|
|
9809
9983
|
|
|
9810
9984
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
9811
9985
|
|
|
9812
|
-
headers = {
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9986
|
+
headers = {
|
|
9987
|
+
"Content-Type": "application/json",
|
|
9988
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
9989
|
+
**(headers or {}),
|
|
9990
|
+
}
|
|
9816
9991
|
|
|
9817
9992
|
json = kwargs if data is UNSET else data
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9993
|
+
if self._github.config.rest_api_validate_body:
|
|
9994
|
+
json = type_validate_python(
|
|
9995
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, json
|
|
9996
|
+
)
|
|
9821
9997
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9822
9998
|
|
|
9823
9999
|
return await self._github.arequest(
|
|
@@ -9964,15 +10140,17 @@ class ActionsClient:
|
|
|
9964
10140
|
|
|
9965
10141
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
9966
10142
|
|
|
9967
|
-
headers = {
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
10143
|
+
headers = {
|
|
10144
|
+
"Content-Type": "application/json",
|
|
10145
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10146
|
+
**(headers or {}),
|
|
10147
|
+
}
|
|
9971
10148
|
|
|
9972
10149
|
json = kwargs if data is UNSET else data
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
10150
|
+
if self._github.config.rest_api_validate_body:
|
|
10151
|
+
json = type_validate_python(
|
|
10152
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, json
|
|
10153
|
+
)
|
|
9976
10154
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
9977
10155
|
|
|
9978
10156
|
return self._github.request(
|
|
@@ -10028,15 +10206,17 @@ class ActionsClient:
|
|
|
10028
10206
|
|
|
10029
10207
|
url = f"/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
10030
10208
|
|
|
10031
|
-
headers = {
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10209
|
+
headers = {
|
|
10210
|
+
"Content-Type": "application/json",
|
|
10211
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
10212
|
+
**(headers or {}),
|
|
10213
|
+
}
|
|
10035
10214
|
|
|
10036
10215
|
json = kwargs if data is UNSET else data
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10216
|
+
if self._github.config.rest_api_validate_body:
|
|
10217
|
+
json = type_validate_python(
|
|
10218
|
+
ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, json
|
|
10219
|
+
)
|
|
10040
10220
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
10041
10221
|
|
|
10042
10222
|
return await self._github.arequest(
|