githubkit 0.9.8__py3-none-any.whl → 0.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- githubkit/rest/actions.py +1332 -0
- githubkit/rest/activity.py +312 -0
- githubkit/rest/apps.py +372 -0
- githubkit/rest/billing.py +62 -0
- githubkit/rest/checks.py +122 -0
- githubkit/rest/code_scanning.py +142 -0
- githubkit/rest/codes_of_conduct.py +22 -0
- githubkit/rest/codespaces.py +472 -0
- githubkit/rest/dependabot.py +192 -0
- githubkit/rest/dependency_graph.py +22 -0
- githubkit/rest/emojis.py +12 -0
- githubkit/rest/gists.py +202 -0
- githubkit/rest/git.py +132 -0
- githubkit/rest/gitignore.py +22 -0
- githubkit/rest/interactions.py +92 -0
- githubkit/rest/issues.py +402 -0
- githubkit/rest/licenses.py +32 -0
- githubkit/rest/markdown.py +22 -0
- githubkit/rest/meta.py +52 -0
- githubkit/rest/migrations.py +222 -0
- githubkit/rest/oidc.py +22 -0
- githubkit/rest/orgs.py +552 -0
- githubkit/rest/packages.py +272 -0
- githubkit/rest/projects.py +252 -0
- githubkit/rest/pulls.py +272 -0
- githubkit/rest/rate_limit.py +12 -0
- githubkit/rest/reactions.py +252 -0
- githubkit/rest/repos.py +1703 -1
- githubkit/rest/search.py +72 -0
- githubkit/rest/secret_scanning.py +62 -0
- githubkit/rest/teams.py +602 -0
- githubkit/rest/users.py +412 -0
- githubkit/utils.py +2 -0
- {githubkit-0.9.8.dist-info → githubkit-0.10.0.dist-info}/METADATA +1 -1
- githubkit-0.10.0.dist-info/RECORD +67 -0
- githubkit-0.9.8.dist-info/RECORD +0 -67
- {githubkit-0.9.8.dist-info → githubkit-0.10.0.dist-info}/LICENSE +0 -0
- {githubkit-0.9.8.dist-info → githubkit-0.10.0.dist-info}/WHEEL +0 -0
githubkit/rest/actions.py
CHANGED
|
@@ -140,6 +140,8 @@ if TYPE_CHECKING:
|
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
class ActionsClient:
|
|
143
|
+
_REST_API_VERSION = "2022-11-28"
|
|
144
|
+
|
|
143
145
|
def __init__(self, github: "GitHubCore"):
|
|
144
146
|
self._github = github
|
|
145
147
|
|
|
@@ -149,9 +151,14 @@ class ActionsClient:
|
|
|
149
151
|
) -> "Response[ActionsCacheUsageOrgEnterprise]":
|
|
150
152
|
url = f"/orgs/{org}/actions/cache/usage"
|
|
151
153
|
|
|
154
|
+
headers = {
|
|
155
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
156
|
+
}
|
|
157
|
+
|
|
152
158
|
return self._github.request(
|
|
153
159
|
"GET",
|
|
154
160
|
url,
|
|
161
|
+
headers=exclude_unset(headers),
|
|
155
162
|
response_model=ActionsCacheUsageOrgEnterprise,
|
|
156
163
|
)
|
|
157
164
|
|
|
@@ -161,9 +168,14 @@ class ActionsClient:
|
|
|
161
168
|
) -> "Response[ActionsCacheUsageOrgEnterprise]":
|
|
162
169
|
url = f"/orgs/{org}/actions/cache/usage"
|
|
163
170
|
|
|
171
|
+
headers = {
|
|
172
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
173
|
+
}
|
|
174
|
+
|
|
164
175
|
return await self._github.arequest(
|
|
165
176
|
"GET",
|
|
166
177
|
url,
|
|
178
|
+
headers=exclude_unset(headers),
|
|
167
179
|
response_model=ActionsCacheUsageOrgEnterprise,
|
|
168
180
|
)
|
|
169
181
|
|
|
@@ -180,10 +192,15 @@ class ActionsClient:
|
|
|
180
192
|
"page": page,
|
|
181
193
|
}
|
|
182
194
|
|
|
195
|
+
headers = {
|
|
196
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
197
|
+
}
|
|
198
|
+
|
|
183
199
|
return self._github.request(
|
|
184
200
|
"GET",
|
|
185
201
|
url,
|
|
186
202
|
params=exclude_unset(params),
|
|
203
|
+
headers=exclude_unset(headers),
|
|
187
204
|
response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200,
|
|
188
205
|
)
|
|
189
206
|
|
|
@@ -200,10 +217,15 @@ class ActionsClient:
|
|
|
200
217
|
"page": page,
|
|
201
218
|
}
|
|
202
219
|
|
|
220
|
+
headers = {
|
|
221
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
222
|
+
}
|
|
223
|
+
|
|
203
224
|
return await self._github.arequest(
|
|
204
225
|
"GET",
|
|
205
226
|
url,
|
|
206
227
|
params=exclude_unset(params),
|
|
228
|
+
headers=exclude_unset(headers),
|
|
207
229
|
response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200,
|
|
208
230
|
)
|
|
209
231
|
|
|
@@ -213,9 +235,14 @@ class ActionsClient:
|
|
|
213
235
|
) -> "Response[ActionsOrganizationPermissions]":
|
|
214
236
|
url = f"/orgs/{org}/actions/permissions"
|
|
215
237
|
|
|
238
|
+
headers = {
|
|
239
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
240
|
+
}
|
|
241
|
+
|
|
216
242
|
return self._github.request(
|
|
217
243
|
"GET",
|
|
218
244
|
url,
|
|
245
|
+
headers=exclude_unset(headers),
|
|
219
246
|
response_model=ActionsOrganizationPermissions,
|
|
220
247
|
)
|
|
221
248
|
|
|
@@ -225,9 +252,14 @@ class ActionsClient:
|
|
|
225
252
|
) -> "Response[ActionsOrganizationPermissions]":
|
|
226
253
|
url = f"/orgs/{org}/actions/permissions"
|
|
227
254
|
|
|
255
|
+
headers = {
|
|
256
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
257
|
+
}
|
|
258
|
+
|
|
228
259
|
return await self._github.arequest(
|
|
229
260
|
"GET",
|
|
230
261
|
url,
|
|
262
|
+
headers=exclude_unset(headers),
|
|
231
263
|
response_model=ActionsOrganizationPermissions,
|
|
232
264
|
)
|
|
233
265
|
|
|
@@ -257,6 +289,10 @@ class ActionsClient:
|
|
|
257
289
|
) -> "Response":
|
|
258
290
|
url = f"/orgs/{org}/actions/permissions"
|
|
259
291
|
|
|
292
|
+
headers = {
|
|
293
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
294
|
+
}
|
|
295
|
+
|
|
260
296
|
if not kwargs:
|
|
261
297
|
kwargs = UNSET
|
|
262
298
|
|
|
@@ -268,6 +304,7 @@ class ActionsClient:
|
|
|
268
304
|
"PUT",
|
|
269
305
|
url,
|
|
270
306
|
json=exclude_unset(json),
|
|
307
|
+
headers=exclude_unset(headers),
|
|
271
308
|
)
|
|
272
309
|
|
|
273
310
|
@overload
|
|
@@ -296,6 +333,10 @@ class ActionsClient:
|
|
|
296
333
|
) -> "Response":
|
|
297
334
|
url = f"/orgs/{org}/actions/permissions"
|
|
298
335
|
|
|
336
|
+
headers = {
|
|
337
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
338
|
+
}
|
|
339
|
+
|
|
299
340
|
if not kwargs:
|
|
300
341
|
kwargs = UNSET
|
|
301
342
|
|
|
@@ -307,6 +348,7 @@ class ActionsClient:
|
|
|
307
348
|
"PUT",
|
|
308
349
|
url,
|
|
309
350
|
json=exclude_unset(json),
|
|
351
|
+
headers=exclude_unset(headers),
|
|
310
352
|
)
|
|
311
353
|
|
|
312
354
|
def list_selected_repositories_enabled_github_actions_organization(
|
|
@@ -322,10 +364,15 @@ class ActionsClient:
|
|
|
322
364
|
"page": page,
|
|
323
365
|
}
|
|
324
366
|
|
|
367
|
+
headers = {
|
|
368
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
369
|
+
}
|
|
370
|
+
|
|
325
371
|
return self._github.request(
|
|
326
372
|
"GET",
|
|
327
373
|
url,
|
|
328
374
|
params=exclude_unset(params),
|
|
375
|
+
headers=exclude_unset(headers),
|
|
329
376
|
response_model=OrgsOrgActionsPermissionsRepositoriesGetResponse200,
|
|
330
377
|
)
|
|
331
378
|
|
|
@@ -342,10 +389,15 @@ class ActionsClient:
|
|
|
342
389
|
"page": page,
|
|
343
390
|
}
|
|
344
391
|
|
|
392
|
+
headers = {
|
|
393
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
394
|
+
}
|
|
395
|
+
|
|
345
396
|
return await self._github.arequest(
|
|
346
397
|
"GET",
|
|
347
398
|
url,
|
|
348
399
|
params=exclude_unset(params),
|
|
400
|
+
headers=exclude_unset(headers),
|
|
349
401
|
response_model=OrgsOrgActionsPermissionsRepositoriesGetResponse200,
|
|
350
402
|
)
|
|
351
403
|
|
|
@@ -374,6 +426,10 @@ class ActionsClient:
|
|
|
374
426
|
) -> "Response":
|
|
375
427
|
url = f"/orgs/{org}/actions/permissions/repositories"
|
|
376
428
|
|
|
429
|
+
headers = {
|
|
430
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
431
|
+
}
|
|
432
|
+
|
|
377
433
|
if not kwargs:
|
|
378
434
|
kwargs = UNSET
|
|
379
435
|
|
|
@@ -385,6 +441,7 @@ class ActionsClient:
|
|
|
385
441
|
"PUT",
|
|
386
442
|
url,
|
|
387
443
|
json=exclude_unset(json),
|
|
444
|
+
headers=exclude_unset(headers),
|
|
388
445
|
)
|
|
389
446
|
|
|
390
447
|
@overload
|
|
@@ -412,6 +469,10 @@ class ActionsClient:
|
|
|
412
469
|
) -> "Response":
|
|
413
470
|
url = f"/orgs/{org}/actions/permissions/repositories"
|
|
414
471
|
|
|
472
|
+
headers = {
|
|
473
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
474
|
+
}
|
|
475
|
+
|
|
415
476
|
if not kwargs:
|
|
416
477
|
kwargs = UNSET
|
|
417
478
|
|
|
@@ -423,6 +484,7 @@ class ActionsClient:
|
|
|
423
484
|
"PUT",
|
|
424
485
|
url,
|
|
425
486
|
json=exclude_unset(json),
|
|
487
|
+
headers=exclude_unset(headers),
|
|
426
488
|
)
|
|
427
489
|
|
|
428
490
|
def enable_selected_repository_github_actions_organization(
|
|
@@ -432,9 +494,14 @@ class ActionsClient:
|
|
|
432
494
|
) -> "Response":
|
|
433
495
|
url = f"/orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
434
496
|
|
|
497
|
+
headers = {
|
|
498
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
499
|
+
}
|
|
500
|
+
|
|
435
501
|
return self._github.request(
|
|
436
502
|
"PUT",
|
|
437
503
|
url,
|
|
504
|
+
headers=exclude_unset(headers),
|
|
438
505
|
)
|
|
439
506
|
|
|
440
507
|
async def async_enable_selected_repository_github_actions_organization(
|
|
@@ -444,9 +511,14 @@ class ActionsClient:
|
|
|
444
511
|
) -> "Response":
|
|
445
512
|
url = f"/orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
446
513
|
|
|
514
|
+
headers = {
|
|
515
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
516
|
+
}
|
|
517
|
+
|
|
447
518
|
return await self._github.arequest(
|
|
448
519
|
"PUT",
|
|
449
520
|
url,
|
|
521
|
+
headers=exclude_unset(headers),
|
|
450
522
|
)
|
|
451
523
|
|
|
452
524
|
def disable_selected_repository_github_actions_organization(
|
|
@@ -456,9 +528,14 @@ class ActionsClient:
|
|
|
456
528
|
) -> "Response":
|
|
457
529
|
url = f"/orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
458
530
|
|
|
531
|
+
headers = {
|
|
532
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
533
|
+
}
|
|
534
|
+
|
|
459
535
|
return self._github.request(
|
|
460
536
|
"DELETE",
|
|
461
537
|
url,
|
|
538
|
+
headers=exclude_unset(headers),
|
|
462
539
|
)
|
|
463
540
|
|
|
464
541
|
async def async_disable_selected_repository_github_actions_organization(
|
|
@@ -468,9 +545,14 @@ class ActionsClient:
|
|
|
468
545
|
) -> "Response":
|
|
469
546
|
url = f"/orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
470
547
|
|
|
548
|
+
headers = {
|
|
549
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
550
|
+
}
|
|
551
|
+
|
|
471
552
|
return await self._github.arequest(
|
|
472
553
|
"DELETE",
|
|
473
554
|
url,
|
|
555
|
+
headers=exclude_unset(headers),
|
|
474
556
|
)
|
|
475
557
|
|
|
476
558
|
def get_allowed_actions_organization(
|
|
@@ -479,9 +561,14 @@ class ActionsClient:
|
|
|
479
561
|
) -> "Response[SelectedActions]":
|
|
480
562
|
url = f"/orgs/{org}/actions/permissions/selected-actions"
|
|
481
563
|
|
|
564
|
+
headers = {
|
|
565
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
566
|
+
}
|
|
567
|
+
|
|
482
568
|
return self._github.request(
|
|
483
569
|
"GET",
|
|
484
570
|
url,
|
|
571
|
+
headers=exclude_unset(headers),
|
|
485
572
|
response_model=SelectedActions,
|
|
486
573
|
)
|
|
487
574
|
|
|
@@ -491,9 +578,14 @@ class ActionsClient:
|
|
|
491
578
|
) -> "Response[SelectedActions]":
|
|
492
579
|
url = f"/orgs/{org}/actions/permissions/selected-actions"
|
|
493
580
|
|
|
581
|
+
headers = {
|
|
582
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
583
|
+
}
|
|
584
|
+
|
|
494
585
|
return await self._github.arequest(
|
|
495
586
|
"GET",
|
|
496
587
|
url,
|
|
588
|
+
headers=exclude_unset(headers),
|
|
497
589
|
response_model=SelectedActions,
|
|
498
590
|
)
|
|
499
591
|
|
|
@@ -520,6 +612,10 @@ class ActionsClient:
|
|
|
520
612
|
) -> "Response":
|
|
521
613
|
url = f"/orgs/{org}/actions/permissions/selected-actions"
|
|
522
614
|
|
|
615
|
+
headers = {
|
|
616
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
617
|
+
}
|
|
618
|
+
|
|
523
619
|
if not kwargs:
|
|
524
620
|
kwargs = UNSET
|
|
525
621
|
|
|
@@ -531,6 +627,7 @@ class ActionsClient:
|
|
|
531
627
|
"PUT",
|
|
532
628
|
url,
|
|
533
629
|
json=exclude_unset(json),
|
|
630
|
+
headers=exclude_unset(headers),
|
|
534
631
|
)
|
|
535
632
|
|
|
536
633
|
@overload
|
|
@@ -556,6 +653,10 @@ class ActionsClient:
|
|
|
556
653
|
) -> "Response":
|
|
557
654
|
url = f"/orgs/{org}/actions/permissions/selected-actions"
|
|
558
655
|
|
|
656
|
+
headers = {
|
|
657
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
658
|
+
}
|
|
659
|
+
|
|
559
660
|
if not kwargs:
|
|
560
661
|
kwargs = UNSET
|
|
561
662
|
|
|
@@ -567,6 +668,7 @@ class ActionsClient:
|
|
|
567
668
|
"PUT",
|
|
568
669
|
url,
|
|
569
670
|
json=exclude_unset(json),
|
|
671
|
+
headers=exclude_unset(headers),
|
|
570
672
|
)
|
|
571
673
|
|
|
572
674
|
def get_github_actions_default_workflow_permissions_organization(
|
|
@@ -575,9 +677,14 @@ class ActionsClient:
|
|
|
575
677
|
) -> "Response[ActionsGetDefaultWorkflowPermissions]":
|
|
576
678
|
url = f"/orgs/{org}/actions/permissions/workflow"
|
|
577
679
|
|
|
680
|
+
headers = {
|
|
681
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
682
|
+
}
|
|
683
|
+
|
|
578
684
|
return self._github.request(
|
|
579
685
|
"GET",
|
|
580
686
|
url,
|
|
687
|
+
headers=exclude_unset(headers),
|
|
581
688
|
response_model=ActionsGetDefaultWorkflowPermissions,
|
|
582
689
|
)
|
|
583
690
|
|
|
@@ -587,9 +694,14 @@ class ActionsClient:
|
|
|
587
694
|
) -> "Response[ActionsGetDefaultWorkflowPermissions]":
|
|
588
695
|
url = f"/orgs/{org}/actions/permissions/workflow"
|
|
589
696
|
|
|
697
|
+
headers = {
|
|
698
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
699
|
+
}
|
|
700
|
+
|
|
590
701
|
return await self._github.arequest(
|
|
591
702
|
"GET",
|
|
592
703
|
url,
|
|
704
|
+
headers=exclude_unset(headers),
|
|
593
705
|
response_model=ActionsGetDefaultWorkflowPermissions,
|
|
594
706
|
)
|
|
595
707
|
|
|
@@ -622,6 +734,10 @@ class ActionsClient:
|
|
|
622
734
|
) -> "Response":
|
|
623
735
|
url = f"/orgs/{org}/actions/permissions/workflow"
|
|
624
736
|
|
|
737
|
+
headers = {
|
|
738
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
739
|
+
}
|
|
740
|
+
|
|
625
741
|
if not kwargs:
|
|
626
742
|
kwargs = UNSET
|
|
627
743
|
|
|
@@ -633,6 +749,7 @@ class ActionsClient:
|
|
|
633
749
|
"PUT",
|
|
634
750
|
url,
|
|
635
751
|
json=exclude_unset(json),
|
|
752
|
+
headers=exclude_unset(headers),
|
|
636
753
|
)
|
|
637
754
|
|
|
638
755
|
@overload
|
|
@@ -664,6 +781,10 @@ class ActionsClient:
|
|
|
664
781
|
) -> "Response":
|
|
665
782
|
url = f"/orgs/{org}/actions/permissions/workflow"
|
|
666
783
|
|
|
784
|
+
headers = {
|
|
785
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
786
|
+
}
|
|
787
|
+
|
|
667
788
|
if not kwargs:
|
|
668
789
|
kwargs = UNSET
|
|
669
790
|
|
|
@@ -675,6 +796,7 @@ class ActionsClient:
|
|
|
675
796
|
"PUT",
|
|
676
797
|
url,
|
|
677
798
|
json=exclude_unset(json),
|
|
799
|
+
headers=exclude_unset(headers),
|
|
678
800
|
)
|
|
679
801
|
|
|
680
802
|
def list_required_workflows(
|
|
@@ -690,10 +812,15 @@ class ActionsClient:
|
|
|
690
812
|
"page": page,
|
|
691
813
|
}
|
|
692
814
|
|
|
815
|
+
headers = {
|
|
816
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
817
|
+
}
|
|
818
|
+
|
|
693
819
|
return self._github.request(
|
|
694
820
|
"GET",
|
|
695
821
|
url,
|
|
696
822
|
params=exclude_unset(params),
|
|
823
|
+
headers=exclude_unset(headers),
|
|
697
824
|
response_model=OrgsOrgActionsRequiredWorkflowsGetResponse200,
|
|
698
825
|
)
|
|
699
826
|
|
|
@@ -710,10 +837,15 @@ class ActionsClient:
|
|
|
710
837
|
"page": page,
|
|
711
838
|
}
|
|
712
839
|
|
|
840
|
+
headers = {
|
|
841
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
842
|
+
}
|
|
843
|
+
|
|
713
844
|
return await self._github.arequest(
|
|
714
845
|
"GET",
|
|
715
846
|
url,
|
|
716
847
|
params=exclude_unset(params),
|
|
848
|
+
headers=exclude_unset(headers),
|
|
717
849
|
response_model=OrgsOrgActionsRequiredWorkflowsGetResponse200,
|
|
718
850
|
)
|
|
719
851
|
|
|
@@ -745,6 +877,10 @@ class ActionsClient:
|
|
|
745
877
|
) -> "Response[RequiredWorkflow]":
|
|
746
878
|
url = f"/orgs/{org}/actions/required_workflows"
|
|
747
879
|
|
|
880
|
+
headers = {
|
|
881
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
882
|
+
}
|
|
883
|
+
|
|
748
884
|
if not kwargs:
|
|
749
885
|
kwargs = UNSET
|
|
750
886
|
|
|
@@ -756,6 +892,7 @@ class ActionsClient:
|
|
|
756
892
|
"POST",
|
|
757
893
|
url,
|
|
758
894
|
json=exclude_unset(json),
|
|
895
|
+
headers=exclude_unset(headers),
|
|
759
896
|
response_model=RequiredWorkflow,
|
|
760
897
|
error_models={
|
|
761
898
|
"422": ValidationErrorSimple,
|
|
@@ -790,6 +927,10 @@ class ActionsClient:
|
|
|
790
927
|
) -> "Response[RequiredWorkflow]":
|
|
791
928
|
url = f"/orgs/{org}/actions/required_workflows"
|
|
792
929
|
|
|
930
|
+
headers = {
|
|
931
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
932
|
+
}
|
|
933
|
+
|
|
793
934
|
if not kwargs:
|
|
794
935
|
kwargs = UNSET
|
|
795
936
|
|
|
@@ -801,6 +942,7 @@ class ActionsClient:
|
|
|
801
942
|
"POST",
|
|
802
943
|
url,
|
|
803
944
|
json=exclude_unset(json),
|
|
945
|
+
headers=exclude_unset(headers),
|
|
804
946
|
response_model=RequiredWorkflow,
|
|
805
947
|
error_models={
|
|
806
948
|
"422": ValidationErrorSimple,
|
|
@@ -814,9 +956,14 @@ class ActionsClient:
|
|
|
814
956
|
) -> "Response[RequiredWorkflow]":
|
|
815
957
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
816
958
|
|
|
959
|
+
headers = {
|
|
960
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
961
|
+
}
|
|
962
|
+
|
|
817
963
|
return self._github.request(
|
|
818
964
|
"GET",
|
|
819
965
|
url,
|
|
966
|
+
headers=exclude_unset(headers),
|
|
820
967
|
response_model=RequiredWorkflow,
|
|
821
968
|
)
|
|
822
969
|
|
|
@@ -827,9 +974,14 @@ class ActionsClient:
|
|
|
827
974
|
) -> "Response[RequiredWorkflow]":
|
|
828
975
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
829
976
|
|
|
977
|
+
headers = {
|
|
978
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
979
|
+
}
|
|
980
|
+
|
|
830
981
|
return await self._github.arequest(
|
|
831
982
|
"GET",
|
|
832
983
|
url,
|
|
984
|
+
headers=exclude_unset(headers),
|
|
833
985
|
response_model=RequiredWorkflow,
|
|
834
986
|
)
|
|
835
987
|
|
|
@@ -840,9 +992,14 @@ class ActionsClient:
|
|
|
840
992
|
) -> "Response":
|
|
841
993
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
842
994
|
|
|
995
|
+
headers = {
|
|
996
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
997
|
+
}
|
|
998
|
+
|
|
843
999
|
return self._github.request(
|
|
844
1000
|
"DELETE",
|
|
845
1001
|
url,
|
|
1002
|
+
headers=exclude_unset(headers),
|
|
846
1003
|
)
|
|
847
1004
|
|
|
848
1005
|
async def async_delete_required_workflow(
|
|
@@ -852,9 +1009,14 @@ class ActionsClient:
|
|
|
852
1009
|
) -> "Response":
|
|
853
1010
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
854
1011
|
|
|
1012
|
+
headers = {
|
|
1013
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1014
|
+
}
|
|
1015
|
+
|
|
855
1016
|
return await self._github.arequest(
|
|
856
1017
|
"DELETE",
|
|
857
1018
|
url,
|
|
1019
|
+
headers=exclude_unset(headers),
|
|
858
1020
|
)
|
|
859
1021
|
|
|
860
1022
|
@overload
|
|
@@ -893,6 +1055,10 @@ class ActionsClient:
|
|
|
893
1055
|
) -> "Response[RequiredWorkflow]":
|
|
894
1056
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
895
1057
|
|
|
1058
|
+
headers = {
|
|
1059
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1060
|
+
}
|
|
1061
|
+
|
|
896
1062
|
if not kwargs:
|
|
897
1063
|
kwargs = UNSET
|
|
898
1064
|
|
|
@@ -906,6 +1072,7 @@ class ActionsClient:
|
|
|
906
1072
|
"PATCH",
|
|
907
1073
|
url,
|
|
908
1074
|
json=exclude_unset(json),
|
|
1075
|
+
headers=exclude_unset(headers),
|
|
909
1076
|
response_model=RequiredWorkflow,
|
|
910
1077
|
error_models={
|
|
911
1078
|
"422": ValidationErrorSimple,
|
|
@@ -948,6 +1115,10 @@ class ActionsClient:
|
|
|
948
1115
|
) -> "Response[RequiredWorkflow]":
|
|
949
1116
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}"
|
|
950
1117
|
|
|
1118
|
+
headers = {
|
|
1119
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1120
|
+
}
|
|
1121
|
+
|
|
951
1122
|
if not kwargs:
|
|
952
1123
|
kwargs = UNSET
|
|
953
1124
|
|
|
@@ -961,6 +1132,7 @@ class ActionsClient:
|
|
|
961
1132
|
"PATCH",
|
|
962
1133
|
url,
|
|
963
1134
|
json=exclude_unset(json),
|
|
1135
|
+
headers=exclude_unset(headers),
|
|
964
1136
|
response_model=RequiredWorkflow,
|
|
965
1137
|
error_models={
|
|
966
1138
|
"422": ValidationErrorSimple,
|
|
@@ -974,9 +1146,14 @@ class ActionsClient:
|
|
|
974
1146
|
) -> "Response[OrgsOrgActionsRequiredWorkflowsRequiredWorkflowIdRepositoriesGetResponse200]":
|
|
975
1147
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
976
1148
|
|
|
1149
|
+
headers = {
|
|
1150
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1151
|
+
}
|
|
1152
|
+
|
|
977
1153
|
return self._github.request(
|
|
978
1154
|
"GET",
|
|
979
1155
|
url,
|
|
1156
|
+
headers=exclude_unset(headers),
|
|
980
1157
|
response_model=OrgsOrgActionsRequiredWorkflowsRequiredWorkflowIdRepositoriesGetResponse200,
|
|
981
1158
|
error_models={},
|
|
982
1159
|
)
|
|
@@ -988,9 +1165,14 @@ class ActionsClient:
|
|
|
988
1165
|
) -> "Response[OrgsOrgActionsRequiredWorkflowsRequiredWorkflowIdRepositoriesGetResponse200]":
|
|
989
1166
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
990
1167
|
|
|
1168
|
+
headers = {
|
|
1169
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1170
|
+
}
|
|
1171
|
+
|
|
991
1172
|
return await self._github.arequest(
|
|
992
1173
|
"GET",
|
|
993
1174
|
url,
|
|
1175
|
+
headers=exclude_unset(headers),
|
|
994
1176
|
response_model=OrgsOrgActionsRequiredWorkflowsRequiredWorkflowIdRepositoriesGetResponse200,
|
|
995
1177
|
error_models={},
|
|
996
1178
|
)
|
|
@@ -1029,6 +1211,10 @@ class ActionsClient:
|
|
|
1029
1211
|
) -> "Response":
|
|
1030
1212
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
1031
1213
|
|
|
1214
|
+
headers = {
|
|
1215
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1032
1218
|
if not kwargs:
|
|
1033
1219
|
kwargs = UNSET
|
|
1034
1220
|
|
|
@@ -1042,6 +1228,7 @@ class ActionsClient:
|
|
|
1042
1228
|
"PUT",
|
|
1043
1229
|
url,
|
|
1044
1230
|
json=exclude_unset(json),
|
|
1231
|
+
headers=exclude_unset(headers),
|
|
1045
1232
|
)
|
|
1046
1233
|
|
|
1047
1234
|
@overload
|
|
@@ -1078,6 +1265,10 @@ class ActionsClient:
|
|
|
1078
1265
|
) -> "Response":
|
|
1079
1266
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
|
|
1080
1267
|
|
|
1268
|
+
headers = {
|
|
1269
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1081
1272
|
if not kwargs:
|
|
1082
1273
|
kwargs = UNSET
|
|
1083
1274
|
|
|
@@ -1091,6 +1282,7 @@ class ActionsClient:
|
|
|
1091
1282
|
"PUT",
|
|
1092
1283
|
url,
|
|
1093
1284
|
json=exclude_unset(json),
|
|
1285
|
+
headers=exclude_unset(headers),
|
|
1094
1286
|
)
|
|
1095
1287
|
|
|
1096
1288
|
def add_selected_repo_to_required_workflow(
|
|
@@ -1101,9 +1293,14 @@ class ActionsClient:
|
|
|
1101
1293
|
) -> "Response":
|
|
1102
1294
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
1103
1295
|
|
|
1296
|
+
headers = {
|
|
1297
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1104
1300
|
return self._github.request(
|
|
1105
1301
|
"PUT",
|
|
1106
1302
|
url,
|
|
1303
|
+
headers=exclude_unset(headers),
|
|
1107
1304
|
error_models={},
|
|
1108
1305
|
)
|
|
1109
1306
|
|
|
@@ -1115,9 +1312,14 @@ class ActionsClient:
|
|
|
1115
1312
|
) -> "Response":
|
|
1116
1313
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
1117
1314
|
|
|
1315
|
+
headers = {
|
|
1316
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1118
1319
|
return await self._github.arequest(
|
|
1119
1320
|
"PUT",
|
|
1120
1321
|
url,
|
|
1322
|
+
headers=exclude_unset(headers),
|
|
1121
1323
|
error_models={},
|
|
1122
1324
|
)
|
|
1123
1325
|
|
|
@@ -1129,9 +1331,14 @@ class ActionsClient:
|
|
|
1129
1331
|
) -> "Response":
|
|
1130
1332
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
1131
1333
|
|
|
1334
|
+
headers = {
|
|
1335
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1132
1338
|
return self._github.request(
|
|
1133
1339
|
"DELETE",
|
|
1134
1340
|
url,
|
|
1341
|
+
headers=exclude_unset(headers),
|
|
1135
1342
|
error_models={},
|
|
1136
1343
|
)
|
|
1137
1344
|
|
|
@@ -1143,9 +1350,14 @@ class ActionsClient:
|
|
|
1143
1350
|
) -> "Response":
|
|
1144
1351
|
url = f"/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
|
|
1145
1352
|
|
|
1353
|
+
headers = {
|
|
1354
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1146
1357
|
return await self._github.arequest(
|
|
1147
1358
|
"DELETE",
|
|
1148
1359
|
url,
|
|
1360
|
+
headers=exclude_unset(headers),
|
|
1149
1361
|
error_models={},
|
|
1150
1362
|
)
|
|
1151
1363
|
|
|
@@ -1162,10 +1374,15 @@ class ActionsClient:
|
|
|
1162
1374
|
"page": page,
|
|
1163
1375
|
}
|
|
1164
1376
|
|
|
1377
|
+
headers = {
|
|
1378
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1165
1381
|
return self._github.request(
|
|
1166
1382
|
"GET",
|
|
1167
1383
|
url,
|
|
1168
1384
|
params=exclude_unset(params),
|
|
1385
|
+
headers=exclude_unset(headers),
|
|
1169
1386
|
response_model=OrgsOrgActionsRunnersGetResponse200,
|
|
1170
1387
|
)
|
|
1171
1388
|
|
|
@@ -1182,10 +1399,15 @@ class ActionsClient:
|
|
|
1182
1399
|
"page": page,
|
|
1183
1400
|
}
|
|
1184
1401
|
|
|
1402
|
+
headers = {
|
|
1403
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1185
1406
|
return await self._github.arequest(
|
|
1186
1407
|
"GET",
|
|
1187
1408
|
url,
|
|
1188
1409
|
params=exclude_unset(params),
|
|
1410
|
+
headers=exclude_unset(headers),
|
|
1189
1411
|
response_model=OrgsOrgActionsRunnersGetResponse200,
|
|
1190
1412
|
)
|
|
1191
1413
|
|
|
@@ -1195,9 +1417,14 @@ class ActionsClient:
|
|
|
1195
1417
|
) -> "Response[List[RunnerApplication]]":
|
|
1196
1418
|
url = f"/orgs/{org}/actions/runners/downloads"
|
|
1197
1419
|
|
|
1420
|
+
headers = {
|
|
1421
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1198
1424
|
return self._github.request(
|
|
1199
1425
|
"GET",
|
|
1200
1426
|
url,
|
|
1427
|
+
headers=exclude_unset(headers),
|
|
1201
1428
|
response_model=List[RunnerApplication],
|
|
1202
1429
|
)
|
|
1203
1430
|
|
|
@@ -1207,9 +1434,14 @@ class ActionsClient:
|
|
|
1207
1434
|
) -> "Response[List[RunnerApplication]]":
|
|
1208
1435
|
url = f"/orgs/{org}/actions/runners/downloads"
|
|
1209
1436
|
|
|
1437
|
+
headers = {
|
|
1438
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1210
1441
|
return await self._github.arequest(
|
|
1211
1442
|
"GET",
|
|
1212
1443
|
url,
|
|
1444
|
+
headers=exclude_unset(headers),
|
|
1213
1445
|
response_model=List[RunnerApplication],
|
|
1214
1446
|
)
|
|
1215
1447
|
|
|
@@ -1219,9 +1451,14 @@ class ActionsClient:
|
|
|
1219
1451
|
) -> "Response[AuthenticationToken]":
|
|
1220
1452
|
url = f"/orgs/{org}/actions/runners/registration-token"
|
|
1221
1453
|
|
|
1454
|
+
headers = {
|
|
1455
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1222
1458
|
return self._github.request(
|
|
1223
1459
|
"POST",
|
|
1224
1460
|
url,
|
|
1461
|
+
headers=exclude_unset(headers),
|
|
1225
1462
|
response_model=AuthenticationToken,
|
|
1226
1463
|
)
|
|
1227
1464
|
|
|
@@ -1231,9 +1468,14 @@ class ActionsClient:
|
|
|
1231
1468
|
) -> "Response[AuthenticationToken]":
|
|
1232
1469
|
url = f"/orgs/{org}/actions/runners/registration-token"
|
|
1233
1470
|
|
|
1471
|
+
headers = {
|
|
1472
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1234
1475
|
return await self._github.arequest(
|
|
1235
1476
|
"POST",
|
|
1236
1477
|
url,
|
|
1478
|
+
headers=exclude_unset(headers),
|
|
1237
1479
|
response_model=AuthenticationToken,
|
|
1238
1480
|
)
|
|
1239
1481
|
|
|
@@ -1243,9 +1485,14 @@ class ActionsClient:
|
|
|
1243
1485
|
) -> "Response[AuthenticationToken]":
|
|
1244
1486
|
url = f"/orgs/{org}/actions/runners/remove-token"
|
|
1245
1487
|
|
|
1488
|
+
headers = {
|
|
1489
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1246
1492
|
return self._github.request(
|
|
1247
1493
|
"POST",
|
|
1248
1494
|
url,
|
|
1495
|
+
headers=exclude_unset(headers),
|
|
1249
1496
|
response_model=AuthenticationToken,
|
|
1250
1497
|
)
|
|
1251
1498
|
|
|
@@ -1255,9 +1502,14 @@ class ActionsClient:
|
|
|
1255
1502
|
) -> "Response[AuthenticationToken]":
|
|
1256
1503
|
url = f"/orgs/{org}/actions/runners/remove-token"
|
|
1257
1504
|
|
|
1505
|
+
headers = {
|
|
1506
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1258
1509
|
return await self._github.arequest(
|
|
1259
1510
|
"POST",
|
|
1260
1511
|
url,
|
|
1512
|
+
headers=exclude_unset(headers),
|
|
1261
1513
|
response_model=AuthenticationToken,
|
|
1262
1514
|
)
|
|
1263
1515
|
|
|
@@ -1268,9 +1520,14 @@ class ActionsClient:
|
|
|
1268
1520
|
) -> "Response[Runner]":
|
|
1269
1521
|
url = f"/orgs/{org}/actions/runners/{runner_id}"
|
|
1270
1522
|
|
|
1523
|
+
headers = {
|
|
1524
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1271
1527
|
return self._github.request(
|
|
1272
1528
|
"GET",
|
|
1273
1529
|
url,
|
|
1530
|
+
headers=exclude_unset(headers),
|
|
1274
1531
|
response_model=Runner,
|
|
1275
1532
|
)
|
|
1276
1533
|
|
|
@@ -1281,9 +1538,14 @@ class ActionsClient:
|
|
|
1281
1538
|
) -> "Response[Runner]":
|
|
1282
1539
|
url = f"/orgs/{org}/actions/runners/{runner_id}"
|
|
1283
1540
|
|
|
1541
|
+
headers = {
|
|
1542
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1284
1545
|
return await self._github.arequest(
|
|
1285
1546
|
"GET",
|
|
1286
1547
|
url,
|
|
1548
|
+
headers=exclude_unset(headers),
|
|
1287
1549
|
response_model=Runner,
|
|
1288
1550
|
)
|
|
1289
1551
|
|
|
@@ -1294,9 +1556,14 @@ class ActionsClient:
|
|
|
1294
1556
|
) -> "Response":
|
|
1295
1557
|
url = f"/orgs/{org}/actions/runners/{runner_id}"
|
|
1296
1558
|
|
|
1559
|
+
headers = {
|
|
1560
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1297
1563
|
return self._github.request(
|
|
1298
1564
|
"DELETE",
|
|
1299
1565
|
url,
|
|
1566
|
+
headers=exclude_unset(headers),
|
|
1300
1567
|
)
|
|
1301
1568
|
|
|
1302
1569
|
async def async_delete_self_hosted_runner_from_org(
|
|
@@ -1306,9 +1573,14 @@ class ActionsClient:
|
|
|
1306
1573
|
) -> "Response":
|
|
1307
1574
|
url = f"/orgs/{org}/actions/runners/{runner_id}"
|
|
1308
1575
|
|
|
1576
|
+
headers = {
|
|
1577
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1309
1580
|
return await self._github.arequest(
|
|
1310
1581
|
"DELETE",
|
|
1311
1582
|
url,
|
|
1583
|
+
headers=exclude_unset(headers),
|
|
1312
1584
|
)
|
|
1313
1585
|
|
|
1314
1586
|
def list_labels_for_self_hosted_runner_for_org(
|
|
@@ -1318,9 +1590,14 @@ class ActionsClient:
|
|
|
1318
1590
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1319
1591
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1320
1592
|
|
|
1593
|
+
headers = {
|
|
1594
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1321
1597
|
return self._github.request(
|
|
1322
1598
|
"GET",
|
|
1323
1599
|
url,
|
|
1600
|
+
headers=exclude_unset(headers),
|
|
1324
1601
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1325
1602
|
error_models={
|
|
1326
1603
|
"404": BasicError,
|
|
@@ -1334,9 +1611,14 @@ class ActionsClient:
|
|
|
1334
1611
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1335
1612
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1336
1613
|
|
|
1614
|
+
headers = {
|
|
1615
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1337
1618
|
return await self._github.arequest(
|
|
1338
1619
|
"GET",
|
|
1339
1620
|
url,
|
|
1621
|
+
headers=exclude_unset(headers),
|
|
1340
1622
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1341
1623
|
error_models={
|
|
1342
1624
|
"404": BasicError,
|
|
@@ -1374,6 +1656,10 @@ class ActionsClient:
|
|
|
1374
1656
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1375
1657
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1376
1658
|
|
|
1659
|
+
headers = {
|
|
1660
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1377
1663
|
if not kwargs:
|
|
1378
1664
|
kwargs = UNSET
|
|
1379
1665
|
|
|
@@ -1385,6 +1671,7 @@ class ActionsClient:
|
|
|
1385
1671
|
"PUT",
|
|
1386
1672
|
url,
|
|
1387
1673
|
json=exclude_unset(json),
|
|
1674
|
+
headers=exclude_unset(headers),
|
|
1388
1675
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1389
1676
|
error_models={
|
|
1390
1677
|
"404": BasicError,
|
|
@@ -1423,6 +1710,10 @@ class ActionsClient:
|
|
|
1423
1710
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1424
1711
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1425
1712
|
|
|
1713
|
+
headers = {
|
|
1714
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1426
1717
|
if not kwargs:
|
|
1427
1718
|
kwargs = UNSET
|
|
1428
1719
|
|
|
@@ -1434,6 +1725,7 @@ class ActionsClient:
|
|
|
1434
1725
|
"PUT",
|
|
1435
1726
|
url,
|
|
1436
1727
|
json=exclude_unset(json),
|
|
1728
|
+
headers=exclude_unset(headers),
|
|
1437
1729
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1438
1730
|
error_models={
|
|
1439
1731
|
"404": BasicError,
|
|
@@ -1472,6 +1764,10 @@ class ActionsClient:
|
|
|
1472
1764
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1473
1765
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1474
1766
|
|
|
1767
|
+
headers = {
|
|
1768
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1475
1771
|
if not kwargs:
|
|
1476
1772
|
kwargs = UNSET
|
|
1477
1773
|
|
|
@@ -1483,6 +1779,7 @@ class ActionsClient:
|
|
|
1483
1779
|
"POST",
|
|
1484
1780
|
url,
|
|
1485
1781
|
json=exclude_unset(json),
|
|
1782
|
+
headers=exclude_unset(headers),
|
|
1486
1783
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1487
1784
|
error_models={
|
|
1488
1785
|
"404": BasicError,
|
|
@@ -1521,6 +1818,10 @@ class ActionsClient:
|
|
|
1521
1818
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1522
1819
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1523
1820
|
|
|
1821
|
+
headers = {
|
|
1822
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1524
1825
|
if not kwargs:
|
|
1525
1826
|
kwargs = UNSET
|
|
1526
1827
|
|
|
@@ -1532,6 +1833,7 @@ class ActionsClient:
|
|
|
1532
1833
|
"POST",
|
|
1533
1834
|
url,
|
|
1534
1835
|
json=exclude_unset(json),
|
|
1836
|
+
headers=exclude_unset(headers),
|
|
1535
1837
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1536
1838
|
error_models={
|
|
1537
1839
|
"404": BasicError,
|
|
@@ -1546,9 +1848,14 @@ class ActionsClient:
|
|
|
1546
1848
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200]":
|
|
1547
1849
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1548
1850
|
|
|
1851
|
+
headers = {
|
|
1852
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1549
1855
|
return self._github.request(
|
|
1550
1856
|
"DELETE",
|
|
1551
1857
|
url,
|
|
1858
|
+
headers=exclude_unset(headers),
|
|
1552
1859
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200,
|
|
1553
1860
|
error_models={
|
|
1554
1861
|
"404": BasicError,
|
|
@@ -1562,9 +1869,14 @@ class ActionsClient:
|
|
|
1562
1869
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200]":
|
|
1563
1870
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels"
|
|
1564
1871
|
|
|
1872
|
+
headers = {
|
|
1873
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1565
1876
|
return await self._github.arequest(
|
|
1566
1877
|
"DELETE",
|
|
1567
1878
|
url,
|
|
1879
|
+
headers=exclude_unset(headers),
|
|
1568
1880
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200,
|
|
1569
1881
|
error_models={
|
|
1570
1882
|
"404": BasicError,
|
|
@@ -1579,9 +1891,14 @@ class ActionsClient:
|
|
|
1579
1891
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1580
1892
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
1581
1893
|
|
|
1894
|
+
headers = {
|
|
1895
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1582
1898
|
return self._github.request(
|
|
1583
1899
|
"DELETE",
|
|
1584
1900
|
url,
|
|
1901
|
+
headers=exclude_unset(headers),
|
|
1585
1902
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1586
1903
|
error_models={
|
|
1587
1904
|
"404": BasicError,
|
|
@@ -1597,9 +1914,14 @@ class ActionsClient:
|
|
|
1597
1914
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
1598
1915
|
url = f"/orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
1599
1916
|
|
|
1917
|
+
headers = {
|
|
1918
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1600
1921
|
return await self._github.arequest(
|
|
1601
1922
|
"DELETE",
|
|
1602
1923
|
url,
|
|
1924
|
+
headers=exclude_unset(headers),
|
|
1603
1925
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
1604
1926
|
error_models={
|
|
1605
1927
|
"404": BasicError,
|
|
@@ -1620,10 +1942,15 @@ class ActionsClient:
|
|
|
1620
1942
|
"page": page,
|
|
1621
1943
|
}
|
|
1622
1944
|
|
|
1945
|
+
headers = {
|
|
1946
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1623
1949
|
return self._github.request(
|
|
1624
1950
|
"GET",
|
|
1625
1951
|
url,
|
|
1626
1952
|
params=exclude_unset(params),
|
|
1953
|
+
headers=exclude_unset(headers),
|
|
1627
1954
|
response_model=OrgsOrgActionsSecretsGetResponse200,
|
|
1628
1955
|
)
|
|
1629
1956
|
|
|
@@ -1640,10 +1967,15 @@ class ActionsClient:
|
|
|
1640
1967
|
"page": page,
|
|
1641
1968
|
}
|
|
1642
1969
|
|
|
1970
|
+
headers = {
|
|
1971
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1643
1974
|
return await self._github.arequest(
|
|
1644
1975
|
"GET",
|
|
1645
1976
|
url,
|
|
1646
1977
|
params=exclude_unset(params),
|
|
1978
|
+
headers=exclude_unset(headers),
|
|
1647
1979
|
response_model=OrgsOrgActionsSecretsGetResponse200,
|
|
1648
1980
|
)
|
|
1649
1981
|
|
|
@@ -1653,9 +1985,14 @@ class ActionsClient:
|
|
|
1653
1985
|
) -> "Response[ActionsPublicKey]":
|
|
1654
1986
|
url = f"/orgs/{org}/actions/secrets/public-key"
|
|
1655
1987
|
|
|
1988
|
+
headers = {
|
|
1989
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1656
1992
|
return self._github.request(
|
|
1657
1993
|
"GET",
|
|
1658
1994
|
url,
|
|
1995
|
+
headers=exclude_unset(headers),
|
|
1659
1996
|
response_model=ActionsPublicKey,
|
|
1660
1997
|
)
|
|
1661
1998
|
|
|
@@ -1665,9 +2002,14 @@ class ActionsClient:
|
|
|
1665
2002
|
) -> "Response[ActionsPublicKey]":
|
|
1666
2003
|
url = f"/orgs/{org}/actions/secrets/public-key"
|
|
1667
2004
|
|
|
2005
|
+
headers = {
|
|
2006
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2007
|
+
}
|
|
2008
|
+
|
|
1668
2009
|
return await self._github.arequest(
|
|
1669
2010
|
"GET",
|
|
1670
2011
|
url,
|
|
2012
|
+
headers=exclude_unset(headers),
|
|
1671
2013
|
response_model=ActionsPublicKey,
|
|
1672
2014
|
)
|
|
1673
2015
|
|
|
@@ -1678,9 +2020,14 @@ class ActionsClient:
|
|
|
1678
2020
|
) -> "Response[OrganizationActionsSecret]":
|
|
1679
2021
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
1680
2022
|
|
|
2023
|
+
headers = {
|
|
2024
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2025
|
+
}
|
|
2026
|
+
|
|
1681
2027
|
return self._github.request(
|
|
1682
2028
|
"GET",
|
|
1683
2029
|
url,
|
|
2030
|
+
headers=exclude_unset(headers),
|
|
1684
2031
|
response_model=OrganizationActionsSecret,
|
|
1685
2032
|
)
|
|
1686
2033
|
|
|
@@ -1691,9 +2038,14 @@ class ActionsClient:
|
|
|
1691
2038
|
) -> "Response[OrganizationActionsSecret]":
|
|
1692
2039
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
1693
2040
|
|
|
2041
|
+
headers = {
|
|
2042
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2043
|
+
}
|
|
2044
|
+
|
|
1694
2045
|
return await self._github.arequest(
|
|
1695
2046
|
"GET",
|
|
1696
2047
|
url,
|
|
2048
|
+
headers=exclude_unset(headers),
|
|
1697
2049
|
response_model=OrganizationActionsSecret,
|
|
1698
2050
|
)
|
|
1699
2051
|
|
|
@@ -1731,6 +2083,10 @@ class ActionsClient:
|
|
|
1731
2083
|
) -> "Response[EmptyObject]":
|
|
1732
2084
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
1733
2085
|
|
|
2086
|
+
headers = {
|
|
2087
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2088
|
+
}
|
|
2089
|
+
|
|
1734
2090
|
if not kwargs:
|
|
1735
2091
|
kwargs = UNSET
|
|
1736
2092
|
|
|
@@ -1742,6 +2098,7 @@ class ActionsClient:
|
|
|
1742
2098
|
"PUT",
|
|
1743
2099
|
url,
|
|
1744
2100
|
json=exclude_unset(json),
|
|
2101
|
+
headers=exclude_unset(headers),
|
|
1745
2102
|
response_model=EmptyObject,
|
|
1746
2103
|
)
|
|
1747
2104
|
|
|
@@ -1779,6 +2136,10 @@ class ActionsClient:
|
|
|
1779
2136
|
) -> "Response[EmptyObject]":
|
|
1780
2137
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
1781
2138
|
|
|
2139
|
+
headers = {
|
|
2140
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2141
|
+
}
|
|
2142
|
+
|
|
1782
2143
|
if not kwargs:
|
|
1783
2144
|
kwargs = UNSET
|
|
1784
2145
|
|
|
@@ -1790,6 +2151,7 @@ class ActionsClient:
|
|
|
1790
2151
|
"PUT",
|
|
1791
2152
|
url,
|
|
1792
2153
|
json=exclude_unset(json),
|
|
2154
|
+
headers=exclude_unset(headers),
|
|
1793
2155
|
response_model=EmptyObject,
|
|
1794
2156
|
)
|
|
1795
2157
|
|
|
@@ -1800,9 +2162,14 @@ class ActionsClient:
|
|
|
1800
2162
|
) -> "Response":
|
|
1801
2163
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
1802
2164
|
|
|
2165
|
+
headers = {
|
|
2166
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2167
|
+
}
|
|
2168
|
+
|
|
1803
2169
|
return self._github.request(
|
|
1804
2170
|
"DELETE",
|
|
1805
2171
|
url,
|
|
2172
|
+
headers=exclude_unset(headers),
|
|
1806
2173
|
)
|
|
1807
2174
|
|
|
1808
2175
|
async def async_delete_org_secret(
|
|
@@ -1812,9 +2179,14 @@ class ActionsClient:
|
|
|
1812
2179
|
) -> "Response":
|
|
1813
2180
|
url = f"/orgs/{org}/actions/secrets/{secret_name}"
|
|
1814
2181
|
|
|
2182
|
+
headers = {
|
|
2183
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2184
|
+
}
|
|
2185
|
+
|
|
1815
2186
|
return await self._github.arequest(
|
|
1816
2187
|
"DELETE",
|
|
1817
2188
|
url,
|
|
2189
|
+
headers=exclude_unset(headers),
|
|
1818
2190
|
)
|
|
1819
2191
|
|
|
1820
2192
|
def list_selected_repos_for_org_secret(
|
|
@@ -1831,10 +2203,15 @@ class ActionsClient:
|
|
|
1831
2203
|
"per_page": per_page,
|
|
1832
2204
|
}
|
|
1833
2205
|
|
|
2206
|
+
headers = {
|
|
2207
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2208
|
+
}
|
|
2209
|
+
|
|
1834
2210
|
return self._github.request(
|
|
1835
2211
|
"GET",
|
|
1836
2212
|
url,
|
|
1837
2213
|
params=exclude_unset(params),
|
|
2214
|
+
headers=exclude_unset(headers),
|
|
1838
2215
|
response_model=OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200,
|
|
1839
2216
|
)
|
|
1840
2217
|
|
|
@@ -1852,10 +2229,15 @@ class ActionsClient:
|
|
|
1852
2229
|
"per_page": per_page,
|
|
1853
2230
|
}
|
|
1854
2231
|
|
|
2232
|
+
headers = {
|
|
2233
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2234
|
+
}
|
|
2235
|
+
|
|
1855
2236
|
return await self._github.arequest(
|
|
1856
2237
|
"GET",
|
|
1857
2238
|
url,
|
|
1858
2239
|
params=exclude_unset(params),
|
|
2240
|
+
headers=exclude_unset(headers),
|
|
1859
2241
|
response_model=OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200,
|
|
1860
2242
|
)
|
|
1861
2243
|
|
|
@@ -1892,6 +2274,10 @@ class ActionsClient:
|
|
|
1892
2274
|
) -> "Response":
|
|
1893
2275
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
1894
2276
|
|
|
2277
|
+
headers = {
|
|
2278
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2279
|
+
}
|
|
2280
|
+
|
|
1895
2281
|
if not kwargs:
|
|
1896
2282
|
kwargs = UNSET
|
|
1897
2283
|
|
|
@@ -1903,6 +2289,7 @@ class ActionsClient:
|
|
|
1903
2289
|
"PUT",
|
|
1904
2290
|
url,
|
|
1905
2291
|
json=exclude_unset(json),
|
|
2292
|
+
headers=exclude_unset(headers),
|
|
1906
2293
|
)
|
|
1907
2294
|
|
|
1908
2295
|
@overload
|
|
@@ -1938,6 +2325,10 @@ class ActionsClient:
|
|
|
1938
2325
|
) -> "Response":
|
|
1939
2326
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
1940
2327
|
|
|
2328
|
+
headers = {
|
|
2329
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2330
|
+
}
|
|
2331
|
+
|
|
1941
2332
|
if not kwargs:
|
|
1942
2333
|
kwargs = UNSET
|
|
1943
2334
|
|
|
@@ -1949,6 +2340,7 @@ class ActionsClient:
|
|
|
1949
2340
|
"PUT",
|
|
1950
2341
|
url,
|
|
1951
2342
|
json=exclude_unset(json),
|
|
2343
|
+
headers=exclude_unset(headers),
|
|
1952
2344
|
)
|
|
1953
2345
|
|
|
1954
2346
|
def add_selected_repo_to_org_secret(
|
|
@@ -1959,9 +2351,14 @@ class ActionsClient:
|
|
|
1959
2351
|
) -> "Response":
|
|
1960
2352
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
1961
2353
|
|
|
2354
|
+
headers = {
|
|
2355
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2356
|
+
}
|
|
2357
|
+
|
|
1962
2358
|
return self._github.request(
|
|
1963
2359
|
"PUT",
|
|
1964
2360
|
url,
|
|
2361
|
+
headers=exclude_unset(headers),
|
|
1965
2362
|
error_models={},
|
|
1966
2363
|
)
|
|
1967
2364
|
|
|
@@ -1973,9 +2370,14 @@ class ActionsClient:
|
|
|
1973
2370
|
) -> "Response":
|
|
1974
2371
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
1975
2372
|
|
|
2373
|
+
headers = {
|
|
2374
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2375
|
+
}
|
|
2376
|
+
|
|
1976
2377
|
return await self._github.arequest(
|
|
1977
2378
|
"PUT",
|
|
1978
2379
|
url,
|
|
2380
|
+
headers=exclude_unset(headers),
|
|
1979
2381
|
error_models={},
|
|
1980
2382
|
)
|
|
1981
2383
|
|
|
@@ -1987,9 +2389,14 @@ class ActionsClient:
|
|
|
1987
2389
|
) -> "Response":
|
|
1988
2390
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
1989
2391
|
|
|
2392
|
+
headers = {
|
|
2393
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2394
|
+
}
|
|
2395
|
+
|
|
1990
2396
|
return self._github.request(
|
|
1991
2397
|
"DELETE",
|
|
1992
2398
|
url,
|
|
2399
|
+
headers=exclude_unset(headers),
|
|
1993
2400
|
error_models={},
|
|
1994
2401
|
)
|
|
1995
2402
|
|
|
@@ -2001,9 +2408,14 @@ class ActionsClient:
|
|
|
2001
2408
|
) -> "Response":
|
|
2002
2409
|
url = f"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
2003
2410
|
|
|
2411
|
+
headers = {
|
|
2412
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2004
2415
|
return await self._github.arequest(
|
|
2005
2416
|
"DELETE",
|
|
2006
2417
|
url,
|
|
2418
|
+
headers=exclude_unset(headers),
|
|
2007
2419
|
error_models={},
|
|
2008
2420
|
)
|
|
2009
2421
|
|
|
@@ -2020,10 +2432,15 @@ class ActionsClient:
|
|
|
2020
2432
|
"page": page,
|
|
2021
2433
|
}
|
|
2022
2434
|
|
|
2435
|
+
headers = {
|
|
2436
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2023
2439
|
return self._github.request(
|
|
2024
2440
|
"GET",
|
|
2025
2441
|
url,
|
|
2026
2442
|
params=exclude_unset(params),
|
|
2443
|
+
headers=exclude_unset(headers),
|
|
2027
2444
|
response_model=OrgsOrgActionsVariablesGetResponse200,
|
|
2028
2445
|
)
|
|
2029
2446
|
|
|
@@ -2040,10 +2457,15 @@ class ActionsClient:
|
|
|
2040
2457
|
"page": page,
|
|
2041
2458
|
}
|
|
2042
2459
|
|
|
2460
|
+
headers = {
|
|
2461
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2043
2464
|
return await self._github.arequest(
|
|
2044
2465
|
"GET",
|
|
2045
2466
|
url,
|
|
2046
2467
|
params=exclude_unset(params),
|
|
2468
|
+
headers=exclude_unset(headers),
|
|
2047
2469
|
response_model=OrgsOrgActionsVariablesGetResponse200,
|
|
2048
2470
|
)
|
|
2049
2471
|
|
|
@@ -2075,6 +2497,10 @@ class ActionsClient:
|
|
|
2075
2497
|
) -> "Response[EmptyObject]":
|
|
2076
2498
|
url = f"/orgs/{org}/actions/variables"
|
|
2077
2499
|
|
|
2500
|
+
headers = {
|
|
2501
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2078
2504
|
if not kwargs:
|
|
2079
2505
|
kwargs = UNSET
|
|
2080
2506
|
|
|
@@ -2086,6 +2512,7 @@ class ActionsClient:
|
|
|
2086
2512
|
"POST",
|
|
2087
2513
|
url,
|
|
2088
2514
|
json=exclude_unset(json),
|
|
2515
|
+
headers=exclude_unset(headers),
|
|
2089
2516
|
response_model=EmptyObject,
|
|
2090
2517
|
)
|
|
2091
2518
|
|
|
@@ -2117,6 +2544,10 @@ class ActionsClient:
|
|
|
2117
2544
|
) -> "Response[EmptyObject]":
|
|
2118
2545
|
url = f"/orgs/{org}/actions/variables"
|
|
2119
2546
|
|
|
2547
|
+
headers = {
|
|
2548
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2120
2551
|
if not kwargs:
|
|
2121
2552
|
kwargs = UNSET
|
|
2122
2553
|
|
|
@@ -2128,6 +2559,7 @@ class ActionsClient:
|
|
|
2128
2559
|
"POST",
|
|
2129
2560
|
url,
|
|
2130
2561
|
json=exclude_unset(json),
|
|
2562
|
+
headers=exclude_unset(headers),
|
|
2131
2563
|
response_model=EmptyObject,
|
|
2132
2564
|
)
|
|
2133
2565
|
|
|
@@ -2138,9 +2570,14 @@ class ActionsClient:
|
|
|
2138
2570
|
) -> "Response[OrganizationActionsVariable]":
|
|
2139
2571
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
2140
2572
|
|
|
2573
|
+
headers = {
|
|
2574
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2141
2577
|
return self._github.request(
|
|
2142
2578
|
"GET",
|
|
2143
2579
|
url,
|
|
2580
|
+
headers=exclude_unset(headers),
|
|
2144
2581
|
response_model=OrganizationActionsVariable,
|
|
2145
2582
|
)
|
|
2146
2583
|
|
|
@@ -2151,9 +2588,14 @@ class ActionsClient:
|
|
|
2151
2588
|
) -> "Response[OrganizationActionsVariable]":
|
|
2152
2589
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
2153
2590
|
|
|
2591
|
+
headers = {
|
|
2592
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2154
2595
|
return await self._github.arequest(
|
|
2155
2596
|
"GET",
|
|
2156
2597
|
url,
|
|
2598
|
+
headers=exclude_unset(headers),
|
|
2157
2599
|
response_model=OrganizationActionsVariable,
|
|
2158
2600
|
)
|
|
2159
2601
|
|
|
@@ -2164,9 +2606,14 @@ class ActionsClient:
|
|
|
2164
2606
|
) -> "Response":
|
|
2165
2607
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
2166
2608
|
|
|
2609
|
+
headers = {
|
|
2610
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2167
2613
|
return self._github.request(
|
|
2168
2614
|
"DELETE",
|
|
2169
2615
|
url,
|
|
2616
|
+
headers=exclude_unset(headers),
|
|
2170
2617
|
)
|
|
2171
2618
|
|
|
2172
2619
|
async def async_delete_org_variable(
|
|
@@ -2176,9 +2623,14 @@ class ActionsClient:
|
|
|
2176
2623
|
) -> "Response":
|
|
2177
2624
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
2178
2625
|
|
|
2626
|
+
headers = {
|
|
2627
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2179
2630
|
return await self._github.arequest(
|
|
2180
2631
|
"DELETE",
|
|
2181
2632
|
url,
|
|
2633
|
+
headers=exclude_unset(headers),
|
|
2182
2634
|
)
|
|
2183
2635
|
|
|
2184
2636
|
@overload
|
|
@@ -2210,6 +2662,10 @@ class ActionsClient:
|
|
|
2210
2662
|
) -> "Response":
|
|
2211
2663
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
2212
2664
|
|
|
2665
|
+
headers = {
|
|
2666
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2213
2669
|
if not kwargs:
|
|
2214
2670
|
kwargs = UNSET
|
|
2215
2671
|
|
|
@@ -2221,6 +2677,7 @@ class ActionsClient:
|
|
|
2221
2677
|
"PATCH",
|
|
2222
2678
|
url,
|
|
2223
2679
|
json=exclude_unset(json),
|
|
2680
|
+
headers=exclude_unset(headers),
|
|
2224
2681
|
)
|
|
2225
2682
|
|
|
2226
2683
|
@overload
|
|
@@ -2252,6 +2709,10 @@ class ActionsClient:
|
|
|
2252
2709
|
) -> "Response":
|
|
2253
2710
|
url = f"/orgs/{org}/actions/variables/{name}"
|
|
2254
2711
|
|
|
2712
|
+
headers = {
|
|
2713
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2255
2716
|
if not kwargs:
|
|
2256
2717
|
kwargs = UNSET
|
|
2257
2718
|
|
|
@@ -2263,6 +2724,7 @@ class ActionsClient:
|
|
|
2263
2724
|
"PATCH",
|
|
2264
2725
|
url,
|
|
2265
2726
|
json=exclude_unset(json),
|
|
2727
|
+
headers=exclude_unset(headers),
|
|
2266
2728
|
)
|
|
2267
2729
|
|
|
2268
2730
|
def list_selected_repos_for_org_variable(
|
|
@@ -2279,10 +2741,15 @@ class ActionsClient:
|
|
|
2279
2741
|
"per_page": per_page,
|
|
2280
2742
|
}
|
|
2281
2743
|
|
|
2744
|
+
headers = {
|
|
2745
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2282
2748
|
return self._github.request(
|
|
2283
2749
|
"GET",
|
|
2284
2750
|
url,
|
|
2285
2751
|
params=exclude_unset(params),
|
|
2752
|
+
headers=exclude_unset(headers),
|
|
2286
2753
|
response_model=OrgsOrgActionsVariablesNameRepositoriesGetResponse200,
|
|
2287
2754
|
error_models={},
|
|
2288
2755
|
)
|
|
@@ -2301,10 +2768,15 @@ class ActionsClient:
|
|
|
2301
2768
|
"per_page": per_page,
|
|
2302
2769
|
}
|
|
2303
2770
|
|
|
2771
|
+
headers = {
|
|
2772
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2304
2775
|
return await self._github.arequest(
|
|
2305
2776
|
"GET",
|
|
2306
2777
|
url,
|
|
2307
2778
|
params=exclude_unset(params),
|
|
2779
|
+
headers=exclude_unset(headers),
|
|
2308
2780
|
response_model=OrgsOrgActionsVariablesNameRepositoriesGetResponse200,
|
|
2309
2781
|
error_models={},
|
|
2310
2782
|
)
|
|
@@ -2340,6 +2812,10 @@ class ActionsClient:
|
|
|
2340
2812
|
) -> "Response":
|
|
2341
2813
|
url = f"/orgs/{org}/actions/variables/{name}/repositories"
|
|
2342
2814
|
|
|
2815
|
+
headers = {
|
|
2816
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2343
2819
|
if not kwargs:
|
|
2344
2820
|
kwargs = UNSET
|
|
2345
2821
|
|
|
@@ -2351,6 +2827,7 @@ class ActionsClient:
|
|
|
2351
2827
|
"PUT",
|
|
2352
2828
|
url,
|
|
2353
2829
|
json=exclude_unset(json),
|
|
2830
|
+
headers=exclude_unset(headers),
|
|
2354
2831
|
error_models={},
|
|
2355
2832
|
)
|
|
2356
2833
|
|
|
@@ -2385,6 +2862,10 @@ class ActionsClient:
|
|
|
2385
2862
|
) -> "Response":
|
|
2386
2863
|
url = f"/orgs/{org}/actions/variables/{name}/repositories"
|
|
2387
2864
|
|
|
2865
|
+
headers = {
|
|
2866
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2388
2869
|
if not kwargs:
|
|
2389
2870
|
kwargs = UNSET
|
|
2390
2871
|
|
|
@@ -2396,6 +2877,7 @@ class ActionsClient:
|
|
|
2396
2877
|
"PUT",
|
|
2397
2878
|
url,
|
|
2398
2879
|
json=exclude_unset(json),
|
|
2880
|
+
headers=exclude_unset(headers),
|
|
2399
2881
|
error_models={},
|
|
2400
2882
|
)
|
|
2401
2883
|
|
|
@@ -2407,9 +2889,14 @@ class ActionsClient:
|
|
|
2407
2889
|
) -> "Response":
|
|
2408
2890
|
url = f"/orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
2409
2891
|
|
|
2892
|
+
headers = {
|
|
2893
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2410
2896
|
return self._github.request(
|
|
2411
2897
|
"PUT",
|
|
2412
2898
|
url,
|
|
2899
|
+
headers=exclude_unset(headers),
|
|
2413
2900
|
error_models={},
|
|
2414
2901
|
)
|
|
2415
2902
|
|
|
@@ -2421,9 +2908,14 @@ class ActionsClient:
|
|
|
2421
2908
|
) -> "Response":
|
|
2422
2909
|
url = f"/orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
2423
2910
|
|
|
2911
|
+
headers = {
|
|
2912
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2424
2915
|
return await self._github.arequest(
|
|
2425
2916
|
"PUT",
|
|
2426
2917
|
url,
|
|
2918
|
+
headers=exclude_unset(headers),
|
|
2427
2919
|
error_models={},
|
|
2428
2920
|
)
|
|
2429
2921
|
|
|
@@ -2435,9 +2927,14 @@ class ActionsClient:
|
|
|
2435
2927
|
) -> "Response":
|
|
2436
2928
|
url = f"/orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
2437
2929
|
|
|
2930
|
+
headers = {
|
|
2931
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2438
2934
|
return self._github.request(
|
|
2439
2935
|
"DELETE",
|
|
2440
2936
|
url,
|
|
2937
|
+
headers=exclude_unset(headers),
|
|
2441
2938
|
error_models={},
|
|
2442
2939
|
)
|
|
2443
2940
|
|
|
@@ -2449,9 +2946,14 @@ class ActionsClient:
|
|
|
2449
2946
|
) -> "Response":
|
|
2450
2947
|
url = f"/orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
2451
2948
|
|
|
2949
|
+
headers = {
|
|
2950
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2452
2953
|
return await self._github.arequest(
|
|
2453
2954
|
"DELETE",
|
|
2454
2955
|
url,
|
|
2956
|
+
headers=exclude_unset(headers),
|
|
2455
2957
|
error_models={},
|
|
2456
2958
|
)
|
|
2457
2959
|
|
|
@@ -2469,10 +2971,15 @@ class ActionsClient:
|
|
|
2469
2971
|
"page": page,
|
|
2470
2972
|
}
|
|
2471
2973
|
|
|
2974
|
+
headers = {
|
|
2975
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2472
2978
|
return self._github.request(
|
|
2473
2979
|
"GET",
|
|
2474
2980
|
url,
|
|
2475
2981
|
params=exclude_unset(params),
|
|
2982
|
+
headers=exclude_unset(headers),
|
|
2476
2983
|
response_model=ReposOrgRepoActionsRequiredWorkflowsGetResponse200,
|
|
2477
2984
|
error_models={
|
|
2478
2985
|
"404": BasicError,
|
|
@@ -2493,10 +3000,15 @@ class ActionsClient:
|
|
|
2493
3000
|
"page": page,
|
|
2494
3001
|
}
|
|
2495
3002
|
|
|
3003
|
+
headers = {
|
|
3004
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3005
|
+
}
|
|
3006
|
+
|
|
2496
3007
|
return await self._github.arequest(
|
|
2497
3008
|
"GET",
|
|
2498
3009
|
url,
|
|
2499
3010
|
params=exclude_unset(params),
|
|
3011
|
+
headers=exclude_unset(headers),
|
|
2500
3012
|
response_model=ReposOrgRepoActionsRequiredWorkflowsGetResponse200,
|
|
2501
3013
|
error_models={
|
|
2502
3014
|
"404": BasicError,
|
|
@@ -2511,9 +3023,14 @@ class ActionsClient:
|
|
|
2511
3023
|
) -> "Response[RepoRequiredWorkflow]":
|
|
2512
3024
|
url = f"/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
|
|
2513
3025
|
|
|
3026
|
+
headers = {
|
|
3027
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3028
|
+
}
|
|
3029
|
+
|
|
2514
3030
|
return self._github.request(
|
|
2515
3031
|
"GET",
|
|
2516
3032
|
url,
|
|
3033
|
+
headers=exclude_unset(headers),
|
|
2517
3034
|
response_model=RepoRequiredWorkflow,
|
|
2518
3035
|
error_models={
|
|
2519
3036
|
"404": BasicError,
|
|
@@ -2528,9 +3045,14 @@ class ActionsClient:
|
|
|
2528
3045
|
) -> "Response[RepoRequiredWorkflow]":
|
|
2529
3046
|
url = f"/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
|
|
2530
3047
|
|
|
3048
|
+
headers = {
|
|
3049
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3050
|
+
}
|
|
3051
|
+
|
|
2531
3052
|
return await self._github.arequest(
|
|
2532
3053
|
"GET",
|
|
2533
3054
|
url,
|
|
3055
|
+
headers=exclude_unset(headers),
|
|
2534
3056
|
response_model=RepoRequiredWorkflow,
|
|
2535
3057
|
error_models={
|
|
2536
3058
|
"404": BasicError,
|
|
@@ -2545,9 +3067,14 @@ class ActionsClient:
|
|
|
2545
3067
|
) -> "Response[WorkflowUsage]":
|
|
2546
3068
|
url = f"/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"
|
|
2547
3069
|
|
|
3070
|
+
headers = {
|
|
3071
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3072
|
+
}
|
|
3073
|
+
|
|
2548
3074
|
return self._github.request(
|
|
2549
3075
|
"GET",
|
|
2550
3076
|
url,
|
|
3077
|
+
headers=exclude_unset(headers),
|
|
2551
3078
|
response_model=WorkflowUsage,
|
|
2552
3079
|
error_models={
|
|
2553
3080
|
"404": BasicError,
|
|
@@ -2562,9 +3089,14 @@ class ActionsClient:
|
|
|
2562
3089
|
) -> "Response[WorkflowUsage]":
|
|
2563
3090
|
url = f"/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"
|
|
2564
3091
|
|
|
3092
|
+
headers = {
|
|
3093
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3094
|
+
}
|
|
3095
|
+
|
|
2565
3096
|
return await self._github.arequest(
|
|
2566
3097
|
"GET",
|
|
2567
3098
|
url,
|
|
3099
|
+
headers=exclude_unset(headers),
|
|
2568
3100
|
response_model=WorkflowUsage,
|
|
2569
3101
|
error_models={
|
|
2570
3102
|
"404": BasicError,
|
|
@@ -2587,10 +3119,15 @@ class ActionsClient:
|
|
|
2587
3119
|
"name": name,
|
|
2588
3120
|
}
|
|
2589
3121
|
|
|
3122
|
+
headers = {
|
|
3123
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3124
|
+
}
|
|
3125
|
+
|
|
2590
3126
|
return self._github.request(
|
|
2591
3127
|
"GET",
|
|
2592
3128
|
url,
|
|
2593
3129
|
params=exclude_unset(params),
|
|
3130
|
+
headers=exclude_unset(headers),
|
|
2594
3131
|
response_model=ReposOwnerRepoActionsArtifactsGetResponse200,
|
|
2595
3132
|
)
|
|
2596
3133
|
|
|
@@ -2610,10 +3147,15 @@ class ActionsClient:
|
|
|
2610
3147
|
"name": name,
|
|
2611
3148
|
}
|
|
2612
3149
|
|
|
3150
|
+
headers = {
|
|
3151
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3152
|
+
}
|
|
3153
|
+
|
|
2613
3154
|
return await self._github.arequest(
|
|
2614
3155
|
"GET",
|
|
2615
3156
|
url,
|
|
2616
3157
|
params=exclude_unset(params),
|
|
3158
|
+
headers=exclude_unset(headers),
|
|
2617
3159
|
response_model=ReposOwnerRepoActionsArtifactsGetResponse200,
|
|
2618
3160
|
)
|
|
2619
3161
|
|
|
@@ -2625,9 +3167,14 @@ class ActionsClient:
|
|
|
2625
3167
|
) -> "Response[Artifact]":
|
|
2626
3168
|
url = f"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
2627
3169
|
|
|
3170
|
+
headers = {
|
|
3171
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3172
|
+
}
|
|
3173
|
+
|
|
2628
3174
|
return self._github.request(
|
|
2629
3175
|
"GET",
|
|
2630
3176
|
url,
|
|
3177
|
+
headers=exclude_unset(headers),
|
|
2631
3178
|
response_model=Artifact,
|
|
2632
3179
|
)
|
|
2633
3180
|
|
|
@@ -2639,9 +3186,14 @@ class ActionsClient:
|
|
|
2639
3186
|
) -> "Response[Artifact]":
|
|
2640
3187
|
url = f"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
2641
3188
|
|
|
3189
|
+
headers = {
|
|
3190
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3191
|
+
}
|
|
3192
|
+
|
|
2642
3193
|
return await self._github.arequest(
|
|
2643
3194
|
"GET",
|
|
2644
3195
|
url,
|
|
3196
|
+
headers=exclude_unset(headers),
|
|
2645
3197
|
response_model=Artifact,
|
|
2646
3198
|
)
|
|
2647
3199
|
|
|
@@ -2653,9 +3205,14 @@ class ActionsClient:
|
|
|
2653
3205
|
) -> "Response":
|
|
2654
3206
|
url = f"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
2655
3207
|
|
|
3208
|
+
headers = {
|
|
3209
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3210
|
+
}
|
|
3211
|
+
|
|
2656
3212
|
return self._github.request(
|
|
2657
3213
|
"DELETE",
|
|
2658
3214
|
url,
|
|
3215
|
+
headers=exclude_unset(headers),
|
|
2659
3216
|
)
|
|
2660
3217
|
|
|
2661
3218
|
async def async_delete_artifact(
|
|
@@ -2666,9 +3223,14 @@ class ActionsClient:
|
|
|
2666
3223
|
) -> "Response":
|
|
2667
3224
|
url = f"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
2668
3225
|
|
|
3226
|
+
headers = {
|
|
3227
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3228
|
+
}
|
|
3229
|
+
|
|
2669
3230
|
return await self._github.arequest(
|
|
2670
3231
|
"DELETE",
|
|
2671
3232
|
url,
|
|
3233
|
+
headers=exclude_unset(headers),
|
|
2672
3234
|
)
|
|
2673
3235
|
|
|
2674
3236
|
def download_artifact(
|
|
@@ -2680,9 +3242,14 @@ class ActionsClient:
|
|
|
2680
3242
|
) -> "Response":
|
|
2681
3243
|
url = f"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
2682
3244
|
|
|
3245
|
+
headers = {
|
|
3246
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3247
|
+
}
|
|
3248
|
+
|
|
2683
3249
|
return self._github.request(
|
|
2684
3250
|
"GET",
|
|
2685
3251
|
url,
|
|
3252
|
+
headers=exclude_unset(headers),
|
|
2686
3253
|
error_models={
|
|
2687
3254
|
"410": BasicError,
|
|
2688
3255
|
},
|
|
@@ -2697,9 +3264,14 @@ class ActionsClient:
|
|
|
2697
3264
|
) -> "Response":
|
|
2698
3265
|
url = f"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
2699
3266
|
|
|
3267
|
+
headers = {
|
|
3268
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3269
|
+
}
|
|
3270
|
+
|
|
2700
3271
|
return await self._github.arequest(
|
|
2701
3272
|
"GET",
|
|
2702
3273
|
url,
|
|
3274
|
+
headers=exclude_unset(headers),
|
|
2703
3275
|
error_models={
|
|
2704
3276
|
"410": BasicError,
|
|
2705
3277
|
},
|
|
@@ -2712,9 +3284,14 @@ class ActionsClient:
|
|
|
2712
3284
|
) -> "Response[ActionsCacheUsageByRepository]":
|
|
2713
3285
|
url = f"/repos/{owner}/{repo}/actions/cache/usage"
|
|
2714
3286
|
|
|
3287
|
+
headers = {
|
|
3288
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3289
|
+
}
|
|
3290
|
+
|
|
2715
3291
|
return self._github.request(
|
|
2716
3292
|
"GET",
|
|
2717
3293
|
url,
|
|
3294
|
+
headers=exclude_unset(headers),
|
|
2718
3295
|
response_model=ActionsCacheUsageByRepository,
|
|
2719
3296
|
)
|
|
2720
3297
|
|
|
@@ -2725,9 +3302,14 @@ class ActionsClient:
|
|
|
2725
3302
|
) -> "Response[ActionsCacheUsageByRepository]":
|
|
2726
3303
|
url = f"/repos/{owner}/{repo}/actions/cache/usage"
|
|
2727
3304
|
|
|
3305
|
+
headers = {
|
|
3306
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3307
|
+
}
|
|
3308
|
+
|
|
2728
3309
|
return await self._github.arequest(
|
|
2729
3310
|
"GET",
|
|
2730
3311
|
url,
|
|
3312
|
+
headers=exclude_unset(headers),
|
|
2731
3313
|
response_model=ActionsCacheUsageByRepository,
|
|
2732
3314
|
)
|
|
2733
3315
|
|
|
@@ -2755,10 +3337,15 @@ class ActionsClient:
|
|
|
2755
3337
|
"direction": direction,
|
|
2756
3338
|
}
|
|
2757
3339
|
|
|
3340
|
+
headers = {
|
|
3341
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3342
|
+
}
|
|
3343
|
+
|
|
2758
3344
|
return self._github.request(
|
|
2759
3345
|
"GET",
|
|
2760
3346
|
url,
|
|
2761
3347
|
params=exclude_unset(params),
|
|
3348
|
+
headers=exclude_unset(headers),
|
|
2762
3349
|
response_model=ActionsCacheList,
|
|
2763
3350
|
)
|
|
2764
3351
|
|
|
@@ -2786,10 +3373,15 @@ class ActionsClient:
|
|
|
2786
3373
|
"direction": direction,
|
|
2787
3374
|
}
|
|
2788
3375
|
|
|
3376
|
+
headers = {
|
|
3377
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3378
|
+
}
|
|
3379
|
+
|
|
2789
3380
|
return await self._github.arequest(
|
|
2790
3381
|
"GET",
|
|
2791
3382
|
url,
|
|
2792
3383
|
params=exclude_unset(params),
|
|
3384
|
+
headers=exclude_unset(headers),
|
|
2793
3385
|
response_model=ActionsCacheList,
|
|
2794
3386
|
)
|
|
2795
3387
|
|
|
@@ -2807,10 +3399,15 @@ class ActionsClient:
|
|
|
2807
3399
|
"ref": ref,
|
|
2808
3400
|
}
|
|
2809
3401
|
|
|
3402
|
+
headers = {
|
|
3403
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3404
|
+
}
|
|
3405
|
+
|
|
2810
3406
|
return self._github.request(
|
|
2811
3407
|
"DELETE",
|
|
2812
3408
|
url,
|
|
2813
3409
|
params=exclude_unset(params),
|
|
3410
|
+
headers=exclude_unset(headers),
|
|
2814
3411
|
response_model=ActionsCacheList,
|
|
2815
3412
|
)
|
|
2816
3413
|
|
|
@@ -2828,10 +3425,15 @@ class ActionsClient:
|
|
|
2828
3425
|
"ref": ref,
|
|
2829
3426
|
}
|
|
2830
3427
|
|
|
3428
|
+
headers = {
|
|
3429
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3430
|
+
}
|
|
3431
|
+
|
|
2831
3432
|
return await self._github.arequest(
|
|
2832
3433
|
"DELETE",
|
|
2833
3434
|
url,
|
|
2834
3435
|
params=exclude_unset(params),
|
|
3436
|
+
headers=exclude_unset(headers),
|
|
2835
3437
|
response_model=ActionsCacheList,
|
|
2836
3438
|
)
|
|
2837
3439
|
|
|
@@ -2843,9 +3445,14 @@ class ActionsClient:
|
|
|
2843
3445
|
) -> "Response":
|
|
2844
3446
|
url = f"/repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
2845
3447
|
|
|
3448
|
+
headers = {
|
|
3449
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3450
|
+
}
|
|
3451
|
+
|
|
2846
3452
|
return self._github.request(
|
|
2847
3453
|
"DELETE",
|
|
2848
3454
|
url,
|
|
3455
|
+
headers=exclude_unset(headers),
|
|
2849
3456
|
)
|
|
2850
3457
|
|
|
2851
3458
|
async def async_delete_actions_cache_by_id(
|
|
@@ -2856,9 +3463,14 @@ class ActionsClient:
|
|
|
2856
3463
|
) -> "Response":
|
|
2857
3464
|
url = f"/repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
2858
3465
|
|
|
3466
|
+
headers = {
|
|
3467
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3468
|
+
}
|
|
3469
|
+
|
|
2859
3470
|
return await self._github.arequest(
|
|
2860
3471
|
"DELETE",
|
|
2861
3472
|
url,
|
|
3473
|
+
headers=exclude_unset(headers),
|
|
2862
3474
|
)
|
|
2863
3475
|
|
|
2864
3476
|
def get_job_for_workflow_run(
|
|
@@ -2869,9 +3481,14 @@ class ActionsClient:
|
|
|
2869
3481
|
) -> "Response[Job]":
|
|
2870
3482
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}"
|
|
2871
3483
|
|
|
3484
|
+
headers = {
|
|
3485
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3486
|
+
}
|
|
3487
|
+
|
|
2872
3488
|
return self._github.request(
|
|
2873
3489
|
"GET",
|
|
2874
3490
|
url,
|
|
3491
|
+
headers=exclude_unset(headers),
|
|
2875
3492
|
response_model=Job,
|
|
2876
3493
|
)
|
|
2877
3494
|
|
|
@@ -2883,9 +3500,14 @@ class ActionsClient:
|
|
|
2883
3500
|
) -> "Response[Job]":
|
|
2884
3501
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}"
|
|
2885
3502
|
|
|
3503
|
+
headers = {
|
|
3504
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3505
|
+
}
|
|
3506
|
+
|
|
2886
3507
|
return await self._github.arequest(
|
|
2887
3508
|
"GET",
|
|
2888
3509
|
url,
|
|
3510
|
+
headers=exclude_unset(headers),
|
|
2889
3511
|
response_model=Job,
|
|
2890
3512
|
)
|
|
2891
3513
|
|
|
@@ -2897,9 +3519,14 @@ class ActionsClient:
|
|
|
2897
3519
|
) -> "Response":
|
|
2898
3520
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
2899
3521
|
|
|
3522
|
+
headers = {
|
|
3523
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3524
|
+
}
|
|
3525
|
+
|
|
2900
3526
|
return self._github.request(
|
|
2901
3527
|
"GET",
|
|
2902
3528
|
url,
|
|
3529
|
+
headers=exclude_unset(headers),
|
|
2903
3530
|
)
|
|
2904
3531
|
|
|
2905
3532
|
async def async_download_job_logs_for_workflow_run(
|
|
@@ -2910,9 +3537,14 @@ class ActionsClient:
|
|
|
2910
3537
|
) -> "Response":
|
|
2911
3538
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
2912
3539
|
|
|
3540
|
+
headers = {
|
|
3541
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3542
|
+
}
|
|
3543
|
+
|
|
2913
3544
|
return await self._github.arequest(
|
|
2914
3545
|
"GET",
|
|
2915
3546
|
url,
|
|
3547
|
+
headers=exclude_unset(headers),
|
|
2916
3548
|
)
|
|
2917
3549
|
|
|
2918
3550
|
@overload
|
|
@@ -2953,6 +3585,10 @@ class ActionsClient:
|
|
|
2953
3585
|
) -> "Response[EmptyObject]":
|
|
2954
3586
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
2955
3587
|
|
|
3588
|
+
headers = {
|
|
3589
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3590
|
+
}
|
|
3591
|
+
|
|
2956
3592
|
if not kwargs:
|
|
2957
3593
|
kwargs = UNSET
|
|
2958
3594
|
|
|
@@ -2966,6 +3602,7 @@ class ActionsClient:
|
|
|
2966
3602
|
"POST",
|
|
2967
3603
|
url,
|
|
2968
3604
|
json=exclude_unset(json),
|
|
3605
|
+
headers=exclude_unset(headers),
|
|
2969
3606
|
response_model=EmptyObject,
|
|
2970
3607
|
error_models={
|
|
2971
3608
|
"403": BasicError,
|
|
@@ -3010,6 +3647,10 @@ class ActionsClient:
|
|
|
3010
3647
|
) -> "Response[EmptyObject]":
|
|
3011
3648
|
url = f"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
3012
3649
|
|
|
3650
|
+
headers = {
|
|
3651
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3013
3654
|
if not kwargs:
|
|
3014
3655
|
kwargs = UNSET
|
|
3015
3656
|
|
|
@@ -3023,6 +3664,7 @@ class ActionsClient:
|
|
|
3023
3664
|
"POST",
|
|
3024
3665
|
url,
|
|
3025
3666
|
json=exclude_unset(json),
|
|
3667
|
+
headers=exclude_unset(headers),
|
|
3026
3668
|
response_model=EmptyObject,
|
|
3027
3669
|
error_models={
|
|
3028
3670
|
"403": BasicError,
|
|
@@ -3036,9 +3678,14 @@ class ActionsClient:
|
|
|
3036
3678
|
) -> "Response[OidcCustomSubRepo]":
|
|
3037
3679
|
url = f"/repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
3038
3680
|
|
|
3681
|
+
headers = {
|
|
3682
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3039
3685
|
return self._github.request(
|
|
3040
3686
|
"GET",
|
|
3041
3687
|
url,
|
|
3688
|
+
headers=exclude_unset(headers),
|
|
3042
3689
|
response_model=OidcCustomSubRepo,
|
|
3043
3690
|
error_models={
|
|
3044
3691
|
"400": BasicError,
|
|
@@ -3053,9 +3700,14 @@ class ActionsClient:
|
|
|
3053
3700
|
) -> "Response[OidcCustomSubRepo]":
|
|
3054
3701
|
url = f"/repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
3055
3702
|
|
|
3703
|
+
headers = {
|
|
3704
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3056
3707
|
return await self._github.arequest(
|
|
3057
3708
|
"GET",
|
|
3058
3709
|
url,
|
|
3710
|
+
headers=exclude_unset(headers),
|
|
3059
3711
|
response_model=OidcCustomSubRepo,
|
|
3060
3712
|
error_models={
|
|
3061
3713
|
"400": BasicError,
|
|
@@ -3097,6 +3749,10 @@ class ActionsClient:
|
|
|
3097
3749
|
) -> "Response[EmptyObject]":
|
|
3098
3750
|
url = f"/repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
3099
3751
|
|
|
3752
|
+
headers = {
|
|
3753
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3754
|
+
}
|
|
3755
|
+
|
|
3100
3756
|
if not kwargs:
|
|
3101
3757
|
kwargs = UNSET
|
|
3102
3758
|
|
|
@@ -3108,6 +3764,7 @@ class ActionsClient:
|
|
|
3108
3764
|
"PUT",
|
|
3109
3765
|
url,
|
|
3110
3766
|
json=exclude_unset(json),
|
|
3767
|
+
headers=exclude_unset(headers),
|
|
3111
3768
|
response_model=EmptyObject,
|
|
3112
3769
|
error_models={
|
|
3113
3770
|
"404": BasicError,
|
|
@@ -3150,6 +3807,10 @@ class ActionsClient:
|
|
|
3150
3807
|
) -> "Response[EmptyObject]":
|
|
3151
3808
|
url = f"/repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
3152
3809
|
|
|
3810
|
+
headers = {
|
|
3811
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3153
3814
|
if not kwargs:
|
|
3154
3815
|
kwargs = UNSET
|
|
3155
3816
|
|
|
@@ -3161,6 +3822,7 @@ class ActionsClient:
|
|
|
3161
3822
|
"PUT",
|
|
3162
3823
|
url,
|
|
3163
3824
|
json=exclude_unset(json),
|
|
3825
|
+
headers=exclude_unset(headers),
|
|
3164
3826
|
response_model=EmptyObject,
|
|
3165
3827
|
error_models={
|
|
3166
3828
|
"404": BasicError,
|
|
@@ -3183,10 +3845,15 @@ class ActionsClient:
|
|
|
3183
3845
|
"page": page,
|
|
3184
3846
|
}
|
|
3185
3847
|
|
|
3848
|
+
headers = {
|
|
3849
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3186
3852
|
return self._github.request(
|
|
3187
3853
|
"GET",
|
|
3188
3854
|
url,
|
|
3189
3855
|
params=exclude_unset(params),
|
|
3856
|
+
headers=exclude_unset(headers),
|
|
3190
3857
|
response_model=ReposOwnerRepoActionsOrganizationSecretsGetResponse200,
|
|
3191
3858
|
)
|
|
3192
3859
|
|
|
@@ -3204,10 +3871,15 @@ class ActionsClient:
|
|
|
3204
3871
|
"page": page,
|
|
3205
3872
|
}
|
|
3206
3873
|
|
|
3874
|
+
headers = {
|
|
3875
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3207
3878
|
return await self._github.arequest(
|
|
3208
3879
|
"GET",
|
|
3209
3880
|
url,
|
|
3210
3881
|
params=exclude_unset(params),
|
|
3882
|
+
headers=exclude_unset(headers),
|
|
3211
3883
|
response_model=ReposOwnerRepoActionsOrganizationSecretsGetResponse200,
|
|
3212
3884
|
)
|
|
3213
3885
|
|
|
@@ -3225,10 +3897,15 @@ class ActionsClient:
|
|
|
3225
3897
|
"page": page,
|
|
3226
3898
|
}
|
|
3227
3899
|
|
|
3900
|
+
headers = {
|
|
3901
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3228
3904
|
return self._github.request(
|
|
3229
3905
|
"GET",
|
|
3230
3906
|
url,
|
|
3231
3907
|
params=exclude_unset(params),
|
|
3908
|
+
headers=exclude_unset(headers),
|
|
3232
3909
|
response_model=ReposOwnerRepoActionsOrganizationVariablesGetResponse200,
|
|
3233
3910
|
)
|
|
3234
3911
|
|
|
@@ -3246,10 +3923,15 @@ class ActionsClient:
|
|
|
3246
3923
|
"page": page,
|
|
3247
3924
|
}
|
|
3248
3925
|
|
|
3926
|
+
headers = {
|
|
3927
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3928
|
+
}
|
|
3929
|
+
|
|
3249
3930
|
return await self._github.arequest(
|
|
3250
3931
|
"GET",
|
|
3251
3932
|
url,
|
|
3252
3933
|
params=exclude_unset(params),
|
|
3934
|
+
headers=exclude_unset(headers),
|
|
3253
3935
|
response_model=ReposOwnerRepoActionsOrganizationVariablesGetResponse200,
|
|
3254
3936
|
)
|
|
3255
3937
|
|
|
@@ -3260,9 +3942,14 @@ class ActionsClient:
|
|
|
3260
3942
|
) -> "Response[ActionsRepositoryPermissions]":
|
|
3261
3943
|
url = f"/repos/{owner}/{repo}/actions/permissions"
|
|
3262
3944
|
|
|
3945
|
+
headers = {
|
|
3946
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3263
3949
|
return self._github.request(
|
|
3264
3950
|
"GET",
|
|
3265
3951
|
url,
|
|
3952
|
+
headers=exclude_unset(headers),
|
|
3266
3953
|
response_model=ActionsRepositoryPermissions,
|
|
3267
3954
|
)
|
|
3268
3955
|
|
|
@@ -3273,9 +3960,14 @@ class ActionsClient:
|
|
|
3273
3960
|
) -> "Response[ActionsRepositoryPermissions]":
|
|
3274
3961
|
url = f"/repos/{owner}/{repo}/actions/permissions"
|
|
3275
3962
|
|
|
3963
|
+
headers = {
|
|
3964
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3276
3967
|
return await self._github.arequest(
|
|
3277
3968
|
"GET",
|
|
3278
3969
|
url,
|
|
3970
|
+
headers=exclude_unset(headers),
|
|
3279
3971
|
response_model=ActionsRepositoryPermissions,
|
|
3280
3972
|
)
|
|
3281
3973
|
|
|
@@ -3311,6 +4003,10 @@ class ActionsClient:
|
|
|
3311
4003
|
) -> "Response":
|
|
3312
4004
|
url = f"/repos/{owner}/{repo}/actions/permissions"
|
|
3313
4005
|
|
|
4006
|
+
headers = {
|
|
4007
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4008
|
+
}
|
|
4009
|
+
|
|
3314
4010
|
if not kwargs:
|
|
3315
4011
|
kwargs = UNSET
|
|
3316
4012
|
|
|
@@ -3322,6 +4018,7 @@ class ActionsClient:
|
|
|
3322
4018
|
"PUT",
|
|
3323
4019
|
url,
|
|
3324
4020
|
json=exclude_unset(json),
|
|
4021
|
+
headers=exclude_unset(headers),
|
|
3325
4022
|
)
|
|
3326
4023
|
|
|
3327
4024
|
@overload
|
|
@@ -3356,6 +4053,10 @@ class ActionsClient:
|
|
|
3356
4053
|
) -> "Response":
|
|
3357
4054
|
url = f"/repos/{owner}/{repo}/actions/permissions"
|
|
3358
4055
|
|
|
4056
|
+
headers = {
|
|
4057
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4058
|
+
}
|
|
4059
|
+
|
|
3359
4060
|
if not kwargs:
|
|
3360
4061
|
kwargs = UNSET
|
|
3361
4062
|
|
|
@@ -3367,6 +4068,7 @@ class ActionsClient:
|
|
|
3367
4068
|
"PUT",
|
|
3368
4069
|
url,
|
|
3369
4070
|
json=exclude_unset(json),
|
|
4071
|
+
headers=exclude_unset(headers),
|
|
3370
4072
|
)
|
|
3371
4073
|
|
|
3372
4074
|
def get_workflow_access_to_repository(
|
|
@@ -3376,9 +4078,14 @@ class ActionsClient:
|
|
|
3376
4078
|
) -> "Response[ActionsWorkflowAccessToRepository]":
|
|
3377
4079
|
url = f"/repos/{owner}/{repo}/actions/permissions/access"
|
|
3378
4080
|
|
|
4081
|
+
headers = {
|
|
4082
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4083
|
+
}
|
|
4084
|
+
|
|
3379
4085
|
return self._github.request(
|
|
3380
4086
|
"GET",
|
|
3381
4087
|
url,
|
|
4088
|
+
headers=exclude_unset(headers),
|
|
3382
4089
|
response_model=ActionsWorkflowAccessToRepository,
|
|
3383
4090
|
)
|
|
3384
4091
|
|
|
@@ -3389,9 +4096,14 @@ class ActionsClient:
|
|
|
3389
4096
|
) -> "Response[ActionsWorkflowAccessToRepository]":
|
|
3390
4097
|
url = f"/repos/{owner}/{repo}/actions/permissions/access"
|
|
3391
4098
|
|
|
4099
|
+
headers = {
|
|
4100
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4101
|
+
}
|
|
4102
|
+
|
|
3392
4103
|
return await self._github.arequest(
|
|
3393
4104
|
"GET",
|
|
3394
4105
|
url,
|
|
4106
|
+
headers=exclude_unset(headers),
|
|
3395
4107
|
response_model=ActionsWorkflowAccessToRepository,
|
|
3396
4108
|
)
|
|
3397
4109
|
|
|
@@ -3422,6 +4134,10 @@ class ActionsClient:
|
|
|
3422
4134
|
) -> "Response":
|
|
3423
4135
|
url = f"/repos/{owner}/{repo}/actions/permissions/access"
|
|
3424
4136
|
|
|
4137
|
+
headers = {
|
|
4138
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4139
|
+
}
|
|
4140
|
+
|
|
3425
4141
|
if not kwargs:
|
|
3426
4142
|
kwargs = UNSET
|
|
3427
4143
|
|
|
@@ -3433,6 +4149,7 @@ class ActionsClient:
|
|
|
3433
4149
|
"PUT",
|
|
3434
4150
|
url,
|
|
3435
4151
|
json=exclude_unset(json),
|
|
4152
|
+
headers=exclude_unset(headers),
|
|
3436
4153
|
)
|
|
3437
4154
|
|
|
3438
4155
|
@overload
|
|
@@ -3462,6 +4179,10 @@ class ActionsClient:
|
|
|
3462
4179
|
) -> "Response":
|
|
3463
4180
|
url = f"/repos/{owner}/{repo}/actions/permissions/access"
|
|
3464
4181
|
|
|
4182
|
+
headers = {
|
|
4183
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4184
|
+
}
|
|
4185
|
+
|
|
3465
4186
|
if not kwargs:
|
|
3466
4187
|
kwargs = UNSET
|
|
3467
4188
|
|
|
@@ -3473,6 +4194,7 @@ class ActionsClient:
|
|
|
3473
4194
|
"PUT",
|
|
3474
4195
|
url,
|
|
3475
4196
|
json=exclude_unset(json),
|
|
4197
|
+
headers=exclude_unset(headers),
|
|
3476
4198
|
)
|
|
3477
4199
|
|
|
3478
4200
|
def get_allowed_actions_repository(
|
|
@@ -3482,9 +4204,14 @@ class ActionsClient:
|
|
|
3482
4204
|
) -> "Response[SelectedActions]":
|
|
3483
4205
|
url = f"/repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
3484
4206
|
|
|
4207
|
+
headers = {
|
|
4208
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4209
|
+
}
|
|
4210
|
+
|
|
3485
4211
|
return self._github.request(
|
|
3486
4212
|
"GET",
|
|
3487
4213
|
url,
|
|
4214
|
+
headers=exclude_unset(headers),
|
|
3488
4215
|
response_model=SelectedActions,
|
|
3489
4216
|
)
|
|
3490
4217
|
|
|
@@ -3495,9 +4222,14 @@ class ActionsClient:
|
|
|
3495
4222
|
) -> "Response[SelectedActions]":
|
|
3496
4223
|
url = f"/repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
3497
4224
|
|
|
4225
|
+
headers = {
|
|
4226
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4227
|
+
}
|
|
4228
|
+
|
|
3498
4229
|
return await self._github.arequest(
|
|
3499
4230
|
"GET",
|
|
3500
4231
|
url,
|
|
4232
|
+
headers=exclude_unset(headers),
|
|
3501
4233
|
response_model=SelectedActions,
|
|
3502
4234
|
)
|
|
3503
4235
|
|
|
@@ -3530,6 +4262,10 @@ class ActionsClient:
|
|
|
3530
4262
|
) -> "Response":
|
|
3531
4263
|
url = f"/repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
3532
4264
|
|
|
4265
|
+
headers = {
|
|
4266
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4267
|
+
}
|
|
4268
|
+
|
|
3533
4269
|
if not kwargs:
|
|
3534
4270
|
kwargs = UNSET
|
|
3535
4271
|
|
|
@@ -3541,6 +4277,7 @@ class ActionsClient:
|
|
|
3541
4277
|
"PUT",
|
|
3542
4278
|
url,
|
|
3543
4279
|
json=exclude_unset(json),
|
|
4280
|
+
headers=exclude_unset(headers),
|
|
3544
4281
|
)
|
|
3545
4282
|
|
|
3546
4283
|
@overload
|
|
@@ -3572,6 +4309,10 @@ class ActionsClient:
|
|
|
3572
4309
|
) -> "Response":
|
|
3573
4310
|
url = f"/repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
3574
4311
|
|
|
4312
|
+
headers = {
|
|
4313
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4314
|
+
}
|
|
4315
|
+
|
|
3575
4316
|
if not kwargs:
|
|
3576
4317
|
kwargs = UNSET
|
|
3577
4318
|
|
|
@@ -3583,6 +4324,7 @@ class ActionsClient:
|
|
|
3583
4324
|
"PUT",
|
|
3584
4325
|
url,
|
|
3585
4326
|
json=exclude_unset(json),
|
|
4327
|
+
headers=exclude_unset(headers),
|
|
3586
4328
|
)
|
|
3587
4329
|
|
|
3588
4330
|
def get_github_actions_default_workflow_permissions_repository(
|
|
@@ -3592,9 +4334,14 @@ class ActionsClient:
|
|
|
3592
4334
|
) -> "Response[ActionsGetDefaultWorkflowPermissions]":
|
|
3593
4335
|
url = f"/repos/{owner}/{repo}/actions/permissions/workflow"
|
|
3594
4336
|
|
|
4337
|
+
headers = {
|
|
4338
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4339
|
+
}
|
|
4340
|
+
|
|
3595
4341
|
return self._github.request(
|
|
3596
4342
|
"GET",
|
|
3597
4343
|
url,
|
|
4344
|
+
headers=exclude_unset(headers),
|
|
3598
4345
|
response_model=ActionsGetDefaultWorkflowPermissions,
|
|
3599
4346
|
)
|
|
3600
4347
|
|
|
@@ -3605,9 +4352,14 @@ class ActionsClient:
|
|
|
3605
4352
|
) -> "Response[ActionsGetDefaultWorkflowPermissions]":
|
|
3606
4353
|
url = f"/repos/{owner}/{repo}/actions/permissions/workflow"
|
|
3607
4354
|
|
|
4355
|
+
headers = {
|
|
4356
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4357
|
+
}
|
|
4358
|
+
|
|
3608
4359
|
return await self._github.arequest(
|
|
3609
4360
|
"GET",
|
|
3610
4361
|
url,
|
|
4362
|
+
headers=exclude_unset(headers),
|
|
3611
4363
|
response_model=ActionsGetDefaultWorkflowPermissions,
|
|
3612
4364
|
)
|
|
3613
4365
|
|
|
@@ -3639,6 +4391,10 @@ class ActionsClient:
|
|
|
3639
4391
|
) -> "Response":
|
|
3640
4392
|
url = f"/repos/{owner}/{repo}/actions/permissions/workflow"
|
|
3641
4393
|
|
|
4394
|
+
headers = {
|
|
4395
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4396
|
+
}
|
|
4397
|
+
|
|
3642
4398
|
if not kwargs:
|
|
3643
4399
|
kwargs = UNSET
|
|
3644
4400
|
|
|
@@ -3650,6 +4406,7 @@ class ActionsClient:
|
|
|
3650
4406
|
"PUT",
|
|
3651
4407
|
url,
|
|
3652
4408
|
json=exclude_unset(json),
|
|
4409
|
+
headers=exclude_unset(headers),
|
|
3653
4410
|
error_models={},
|
|
3654
4411
|
)
|
|
3655
4412
|
|
|
@@ -3681,6 +4438,10 @@ class ActionsClient:
|
|
|
3681
4438
|
) -> "Response":
|
|
3682
4439
|
url = f"/repos/{owner}/{repo}/actions/permissions/workflow"
|
|
3683
4440
|
|
|
4441
|
+
headers = {
|
|
4442
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4443
|
+
}
|
|
4444
|
+
|
|
3684
4445
|
if not kwargs:
|
|
3685
4446
|
kwargs = UNSET
|
|
3686
4447
|
|
|
@@ -3692,6 +4453,7 @@ class ActionsClient:
|
|
|
3692
4453
|
"PUT",
|
|
3693
4454
|
url,
|
|
3694
4455
|
json=exclude_unset(json),
|
|
4456
|
+
headers=exclude_unset(headers),
|
|
3695
4457
|
error_models={},
|
|
3696
4458
|
)
|
|
3697
4459
|
|
|
@@ -3744,10 +4506,15 @@ class ActionsClient:
|
|
|
3744
4506
|
"head_sha": head_sha,
|
|
3745
4507
|
}
|
|
3746
4508
|
|
|
4509
|
+
headers = {
|
|
4510
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4511
|
+
}
|
|
4512
|
+
|
|
3747
4513
|
return self._github.request(
|
|
3748
4514
|
"GET",
|
|
3749
4515
|
url,
|
|
3750
4516
|
params=exclude_unset(params),
|
|
4517
|
+
headers=exclude_unset(headers),
|
|
3751
4518
|
response_model=ReposOwnerRepoActionsRequiredWorkflowsRequiredWorkflowIdForRepoRunsGetResponse200,
|
|
3752
4519
|
)
|
|
3753
4520
|
|
|
@@ -3800,10 +4567,15 @@ class ActionsClient:
|
|
|
3800
4567
|
"head_sha": head_sha,
|
|
3801
4568
|
}
|
|
3802
4569
|
|
|
4570
|
+
headers = {
|
|
4571
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4572
|
+
}
|
|
4573
|
+
|
|
3803
4574
|
return await self._github.arequest(
|
|
3804
4575
|
"GET",
|
|
3805
4576
|
url,
|
|
3806
4577
|
params=exclude_unset(params),
|
|
4578
|
+
headers=exclude_unset(headers),
|
|
3807
4579
|
response_model=ReposOwnerRepoActionsRequiredWorkflowsRequiredWorkflowIdForRepoRunsGetResponse200,
|
|
3808
4580
|
)
|
|
3809
4581
|
|
|
@@ -3821,10 +4593,15 @@ class ActionsClient:
|
|
|
3821
4593
|
"page": page,
|
|
3822
4594
|
}
|
|
3823
4595
|
|
|
4596
|
+
headers = {
|
|
4597
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4598
|
+
}
|
|
4599
|
+
|
|
3824
4600
|
return self._github.request(
|
|
3825
4601
|
"GET",
|
|
3826
4602
|
url,
|
|
3827
4603
|
params=exclude_unset(params),
|
|
4604
|
+
headers=exclude_unset(headers),
|
|
3828
4605
|
response_model=ReposOwnerRepoActionsRunnersGetResponse200,
|
|
3829
4606
|
)
|
|
3830
4607
|
|
|
@@ -3842,10 +4619,15 @@ class ActionsClient:
|
|
|
3842
4619
|
"page": page,
|
|
3843
4620
|
}
|
|
3844
4621
|
|
|
4622
|
+
headers = {
|
|
4623
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4624
|
+
}
|
|
4625
|
+
|
|
3845
4626
|
return await self._github.arequest(
|
|
3846
4627
|
"GET",
|
|
3847
4628
|
url,
|
|
3848
4629
|
params=exclude_unset(params),
|
|
4630
|
+
headers=exclude_unset(headers),
|
|
3849
4631
|
response_model=ReposOwnerRepoActionsRunnersGetResponse200,
|
|
3850
4632
|
)
|
|
3851
4633
|
|
|
@@ -3856,9 +4638,14 @@ class ActionsClient:
|
|
|
3856
4638
|
) -> "Response[List[RunnerApplication]]":
|
|
3857
4639
|
url = f"/repos/{owner}/{repo}/actions/runners/downloads"
|
|
3858
4640
|
|
|
4641
|
+
headers = {
|
|
4642
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4643
|
+
}
|
|
4644
|
+
|
|
3859
4645
|
return self._github.request(
|
|
3860
4646
|
"GET",
|
|
3861
4647
|
url,
|
|
4648
|
+
headers=exclude_unset(headers),
|
|
3862
4649
|
response_model=List[RunnerApplication],
|
|
3863
4650
|
)
|
|
3864
4651
|
|
|
@@ -3869,9 +4656,14 @@ class ActionsClient:
|
|
|
3869
4656
|
) -> "Response[List[RunnerApplication]]":
|
|
3870
4657
|
url = f"/repos/{owner}/{repo}/actions/runners/downloads"
|
|
3871
4658
|
|
|
4659
|
+
headers = {
|
|
4660
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4661
|
+
}
|
|
4662
|
+
|
|
3872
4663
|
return await self._github.arequest(
|
|
3873
4664
|
"GET",
|
|
3874
4665
|
url,
|
|
4666
|
+
headers=exclude_unset(headers),
|
|
3875
4667
|
response_model=List[RunnerApplication],
|
|
3876
4668
|
)
|
|
3877
4669
|
|
|
@@ -3882,9 +4674,14 @@ class ActionsClient:
|
|
|
3882
4674
|
) -> "Response[AuthenticationToken]":
|
|
3883
4675
|
url = f"/repos/{owner}/{repo}/actions/runners/registration-token"
|
|
3884
4676
|
|
|
4677
|
+
headers = {
|
|
4678
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4679
|
+
}
|
|
4680
|
+
|
|
3885
4681
|
return self._github.request(
|
|
3886
4682
|
"POST",
|
|
3887
4683
|
url,
|
|
4684
|
+
headers=exclude_unset(headers),
|
|
3888
4685
|
response_model=AuthenticationToken,
|
|
3889
4686
|
)
|
|
3890
4687
|
|
|
@@ -3895,9 +4692,14 @@ class ActionsClient:
|
|
|
3895
4692
|
) -> "Response[AuthenticationToken]":
|
|
3896
4693
|
url = f"/repos/{owner}/{repo}/actions/runners/registration-token"
|
|
3897
4694
|
|
|
4695
|
+
headers = {
|
|
4696
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4697
|
+
}
|
|
4698
|
+
|
|
3898
4699
|
return await self._github.arequest(
|
|
3899
4700
|
"POST",
|
|
3900
4701
|
url,
|
|
4702
|
+
headers=exclude_unset(headers),
|
|
3901
4703
|
response_model=AuthenticationToken,
|
|
3902
4704
|
)
|
|
3903
4705
|
|
|
@@ -3908,9 +4710,14 @@ class ActionsClient:
|
|
|
3908
4710
|
) -> "Response[AuthenticationToken]":
|
|
3909
4711
|
url = f"/repos/{owner}/{repo}/actions/runners/remove-token"
|
|
3910
4712
|
|
|
4713
|
+
headers = {
|
|
4714
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4715
|
+
}
|
|
4716
|
+
|
|
3911
4717
|
return self._github.request(
|
|
3912
4718
|
"POST",
|
|
3913
4719
|
url,
|
|
4720
|
+
headers=exclude_unset(headers),
|
|
3914
4721
|
response_model=AuthenticationToken,
|
|
3915
4722
|
)
|
|
3916
4723
|
|
|
@@ -3921,9 +4728,14 @@ class ActionsClient:
|
|
|
3921
4728
|
) -> "Response[AuthenticationToken]":
|
|
3922
4729
|
url = f"/repos/{owner}/{repo}/actions/runners/remove-token"
|
|
3923
4730
|
|
|
4731
|
+
headers = {
|
|
4732
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4733
|
+
}
|
|
4734
|
+
|
|
3924
4735
|
return await self._github.arequest(
|
|
3925
4736
|
"POST",
|
|
3926
4737
|
url,
|
|
4738
|
+
headers=exclude_unset(headers),
|
|
3927
4739
|
response_model=AuthenticationToken,
|
|
3928
4740
|
)
|
|
3929
4741
|
|
|
@@ -3935,9 +4747,14 @@ class ActionsClient:
|
|
|
3935
4747
|
) -> "Response[Runner]":
|
|
3936
4748
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
3937
4749
|
|
|
4750
|
+
headers = {
|
|
4751
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4752
|
+
}
|
|
4753
|
+
|
|
3938
4754
|
return self._github.request(
|
|
3939
4755
|
"GET",
|
|
3940
4756
|
url,
|
|
4757
|
+
headers=exclude_unset(headers),
|
|
3941
4758
|
response_model=Runner,
|
|
3942
4759
|
)
|
|
3943
4760
|
|
|
@@ -3949,9 +4766,14 @@ class ActionsClient:
|
|
|
3949
4766
|
) -> "Response[Runner]":
|
|
3950
4767
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
3951
4768
|
|
|
4769
|
+
headers = {
|
|
4770
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4771
|
+
}
|
|
4772
|
+
|
|
3952
4773
|
return await self._github.arequest(
|
|
3953
4774
|
"GET",
|
|
3954
4775
|
url,
|
|
4776
|
+
headers=exclude_unset(headers),
|
|
3955
4777
|
response_model=Runner,
|
|
3956
4778
|
)
|
|
3957
4779
|
|
|
@@ -3963,9 +4785,14 @@ class ActionsClient:
|
|
|
3963
4785
|
) -> "Response":
|
|
3964
4786
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
3965
4787
|
|
|
4788
|
+
headers = {
|
|
4789
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4790
|
+
}
|
|
4791
|
+
|
|
3966
4792
|
return self._github.request(
|
|
3967
4793
|
"DELETE",
|
|
3968
4794
|
url,
|
|
4795
|
+
headers=exclude_unset(headers),
|
|
3969
4796
|
)
|
|
3970
4797
|
|
|
3971
4798
|
async def async_delete_self_hosted_runner_from_repo(
|
|
@@ -3976,9 +4803,14 @@ class ActionsClient:
|
|
|
3976
4803
|
) -> "Response":
|
|
3977
4804
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
3978
4805
|
|
|
4806
|
+
headers = {
|
|
4807
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4808
|
+
}
|
|
4809
|
+
|
|
3979
4810
|
return await self._github.arequest(
|
|
3980
4811
|
"DELETE",
|
|
3981
4812
|
url,
|
|
4813
|
+
headers=exclude_unset(headers),
|
|
3982
4814
|
)
|
|
3983
4815
|
|
|
3984
4816
|
def list_labels_for_self_hosted_runner_for_repo(
|
|
@@ -3989,9 +4821,14 @@ class ActionsClient:
|
|
|
3989
4821
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
3990
4822
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
3991
4823
|
|
|
4824
|
+
headers = {
|
|
4825
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4826
|
+
}
|
|
4827
|
+
|
|
3992
4828
|
return self._github.request(
|
|
3993
4829
|
"GET",
|
|
3994
4830
|
url,
|
|
4831
|
+
headers=exclude_unset(headers),
|
|
3995
4832
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
3996
4833
|
error_models={
|
|
3997
4834
|
"404": BasicError,
|
|
@@ -4006,9 +4843,14 @@ class ActionsClient:
|
|
|
4006
4843
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4007
4844
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4008
4845
|
|
|
4846
|
+
headers = {
|
|
4847
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4848
|
+
}
|
|
4849
|
+
|
|
4009
4850
|
return await self._github.arequest(
|
|
4010
4851
|
"GET",
|
|
4011
4852
|
url,
|
|
4853
|
+
headers=exclude_unset(headers),
|
|
4012
4854
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4013
4855
|
error_models={
|
|
4014
4856
|
"404": BasicError,
|
|
@@ -4051,6 +4893,10 @@ class ActionsClient:
|
|
|
4051
4893
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4052
4894
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4053
4895
|
|
|
4896
|
+
headers = {
|
|
4897
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4054
4900
|
if not kwargs:
|
|
4055
4901
|
kwargs = UNSET
|
|
4056
4902
|
|
|
@@ -4062,6 +4908,7 @@ class ActionsClient:
|
|
|
4062
4908
|
"PUT",
|
|
4063
4909
|
url,
|
|
4064
4910
|
json=exclude_unset(json),
|
|
4911
|
+
headers=exclude_unset(headers),
|
|
4065
4912
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4066
4913
|
error_models={
|
|
4067
4914
|
"404": BasicError,
|
|
@@ -4105,6 +4952,10 @@ class ActionsClient:
|
|
|
4105
4952
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4106
4953
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4107
4954
|
|
|
4955
|
+
headers = {
|
|
4956
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
4957
|
+
}
|
|
4958
|
+
|
|
4108
4959
|
if not kwargs:
|
|
4109
4960
|
kwargs = UNSET
|
|
4110
4961
|
|
|
@@ -4116,6 +4967,7 @@ class ActionsClient:
|
|
|
4116
4967
|
"PUT",
|
|
4117
4968
|
url,
|
|
4118
4969
|
json=exclude_unset(json),
|
|
4970
|
+
headers=exclude_unset(headers),
|
|
4119
4971
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4120
4972
|
error_models={
|
|
4121
4973
|
"404": BasicError,
|
|
@@ -4159,6 +5011,10 @@ class ActionsClient:
|
|
|
4159
5011
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4160
5012
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4161
5013
|
|
|
5014
|
+
headers = {
|
|
5015
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5016
|
+
}
|
|
5017
|
+
|
|
4162
5018
|
if not kwargs:
|
|
4163
5019
|
kwargs = UNSET
|
|
4164
5020
|
|
|
@@ -4170,6 +5026,7 @@ class ActionsClient:
|
|
|
4170
5026
|
"POST",
|
|
4171
5027
|
url,
|
|
4172
5028
|
json=exclude_unset(json),
|
|
5029
|
+
headers=exclude_unset(headers),
|
|
4173
5030
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4174
5031
|
error_models={
|
|
4175
5032
|
"404": BasicError,
|
|
@@ -4213,6 +5070,10 @@ class ActionsClient:
|
|
|
4213
5070
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4214
5071
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4215
5072
|
|
|
5073
|
+
headers = {
|
|
5074
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5075
|
+
}
|
|
5076
|
+
|
|
4216
5077
|
if not kwargs:
|
|
4217
5078
|
kwargs = UNSET
|
|
4218
5079
|
|
|
@@ -4224,6 +5085,7 @@ class ActionsClient:
|
|
|
4224
5085
|
"POST",
|
|
4225
5086
|
url,
|
|
4226
5087
|
json=exclude_unset(json),
|
|
5088
|
+
headers=exclude_unset(headers),
|
|
4227
5089
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4228
5090
|
error_models={
|
|
4229
5091
|
"404": BasicError,
|
|
@@ -4239,9 +5101,14 @@ class ActionsClient:
|
|
|
4239
5101
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200]":
|
|
4240
5102
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4241
5103
|
|
|
5104
|
+
headers = {
|
|
5105
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5106
|
+
}
|
|
5107
|
+
|
|
4242
5108
|
return self._github.request(
|
|
4243
5109
|
"DELETE",
|
|
4244
5110
|
url,
|
|
5111
|
+
headers=exclude_unset(headers),
|
|
4245
5112
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200,
|
|
4246
5113
|
error_models={
|
|
4247
5114
|
"404": BasicError,
|
|
@@ -4256,9 +5123,14 @@ class ActionsClient:
|
|
|
4256
5123
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200]":
|
|
4257
5124
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
4258
5125
|
|
|
5126
|
+
headers = {
|
|
5127
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5128
|
+
}
|
|
5129
|
+
|
|
4259
5130
|
return await self._github.arequest(
|
|
4260
5131
|
"DELETE",
|
|
4261
5132
|
url,
|
|
5133
|
+
headers=exclude_unset(headers),
|
|
4262
5134
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200,
|
|
4263
5135
|
error_models={
|
|
4264
5136
|
"404": BasicError,
|
|
@@ -4274,9 +5146,14 @@ class ActionsClient:
|
|
|
4274
5146
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4275
5147
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
4276
5148
|
|
|
5149
|
+
headers = {
|
|
5150
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5151
|
+
}
|
|
5152
|
+
|
|
4277
5153
|
return self._github.request(
|
|
4278
5154
|
"DELETE",
|
|
4279
5155
|
url,
|
|
5156
|
+
headers=exclude_unset(headers),
|
|
4280
5157
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4281
5158
|
error_models={
|
|
4282
5159
|
"404": BasicError,
|
|
@@ -4293,9 +5170,14 @@ class ActionsClient:
|
|
|
4293
5170
|
) -> "Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]":
|
|
4294
5171
|
url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
4295
5172
|
|
|
5173
|
+
headers = {
|
|
5174
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5175
|
+
}
|
|
5176
|
+
|
|
4296
5177
|
return await self._github.arequest(
|
|
4297
5178
|
"DELETE",
|
|
4298
5179
|
url,
|
|
5180
|
+
headers=exclude_unset(headers),
|
|
4299
5181
|
response_model=OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200,
|
|
4300
5182
|
error_models={
|
|
4301
5183
|
"404": BasicError,
|
|
@@ -4351,10 +5233,15 @@ class ActionsClient:
|
|
|
4351
5233
|
"head_sha": head_sha,
|
|
4352
5234
|
}
|
|
4353
5235
|
|
|
5236
|
+
headers = {
|
|
5237
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5238
|
+
}
|
|
5239
|
+
|
|
4354
5240
|
return self._github.request(
|
|
4355
5241
|
"GET",
|
|
4356
5242
|
url,
|
|
4357
5243
|
params=exclude_unset(params),
|
|
5244
|
+
headers=exclude_unset(headers),
|
|
4358
5245
|
response_model=ReposOwnerRepoActionsRunsGetResponse200,
|
|
4359
5246
|
)
|
|
4360
5247
|
|
|
@@ -4406,10 +5293,15 @@ class ActionsClient:
|
|
|
4406
5293
|
"head_sha": head_sha,
|
|
4407
5294
|
}
|
|
4408
5295
|
|
|
5296
|
+
headers = {
|
|
5297
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5298
|
+
}
|
|
5299
|
+
|
|
4409
5300
|
return await self._github.arequest(
|
|
4410
5301
|
"GET",
|
|
4411
5302
|
url,
|
|
4412
5303
|
params=exclude_unset(params),
|
|
5304
|
+
headers=exclude_unset(headers),
|
|
4413
5305
|
response_model=ReposOwnerRepoActionsRunsGetResponse200,
|
|
4414
5306
|
)
|
|
4415
5307
|
|
|
@@ -4426,10 +5318,15 @@ class ActionsClient:
|
|
|
4426
5318
|
"exclude_pull_requests": exclude_pull_requests,
|
|
4427
5319
|
}
|
|
4428
5320
|
|
|
5321
|
+
headers = {
|
|
5322
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5323
|
+
}
|
|
5324
|
+
|
|
4429
5325
|
return self._github.request(
|
|
4430
5326
|
"GET",
|
|
4431
5327
|
url,
|
|
4432
5328
|
params=exclude_unset(params),
|
|
5329
|
+
headers=exclude_unset(headers),
|
|
4433
5330
|
response_model=WorkflowRun,
|
|
4434
5331
|
)
|
|
4435
5332
|
|
|
@@ -4446,10 +5343,15 @@ class ActionsClient:
|
|
|
4446
5343
|
"exclude_pull_requests": exclude_pull_requests,
|
|
4447
5344
|
}
|
|
4448
5345
|
|
|
5346
|
+
headers = {
|
|
5347
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5348
|
+
}
|
|
5349
|
+
|
|
4449
5350
|
return await self._github.arequest(
|
|
4450
5351
|
"GET",
|
|
4451
5352
|
url,
|
|
4452
5353
|
params=exclude_unset(params),
|
|
5354
|
+
headers=exclude_unset(headers),
|
|
4453
5355
|
response_model=WorkflowRun,
|
|
4454
5356
|
)
|
|
4455
5357
|
|
|
@@ -4461,9 +5363,14 @@ class ActionsClient:
|
|
|
4461
5363
|
) -> "Response":
|
|
4462
5364
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}"
|
|
4463
5365
|
|
|
5366
|
+
headers = {
|
|
5367
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5368
|
+
}
|
|
5369
|
+
|
|
4464
5370
|
return self._github.request(
|
|
4465
5371
|
"DELETE",
|
|
4466
5372
|
url,
|
|
5373
|
+
headers=exclude_unset(headers),
|
|
4467
5374
|
)
|
|
4468
5375
|
|
|
4469
5376
|
async def async_delete_workflow_run(
|
|
@@ -4474,9 +5381,14 @@ class ActionsClient:
|
|
|
4474
5381
|
) -> "Response":
|
|
4475
5382
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}"
|
|
4476
5383
|
|
|
5384
|
+
headers = {
|
|
5385
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5386
|
+
}
|
|
5387
|
+
|
|
4477
5388
|
return await self._github.arequest(
|
|
4478
5389
|
"DELETE",
|
|
4479
5390
|
url,
|
|
5391
|
+
headers=exclude_unset(headers),
|
|
4480
5392
|
)
|
|
4481
5393
|
|
|
4482
5394
|
def get_reviews_for_run(
|
|
@@ -4487,9 +5399,14 @@ class ActionsClient:
|
|
|
4487
5399
|
) -> "Response[List[EnvironmentApprovals]]":
|
|
4488
5400
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
4489
5401
|
|
|
5402
|
+
headers = {
|
|
5403
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5404
|
+
}
|
|
5405
|
+
|
|
4490
5406
|
return self._github.request(
|
|
4491
5407
|
"GET",
|
|
4492
5408
|
url,
|
|
5409
|
+
headers=exclude_unset(headers),
|
|
4493
5410
|
response_model=List[EnvironmentApprovals],
|
|
4494
5411
|
)
|
|
4495
5412
|
|
|
@@ -4501,9 +5418,14 @@ class ActionsClient:
|
|
|
4501
5418
|
) -> "Response[List[EnvironmentApprovals]]":
|
|
4502
5419
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
4503
5420
|
|
|
5421
|
+
headers = {
|
|
5422
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5423
|
+
}
|
|
5424
|
+
|
|
4504
5425
|
return await self._github.arequest(
|
|
4505
5426
|
"GET",
|
|
4506
5427
|
url,
|
|
5428
|
+
headers=exclude_unset(headers),
|
|
4507
5429
|
response_model=List[EnvironmentApprovals],
|
|
4508
5430
|
)
|
|
4509
5431
|
|
|
@@ -4515,9 +5437,14 @@ class ActionsClient:
|
|
|
4515
5437
|
) -> "Response[EmptyObject]":
|
|
4516
5438
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
4517
5439
|
|
|
5440
|
+
headers = {
|
|
5441
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5442
|
+
}
|
|
5443
|
+
|
|
4518
5444
|
return self._github.request(
|
|
4519
5445
|
"POST",
|
|
4520
5446
|
url,
|
|
5447
|
+
headers=exclude_unset(headers),
|
|
4521
5448
|
response_model=EmptyObject,
|
|
4522
5449
|
error_models={
|
|
4523
5450
|
"404": BasicError,
|
|
@@ -4533,9 +5460,14 @@ class ActionsClient:
|
|
|
4533
5460
|
) -> "Response[EmptyObject]":
|
|
4534
5461
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
4535
5462
|
|
|
5463
|
+
headers = {
|
|
5464
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5465
|
+
}
|
|
5466
|
+
|
|
4536
5467
|
return await self._github.arequest(
|
|
4537
5468
|
"POST",
|
|
4538
5469
|
url,
|
|
5470
|
+
headers=exclude_unset(headers),
|
|
4539
5471
|
response_model=EmptyObject,
|
|
4540
5472
|
error_models={
|
|
4541
5473
|
"404": BasicError,
|
|
@@ -4558,10 +5490,15 @@ class ActionsClient:
|
|
|
4558
5490
|
"page": page,
|
|
4559
5491
|
}
|
|
4560
5492
|
|
|
5493
|
+
headers = {
|
|
5494
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5495
|
+
}
|
|
5496
|
+
|
|
4561
5497
|
return self._github.request(
|
|
4562
5498
|
"GET",
|
|
4563
5499
|
url,
|
|
4564
5500
|
params=exclude_unset(params),
|
|
5501
|
+
headers=exclude_unset(headers),
|
|
4565
5502
|
response_model=ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200,
|
|
4566
5503
|
)
|
|
4567
5504
|
|
|
@@ -4580,10 +5517,15 @@ class ActionsClient:
|
|
|
4580
5517
|
"page": page,
|
|
4581
5518
|
}
|
|
4582
5519
|
|
|
5520
|
+
headers = {
|
|
5521
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5522
|
+
}
|
|
5523
|
+
|
|
4583
5524
|
return await self._github.arequest(
|
|
4584
5525
|
"GET",
|
|
4585
5526
|
url,
|
|
4586
5527
|
params=exclude_unset(params),
|
|
5528
|
+
headers=exclude_unset(headers),
|
|
4587
5529
|
response_model=ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200,
|
|
4588
5530
|
)
|
|
4589
5531
|
|
|
@@ -4601,10 +5543,15 @@ class ActionsClient:
|
|
|
4601
5543
|
"exclude_pull_requests": exclude_pull_requests,
|
|
4602
5544
|
}
|
|
4603
5545
|
|
|
5546
|
+
headers = {
|
|
5547
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5548
|
+
}
|
|
5549
|
+
|
|
4604
5550
|
return self._github.request(
|
|
4605
5551
|
"GET",
|
|
4606
5552
|
url,
|
|
4607
5553
|
params=exclude_unset(params),
|
|
5554
|
+
headers=exclude_unset(headers),
|
|
4608
5555
|
response_model=WorkflowRun,
|
|
4609
5556
|
)
|
|
4610
5557
|
|
|
@@ -4622,10 +5569,15 @@ class ActionsClient:
|
|
|
4622
5569
|
"exclude_pull_requests": exclude_pull_requests,
|
|
4623
5570
|
}
|
|
4624
5571
|
|
|
5572
|
+
headers = {
|
|
5573
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5574
|
+
}
|
|
5575
|
+
|
|
4625
5576
|
return await self._github.arequest(
|
|
4626
5577
|
"GET",
|
|
4627
5578
|
url,
|
|
4628
5579
|
params=exclude_unset(params),
|
|
5580
|
+
headers=exclude_unset(headers),
|
|
4629
5581
|
response_model=WorkflowRun,
|
|
4630
5582
|
)
|
|
4631
5583
|
|
|
@@ -4645,10 +5597,15 @@ class ActionsClient:
|
|
|
4645
5597
|
"page": page,
|
|
4646
5598
|
}
|
|
4647
5599
|
|
|
5600
|
+
headers = {
|
|
5601
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5602
|
+
}
|
|
5603
|
+
|
|
4648
5604
|
return self._github.request(
|
|
4649
5605
|
"GET",
|
|
4650
5606
|
url,
|
|
4651
5607
|
params=exclude_unset(params),
|
|
5608
|
+
headers=exclude_unset(headers),
|
|
4652
5609
|
response_model=ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200,
|
|
4653
5610
|
error_models={
|
|
4654
5611
|
"404": BasicError,
|
|
@@ -4671,10 +5628,15 @@ class ActionsClient:
|
|
|
4671
5628
|
"page": page,
|
|
4672
5629
|
}
|
|
4673
5630
|
|
|
5631
|
+
headers = {
|
|
5632
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5633
|
+
}
|
|
5634
|
+
|
|
4674
5635
|
return await self._github.arequest(
|
|
4675
5636
|
"GET",
|
|
4676
5637
|
url,
|
|
4677
5638
|
params=exclude_unset(params),
|
|
5639
|
+
headers=exclude_unset(headers),
|
|
4678
5640
|
response_model=ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200,
|
|
4679
5641
|
error_models={
|
|
4680
5642
|
"404": BasicError,
|
|
@@ -4690,9 +5652,14 @@ class ActionsClient:
|
|
|
4690
5652
|
) -> "Response":
|
|
4691
5653
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
4692
5654
|
|
|
5655
|
+
headers = {
|
|
5656
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5657
|
+
}
|
|
5658
|
+
|
|
4693
5659
|
return self._github.request(
|
|
4694
5660
|
"GET",
|
|
4695
5661
|
url,
|
|
5662
|
+
headers=exclude_unset(headers),
|
|
4696
5663
|
)
|
|
4697
5664
|
|
|
4698
5665
|
async def async_download_workflow_run_attempt_logs(
|
|
@@ -4704,9 +5671,14 @@ class ActionsClient:
|
|
|
4704
5671
|
) -> "Response":
|
|
4705
5672
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
4706
5673
|
|
|
5674
|
+
headers = {
|
|
5675
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5676
|
+
}
|
|
5677
|
+
|
|
4707
5678
|
return await self._github.arequest(
|
|
4708
5679
|
"GET",
|
|
4709
5680
|
url,
|
|
5681
|
+
headers=exclude_unset(headers),
|
|
4710
5682
|
)
|
|
4711
5683
|
|
|
4712
5684
|
def cancel_workflow_run(
|
|
@@ -4717,9 +5689,14 @@ class ActionsClient:
|
|
|
4717
5689
|
) -> "Response[EmptyObject]":
|
|
4718
5690
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
4719
5691
|
|
|
5692
|
+
headers = {
|
|
5693
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5694
|
+
}
|
|
5695
|
+
|
|
4720
5696
|
return self._github.request(
|
|
4721
5697
|
"POST",
|
|
4722
5698
|
url,
|
|
5699
|
+
headers=exclude_unset(headers),
|
|
4723
5700
|
response_model=EmptyObject,
|
|
4724
5701
|
error_models={
|
|
4725
5702
|
"409": BasicError,
|
|
@@ -4734,9 +5711,14 @@ class ActionsClient:
|
|
|
4734
5711
|
) -> "Response[EmptyObject]":
|
|
4735
5712
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
4736
5713
|
|
|
5714
|
+
headers = {
|
|
5715
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5716
|
+
}
|
|
5717
|
+
|
|
4737
5718
|
return await self._github.arequest(
|
|
4738
5719
|
"POST",
|
|
4739
5720
|
url,
|
|
5721
|
+
headers=exclude_unset(headers),
|
|
4740
5722
|
response_model=EmptyObject,
|
|
4741
5723
|
error_models={
|
|
4742
5724
|
"409": BasicError,
|
|
@@ -4760,10 +5742,15 @@ class ActionsClient:
|
|
|
4760
5742
|
"page": page,
|
|
4761
5743
|
}
|
|
4762
5744
|
|
|
5745
|
+
headers = {
|
|
5746
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5747
|
+
}
|
|
5748
|
+
|
|
4763
5749
|
return self._github.request(
|
|
4764
5750
|
"GET",
|
|
4765
5751
|
url,
|
|
4766
5752
|
params=exclude_unset(params),
|
|
5753
|
+
headers=exclude_unset(headers),
|
|
4767
5754
|
response_model=ReposOwnerRepoActionsRunsRunIdJobsGetResponse200,
|
|
4768
5755
|
)
|
|
4769
5756
|
|
|
@@ -4784,10 +5771,15 @@ class ActionsClient:
|
|
|
4784
5771
|
"page": page,
|
|
4785
5772
|
}
|
|
4786
5773
|
|
|
5774
|
+
headers = {
|
|
5775
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5776
|
+
}
|
|
5777
|
+
|
|
4787
5778
|
return await self._github.arequest(
|
|
4788
5779
|
"GET",
|
|
4789
5780
|
url,
|
|
4790
5781
|
params=exclude_unset(params),
|
|
5782
|
+
headers=exclude_unset(headers),
|
|
4791
5783
|
response_model=ReposOwnerRepoActionsRunsRunIdJobsGetResponse200,
|
|
4792
5784
|
)
|
|
4793
5785
|
|
|
@@ -4799,9 +5791,14 @@ class ActionsClient:
|
|
|
4799
5791
|
) -> "Response":
|
|
4800
5792
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
4801
5793
|
|
|
5794
|
+
headers = {
|
|
5795
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5796
|
+
}
|
|
5797
|
+
|
|
4802
5798
|
return self._github.request(
|
|
4803
5799
|
"GET",
|
|
4804
5800
|
url,
|
|
5801
|
+
headers=exclude_unset(headers),
|
|
4805
5802
|
)
|
|
4806
5803
|
|
|
4807
5804
|
async def async_download_workflow_run_logs(
|
|
@@ -4812,9 +5809,14 @@ class ActionsClient:
|
|
|
4812
5809
|
) -> "Response":
|
|
4813
5810
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
4814
5811
|
|
|
5812
|
+
headers = {
|
|
5813
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5814
|
+
}
|
|
5815
|
+
|
|
4815
5816
|
return await self._github.arequest(
|
|
4816
5817
|
"GET",
|
|
4817
5818
|
url,
|
|
5819
|
+
headers=exclude_unset(headers),
|
|
4818
5820
|
)
|
|
4819
5821
|
|
|
4820
5822
|
def delete_workflow_run_logs(
|
|
@@ -4825,9 +5827,14 @@ class ActionsClient:
|
|
|
4825
5827
|
) -> "Response":
|
|
4826
5828
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
4827
5829
|
|
|
5830
|
+
headers = {
|
|
5831
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5832
|
+
}
|
|
5833
|
+
|
|
4828
5834
|
return self._github.request(
|
|
4829
5835
|
"DELETE",
|
|
4830
5836
|
url,
|
|
5837
|
+
headers=exclude_unset(headers),
|
|
4831
5838
|
error_models={
|
|
4832
5839
|
"403": BasicError,
|
|
4833
5840
|
"500": BasicError,
|
|
@@ -4842,9 +5849,14 @@ class ActionsClient:
|
|
|
4842
5849
|
) -> "Response":
|
|
4843
5850
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
4844
5851
|
|
|
5852
|
+
headers = {
|
|
5853
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5854
|
+
}
|
|
5855
|
+
|
|
4845
5856
|
return await self._github.arequest(
|
|
4846
5857
|
"DELETE",
|
|
4847
5858
|
url,
|
|
5859
|
+
headers=exclude_unset(headers),
|
|
4848
5860
|
error_models={
|
|
4849
5861
|
"403": BasicError,
|
|
4850
5862
|
"500": BasicError,
|
|
@@ -4859,9 +5871,14 @@ class ActionsClient:
|
|
|
4859
5871
|
) -> "Response[List[PendingDeployment]]":
|
|
4860
5872
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
4861
5873
|
|
|
5874
|
+
headers = {
|
|
5875
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5876
|
+
}
|
|
5877
|
+
|
|
4862
5878
|
return self._github.request(
|
|
4863
5879
|
"GET",
|
|
4864
5880
|
url,
|
|
5881
|
+
headers=exclude_unset(headers),
|
|
4865
5882
|
response_model=List[PendingDeployment],
|
|
4866
5883
|
)
|
|
4867
5884
|
|
|
@@ -4873,9 +5890,14 @@ class ActionsClient:
|
|
|
4873
5890
|
) -> "Response[List[PendingDeployment]]":
|
|
4874
5891
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
4875
5892
|
|
|
5893
|
+
headers = {
|
|
5894
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5895
|
+
}
|
|
5896
|
+
|
|
4876
5897
|
return await self._github.arequest(
|
|
4877
5898
|
"GET",
|
|
4878
5899
|
url,
|
|
5900
|
+
headers=exclude_unset(headers),
|
|
4879
5901
|
response_model=List[PendingDeployment],
|
|
4880
5902
|
)
|
|
4881
5903
|
|
|
@@ -4917,6 +5939,10 @@ class ActionsClient:
|
|
|
4917
5939
|
) -> "Response[List[Deployment]]":
|
|
4918
5940
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
4919
5941
|
|
|
5942
|
+
headers = {
|
|
5943
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
5944
|
+
}
|
|
5945
|
+
|
|
4920
5946
|
if not kwargs:
|
|
4921
5947
|
kwargs = UNSET
|
|
4922
5948
|
|
|
@@ -4930,6 +5956,7 @@ class ActionsClient:
|
|
|
4930
5956
|
"POST",
|
|
4931
5957
|
url,
|
|
4932
5958
|
json=exclude_unset(json),
|
|
5959
|
+
headers=exclude_unset(headers),
|
|
4933
5960
|
response_model=List[Deployment],
|
|
4934
5961
|
)
|
|
4935
5962
|
|
|
@@ -4971,6 +5998,10 @@ class ActionsClient:
|
|
|
4971
5998
|
) -> "Response[List[Deployment]]":
|
|
4972
5999
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
4973
6000
|
|
|
6001
|
+
headers = {
|
|
6002
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6003
|
+
}
|
|
6004
|
+
|
|
4974
6005
|
if not kwargs:
|
|
4975
6006
|
kwargs = UNSET
|
|
4976
6007
|
|
|
@@ -4984,6 +6015,7 @@ class ActionsClient:
|
|
|
4984
6015
|
"POST",
|
|
4985
6016
|
url,
|
|
4986
6017
|
json=exclude_unset(json),
|
|
6018
|
+
headers=exclude_unset(headers),
|
|
4987
6019
|
response_model=List[Deployment],
|
|
4988
6020
|
)
|
|
4989
6021
|
|
|
@@ -5025,6 +6057,10 @@ class ActionsClient:
|
|
|
5025
6057
|
) -> "Response[EmptyObject]":
|
|
5026
6058
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun"
|
|
5027
6059
|
|
|
6060
|
+
headers = {
|
|
6061
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6062
|
+
}
|
|
6063
|
+
|
|
5028
6064
|
if not kwargs:
|
|
5029
6065
|
kwargs = UNSET
|
|
5030
6066
|
|
|
@@ -5038,6 +6074,7 @@ class ActionsClient:
|
|
|
5038
6074
|
"POST",
|
|
5039
6075
|
url,
|
|
5040
6076
|
json=exclude_unset(json),
|
|
6077
|
+
headers=exclude_unset(headers),
|
|
5041
6078
|
response_model=EmptyObject,
|
|
5042
6079
|
)
|
|
5043
6080
|
|
|
@@ -5079,6 +6116,10 @@ class ActionsClient:
|
|
|
5079
6116
|
) -> "Response[EmptyObject]":
|
|
5080
6117
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun"
|
|
5081
6118
|
|
|
6119
|
+
headers = {
|
|
6120
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6121
|
+
}
|
|
6122
|
+
|
|
5082
6123
|
if not kwargs:
|
|
5083
6124
|
kwargs = UNSET
|
|
5084
6125
|
|
|
@@ -5092,6 +6133,7 @@ class ActionsClient:
|
|
|
5092
6133
|
"POST",
|
|
5093
6134
|
url,
|
|
5094
6135
|
json=exclude_unset(json),
|
|
6136
|
+
headers=exclude_unset(headers),
|
|
5095
6137
|
response_model=EmptyObject,
|
|
5096
6138
|
)
|
|
5097
6139
|
|
|
@@ -5135,6 +6177,10 @@ class ActionsClient:
|
|
|
5135
6177
|
) -> "Response[EmptyObject]":
|
|
5136
6178
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
5137
6179
|
|
|
6180
|
+
headers = {
|
|
6181
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6182
|
+
}
|
|
6183
|
+
|
|
5138
6184
|
if not kwargs:
|
|
5139
6185
|
kwargs = UNSET
|
|
5140
6186
|
|
|
@@ -5148,6 +6194,7 @@ class ActionsClient:
|
|
|
5148
6194
|
"POST",
|
|
5149
6195
|
url,
|
|
5150
6196
|
json=exclude_unset(json),
|
|
6197
|
+
headers=exclude_unset(headers),
|
|
5151
6198
|
response_model=EmptyObject,
|
|
5152
6199
|
)
|
|
5153
6200
|
|
|
@@ -5191,6 +6238,10 @@ class ActionsClient:
|
|
|
5191
6238
|
) -> "Response[EmptyObject]":
|
|
5192
6239
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
5193
6240
|
|
|
6241
|
+
headers = {
|
|
6242
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6243
|
+
}
|
|
6244
|
+
|
|
5194
6245
|
if not kwargs:
|
|
5195
6246
|
kwargs = UNSET
|
|
5196
6247
|
|
|
@@ -5204,6 +6255,7 @@ class ActionsClient:
|
|
|
5204
6255
|
"POST",
|
|
5205
6256
|
url,
|
|
5206
6257
|
json=exclude_unset(json),
|
|
6258
|
+
headers=exclude_unset(headers),
|
|
5207
6259
|
response_model=EmptyObject,
|
|
5208
6260
|
)
|
|
5209
6261
|
|
|
@@ -5215,9 +6267,14 @@ class ActionsClient:
|
|
|
5215
6267
|
) -> "Response[WorkflowRunUsage]":
|
|
5216
6268
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
5217
6269
|
|
|
6270
|
+
headers = {
|
|
6271
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6272
|
+
}
|
|
6273
|
+
|
|
5218
6274
|
return self._github.request(
|
|
5219
6275
|
"GET",
|
|
5220
6276
|
url,
|
|
6277
|
+
headers=exclude_unset(headers),
|
|
5221
6278
|
response_model=WorkflowRunUsage,
|
|
5222
6279
|
)
|
|
5223
6280
|
|
|
@@ -5229,9 +6286,14 @@ class ActionsClient:
|
|
|
5229
6286
|
) -> "Response[WorkflowRunUsage]":
|
|
5230
6287
|
url = f"/repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
5231
6288
|
|
|
6289
|
+
headers = {
|
|
6290
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6291
|
+
}
|
|
6292
|
+
|
|
5232
6293
|
return await self._github.arequest(
|
|
5233
6294
|
"GET",
|
|
5234
6295
|
url,
|
|
6296
|
+
headers=exclude_unset(headers),
|
|
5235
6297
|
response_model=WorkflowRunUsage,
|
|
5236
6298
|
)
|
|
5237
6299
|
|
|
@@ -5249,10 +6311,15 @@ class ActionsClient:
|
|
|
5249
6311
|
"page": page,
|
|
5250
6312
|
}
|
|
5251
6313
|
|
|
6314
|
+
headers = {
|
|
6315
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6316
|
+
}
|
|
6317
|
+
|
|
5252
6318
|
return self._github.request(
|
|
5253
6319
|
"GET",
|
|
5254
6320
|
url,
|
|
5255
6321
|
params=exclude_unset(params),
|
|
6322
|
+
headers=exclude_unset(headers),
|
|
5256
6323
|
response_model=ReposOwnerRepoActionsSecretsGetResponse200,
|
|
5257
6324
|
)
|
|
5258
6325
|
|
|
@@ -5270,10 +6337,15 @@ class ActionsClient:
|
|
|
5270
6337
|
"page": page,
|
|
5271
6338
|
}
|
|
5272
6339
|
|
|
6340
|
+
headers = {
|
|
6341
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6342
|
+
}
|
|
6343
|
+
|
|
5273
6344
|
return await self._github.arequest(
|
|
5274
6345
|
"GET",
|
|
5275
6346
|
url,
|
|
5276
6347
|
params=exclude_unset(params),
|
|
6348
|
+
headers=exclude_unset(headers),
|
|
5277
6349
|
response_model=ReposOwnerRepoActionsSecretsGetResponse200,
|
|
5278
6350
|
)
|
|
5279
6351
|
|
|
@@ -5284,9 +6356,14 @@ class ActionsClient:
|
|
|
5284
6356
|
) -> "Response[ActionsPublicKey]":
|
|
5285
6357
|
url = f"/repos/{owner}/{repo}/actions/secrets/public-key"
|
|
5286
6358
|
|
|
6359
|
+
headers = {
|
|
6360
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6361
|
+
}
|
|
6362
|
+
|
|
5287
6363
|
return self._github.request(
|
|
5288
6364
|
"GET",
|
|
5289
6365
|
url,
|
|
6366
|
+
headers=exclude_unset(headers),
|
|
5290
6367
|
response_model=ActionsPublicKey,
|
|
5291
6368
|
)
|
|
5292
6369
|
|
|
@@ -5297,9 +6374,14 @@ class ActionsClient:
|
|
|
5297
6374
|
) -> "Response[ActionsPublicKey]":
|
|
5298
6375
|
url = f"/repos/{owner}/{repo}/actions/secrets/public-key"
|
|
5299
6376
|
|
|
6377
|
+
headers = {
|
|
6378
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6379
|
+
}
|
|
6380
|
+
|
|
5300
6381
|
return await self._github.arequest(
|
|
5301
6382
|
"GET",
|
|
5302
6383
|
url,
|
|
6384
|
+
headers=exclude_unset(headers),
|
|
5303
6385
|
response_model=ActionsPublicKey,
|
|
5304
6386
|
)
|
|
5305
6387
|
|
|
@@ -5311,9 +6393,14 @@ class ActionsClient:
|
|
|
5311
6393
|
) -> "Response[ActionsSecret]":
|
|
5312
6394
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
5313
6395
|
|
|
6396
|
+
headers = {
|
|
6397
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6398
|
+
}
|
|
6399
|
+
|
|
5314
6400
|
return self._github.request(
|
|
5315
6401
|
"GET",
|
|
5316
6402
|
url,
|
|
6403
|
+
headers=exclude_unset(headers),
|
|
5317
6404
|
response_model=ActionsSecret,
|
|
5318
6405
|
)
|
|
5319
6406
|
|
|
@@ -5325,9 +6412,14 @@ class ActionsClient:
|
|
|
5325
6412
|
) -> "Response[ActionsSecret]":
|
|
5326
6413
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
5327
6414
|
|
|
6415
|
+
headers = {
|
|
6416
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6417
|
+
}
|
|
6418
|
+
|
|
5328
6419
|
return await self._github.arequest(
|
|
5329
6420
|
"GET",
|
|
5330
6421
|
url,
|
|
6422
|
+
headers=exclude_unset(headers),
|
|
5331
6423
|
response_model=ActionsSecret,
|
|
5332
6424
|
)
|
|
5333
6425
|
|
|
@@ -5366,6 +6458,10 @@ class ActionsClient:
|
|
|
5366
6458
|
) -> "Response[EmptyObject]":
|
|
5367
6459
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
5368
6460
|
|
|
6461
|
+
headers = {
|
|
6462
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6463
|
+
}
|
|
6464
|
+
|
|
5369
6465
|
if not kwargs:
|
|
5370
6466
|
kwargs = UNSET
|
|
5371
6467
|
|
|
@@ -5377,6 +6473,7 @@ class ActionsClient:
|
|
|
5377
6473
|
"PUT",
|
|
5378
6474
|
url,
|
|
5379
6475
|
json=exclude_unset(json),
|
|
6476
|
+
headers=exclude_unset(headers),
|
|
5380
6477
|
response_model=EmptyObject,
|
|
5381
6478
|
)
|
|
5382
6479
|
|
|
@@ -5415,6 +6512,10 @@ class ActionsClient:
|
|
|
5415
6512
|
) -> "Response[EmptyObject]":
|
|
5416
6513
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
5417
6514
|
|
|
6515
|
+
headers = {
|
|
6516
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6517
|
+
}
|
|
6518
|
+
|
|
5418
6519
|
if not kwargs:
|
|
5419
6520
|
kwargs = UNSET
|
|
5420
6521
|
|
|
@@ -5426,6 +6527,7 @@ class ActionsClient:
|
|
|
5426
6527
|
"PUT",
|
|
5427
6528
|
url,
|
|
5428
6529
|
json=exclude_unset(json),
|
|
6530
|
+
headers=exclude_unset(headers),
|
|
5429
6531
|
response_model=EmptyObject,
|
|
5430
6532
|
)
|
|
5431
6533
|
|
|
@@ -5437,9 +6539,14 @@ class ActionsClient:
|
|
|
5437
6539
|
) -> "Response":
|
|
5438
6540
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
5439
6541
|
|
|
6542
|
+
headers = {
|
|
6543
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6544
|
+
}
|
|
6545
|
+
|
|
5440
6546
|
return self._github.request(
|
|
5441
6547
|
"DELETE",
|
|
5442
6548
|
url,
|
|
6549
|
+
headers=exclude_unset(headers),
|
|
5443
6550
|
)
|
|
5444
6551
|
|
|
5445
6552
|
async def async_delete_repo_secret(
|
|
@@ -5450,9 +6557,14 @@ class ActionsClient:
|
|
|
5450
6557
|
) -> "Response":
|
|
5451
6558
|
url = f"/repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
5452
6559
|
|
|
6560
|
+
headers = {
|
|
6561
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6562
|
+
}
|
|
6563
|
+
|
|
5453
6564
|
return await self._github.arequest(
|
|
5454
6565
|
"DELETE",
|
|
5455
6566
|
url,
|
|
6567
|
+
headers=exclude_unset(headers),
|
|
5456
6568
|
)
|
|
5457
6569
|
|
|
5458
6570
|
def list_repo_variables(
|
|
@@ -5469,10 +6581,15 @@ class ActionsClient:
|
|
|
5469
6581
|
"page": page,
|
|
5470
6582
|
}
|
|
5471
6583
|
|
|
6584
|
+
headers = {
|
|
6585
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6586
|
+
}
|
|
6587
|
+
|
|
5472
6588
|
return self._github.request(
|
|
5473
6589
|
"GET",
|
|
5474
6590
|
url,
|
|
5475
6591
|
params=exclude_unset(params),
|
|
6592
|
+
headers=exclude_unset(headers),
|
|
5476
6593
|
response_model=ReposOwnerRepoActionsVariablesGetResponse200,
|
|
5477
6594
|
)
|
|
5478
6595
|
|
|
@@ -5490,10 +6607,15 @@ class ActionsClient:
|
|
|
5490
6607
|
"page": page,
|
|
5491
6608
|
}
|
|
5492
6609
|
|
|
6610
|
+
headers = {
|
|
6611
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6612
|
+
}
|
|
6613
|
+
|
|
5493
6614
|
return await self._github.arequest(
|
|
5494
6615
|
"GET",
|
|
5495
6616
|
url,
|
|
5496
6617
|
params=exclude_unset(params),
|
|
6618
|
+
headers=exclude_unset(headers),
|
|
5497
6619
|
response_model=ReposOwnerRepoActionsVariablesGetResponse200,
|
|
5498
6620
|
)
|
|
5499
6621
|
|
|
@@ -5525,6 +6647,10 @@ class ActionsClient:
|
|
|
5525
6647
|
) -> "Response[EmptyObject]":
|
|
5526
6648
|
url = f"/repos/{owner}/{repo}/actions/variables"
|
|
5527
6649
|
|
|
6650
|
+
headers = {
|
|
6651
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6652
|
+
}
|
|
6653
|
+
|
|
5528
6654
|
if not kwargs:
|
|
5529
6655
|
kwargs = UNSET
|
|
5530
6656
|
|
|
@@ -5536,6 +6662,7 @@ class ActionsClient:
|
|
|
5536
6662
|
"POST",
|
|
5537
6663
|
url,
|
|
5538
6664
|
json=exclude_unset(json),
|
|
6665
|
+
headers=exclude_unset(headers),
|
|
5539
6666
|
response_model=EmptyObject,
|
|
5540
6667
|
)
|
|
5541
6668
|
|
|
@@ -5567,6 +6694,10 @@ class ActionsClient:
|
|
|
5567
6694
|
) -> "Response[EmptyObject]":
|
|
5568
6695
|
url = f"/repos/{owner}/{repo}/actions/variables"
|
|
5569
6696
|
|
|
6697
|
+
headers = {
|
|
6698
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6699
|
+
}
|
|
6700
|
+
|
|
5570
6701
|
if not kwargs:
|
|
5571
6702
|
kwargs = UNSET
|
|
5572
6703
|
|
|
@@ -5578,6 +6709,7 @@ class ActionsClient:
|
|
|
5578
6709
|
"POST",
|
|
5579
6710
|
url,
|
|
5580
6711
|
json=exclude_unset(json),
|
|
6712
|
+
headers=exclude_unset(headers),
|
|
5581
6713
|
response_model=EmptyObject,
|
|
5582
6714
|
)
|
|
5583
6715
|
|
|
@@ -5589,9 +6721,14 @@ class ActionsClient:
|
|
|
5589
6721
|
) -> "Response[ActionsVariable]":
|
|
5590
6722
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
5591
6723
|
|
|
6724
|
+
headers = {
|
|
6725
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6726
|
+
}
|
|
6727
|
+
|
|
5592
6728
|
return self._github.request(
|
|
5593
6729
|
"GET",
|
|
5594
6730
|
url,
|
|
6731
|
+
headers=exclude_unset(headers),
|
|
5595
6732
|
response_model=ActionsVariable,
|
|
5596
6733
|
)
|
|
5597
6734
|
|
|
@@ -5603,9 +6740,14 @@ class ActionsClient:
|
|
|
5603
6740
|
) -> "Response[ActionsVariable]":
|
|
5604
6741
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
5605
6742
|
|
|
6743
|
+
headers = {
|
|
6744
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6745
|
+
}
|
|
6746
|
+
|
|
5606
6747
|
return await self._github.arequest(
|
|
5607
6748
|
"GET",
|
|
5608
6749
|
url,
|
|
6750
|
+
headers=exclude_unset(headers),
|
|
5609
6751
|
response_model=ActionsVariable,
|
|
5610
6752
|
)
|
|
5611
6753
|
|
|
@@ -5617,9 +6759,14 @@ class ActionsClient:
|
|
|
5617
6759
|
) -> "Response":
|
|
5618
6760
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
5619
6761
|
|
|
6762
|
+
headers = {
|
|
6763
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6764
|
+
}
|
|
6765
|
+
|
|
5620
6766
|
return self._github.request(
|
|
5621
6767
|
"DELETE",
|
|
5622
6768
|
url,
|
|
6769
|
+
headers=exclude_unset(headers),
|
|
5623
6770
|
)
|
|
5624
6771
|
|
|
5625
6772
|
async def async_delete_repo_variable(
|
|
@@ -5630,9 +6777,14 @@ class ActionsClient:
|
|
|
5630
6777
|
) -> "Response":
|
|
5631
6778
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
5632
6779
|
|
|
6780
|
+
headers = {
|
|
6781
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6782
|
+
}
|
|
6783
|
+
|
|
5633
6784
|
return await self._github.arequest(
|
|
5634
6785
|
"DELETE",
|
|
5635
6786
|
url,
|
|
6787
|
+
headers=exclude_unset(headers),
|
|
5636
6788
|
)
|
|
5637
6789
|
|
|
5638
6790
|
@overload
|
|
@@ -5669,6 +6821,10 @@ class ActionsClient:
|
|
|
5669
6821
|
) -> "Response":
|
|
5670
6822
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
5671
6823
|
|
|
6824
|
+
headers = {
|
|
6825
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6826
|
+
}
|
|
6827
|
+
|
|
5672
6828
|
if not kwargs:
|
|
5673
6829
|
kwargs = UNSET
|
|
5674
6830
|
|
|
@@ -5680,6 +6836,7 @@ class ActionsClient:
|
|
|
5680
6836
|
"PATCH",
|
|
5681
6837
|
url,
|
|
5682
6838
|
json=exclude_unset(json),
|
|
6839
|
+
headers=exclude_unset(headers),
|
|
5683
6840
|
)
|
|
5684
6841
|
|
|
5685
6842
|
@overload
|
|
@@ -5716,6 +6873,10 @@ class ActionsClient:
|
|
|
5716
6873
|
) -> "Response":
|
|
5717
6874
|
url = f"/repos/{owner}/{repo}/actions/variables/{name}"
|
|
5718
6875
|
|
|
6876
|
+
headers = {
|
|
6877
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6878
|
+
}
|
|
6879
|
+
|
|
5719
6880
|
if not kwargs:
|
|
5720
6881
|
kwargs = UNSET
|
|
5721
6882
|
|
|
@@ -5727,6 +6888,7 @@ class ActionsClient:
|
|
|
5727
6888
|
"PATCH",
|
|
5728
6889
|
url,
|
|
5729
6890
|
json=exclude_unset(json),
|
|
6891
|
+
headers=exclude_unset(headers),
|
|
5730
6892
|
)
|
|
5731
6893
|
|
|
5732
6894
|
def list_repo_workflows(
|
|
@@ -5743,10 +6905,15 @@ class ActionsClient:
|
|
|
5743
6905
|
"page": page,
|
|
5744
6906
|
}
|
|
5745
6907
|
|
|
6908
|
+
headers = {
|
|
6909
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6910
|
+
}
|
|
6911
|
+
|
|
5746
6912
|
return self._github.request(
|
|
5747
6913
|
"GET",
|
|
5748
6914
|
url,
|
|
5749
6915
|
params=exclude_unset(params),
|
|
6916
|
+
headers=exclude_unset(headers),
|
|
5750
6917
|
response_model=ReposOwnerRepoActionsWorkflowsGetResponse200,
|
|
5751
6918
|
)
|
|
5752
6919
|
|
|
@@ -5764,10 +6931,15 @@ class ActionsClient:
|
|
|
5764
6931
|
"page": page,
|
|
5765
6932
|
}
|
|
5766
6933
|
|
|
6934
|
+
headers = {
|
|
6935
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6936
|
+
}
|
|
6937
|
+
|
|
5767
6938
|
return await self._github.arequest(
|
|
5768
6939
|
"GET",
|
|
5769
6940
|
url,
|
|
5770
6941
|
params=exclude_unset(params),
|
|
6942
|
+
headers=exclude_unset(headers),
|
|
5771
6943
|
response_model=ReposOwnerRepoActionsWorkflowsGetResponse200,
|
|
5772
6944
|
)
|
|
5773
6945
|
|
|
@@ -5779,9 +6951,14 @@ class ActionsClient:
|
|
|
5779
6951
|
) -> "Response[Workflow]":
|
|
5780
6952
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}"
|
|
5781
6953
|
|
|
6954
|
+
headers = {
|
|
6955
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6956
|
+
}
|
|
6957
|
+
|
|
5782
6958
|
return self._github.request(
|
|
5783
6959
|
"GET",
|
|
5784
6960
|
url,
|
|
6961
|
+
headers=exclude_unset(headers),
|
|
5785
6962
|
response_model=Workflow,
|
|
5786
6963
|
)
|
|
5787
6964
|
|
|
@@ -5793,9 +6970,14 @@ class ActionsClient:
|
|
|
5793
6970
|
) -> "Response[Workflow]":
|
|
5794
6971
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}"
|
|
5795
6972
|
|
|
6973
|
+
headers = {
|
|
6974
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6975
|
+
}
|
|
6976
|
+
|
|
5796
6977
|
return await self._github.arequest(
|
|
5797
6978
|
"GET",
|
|
5798
6979
|
url,
|
|
6980
|
+
headers=exclude_unset(headers),
|
|
5799
6981
|
response_model=Workflow,
|
|
5800
6982
|
)
|
|
5801
6983
|
|
|
@@ -5807,9 +6989,14 @@ class ActionsClient:
|
|
|
5807
6989
|
) -> "Response":
|
|
5808
6990
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
5809
6991
|
|
|
6992
|
+
headers = {
|
|
6993
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
6994
|
+
}
|
|
6995
|
+
|
|
5810
6996
|
return self._github.request(
|
|
5811
6997
|
"PUT",
|
|
5812
6998
|
url,
|
|
6999
|
+
headers=exclude_unset(headers),
|
|
5813
7000
|
)
|
|
5814
7001
|
|
|
5815
7002
|
async def async_disable_workflow(
|
|
@@ -5820,9 +7007,14 @@ class ActionsClient:
|
|
|
5820
7007
|
) -> "Response":
|
|
5821
7008
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
5822
7009
|
|
|
7010
|
+
headers = {
|
|
7011
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7012
|
+
}
|
|
7013
|
+
|
|
5823
7014
|
return await self._github.arequest(
|
|
5824
7015
|
"PUT",
|
|
5825
7016
|
url,
|
|
7017
|
+
headers=exclude_unset(headers),
|
|
5826
7018
|
)
|
|
5827
7019
|
|
|
5828
7020
|
@overload
|
|
@@ -5865,6 +7057,10 @@ class ActionsClient:
|
|
|
5865
7057
|
) -> "Response":
|
|
5866
7058
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
5867
7059
|
|
|
7060
|
+
headers = {
|
|
7061
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7062
|
+
}
|
|
7063
|
+
|
|
5868
7064
|
if not kwargs:
|
|
5869
7065
|
kwargs = UNSET
|
|
5870
7066
|
|
|
@@ -5878,6 +7074,7 @@ class ActionsClient:
|
|
|
5878
7074
|
"POST",
|
|
5879
7075
|
url,
|
|
5880
7076
|
json=exclude_unset(json),
|
|
7077
|
+
headers=exclude_unset(headers),
|
|
5881
7078
|
)
|
|
5882
7079
|
|
|
5883
7080
|
@overload
|
|
@@ -5920,6 +7117,10 @@ class ActionsClient:
|
|
|
5920
7117
|
) -> "Response":
|
|
5921
7118
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
5922
7119
|
|
|
7120
|
+
headers = {
|
|
7121
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7122
|
+
}
|
|
7123
|
+
|
|
5923
7124
|
if not kwargs:
|
|
5924
7125
|
kwargs = UNSET
|
|
5925
7126
|
|
|
@@ -5933,6 +7134,7 @@ class ActionsClient:
|
|
|
5933
7134
|
"POST",
|
|
5934
7135
|
url,
|
|
5935
7136
|
json=exclude_unset(json),
|
|
7137
|
+
headers=exclude_unset(headers),
|
|
5936
7138
|
)
|
|
5937
7139
|
|
|
5938
7140
|
def enable_workflow(
|
|
@@ -5943,9 +7145,14 @@ class ActionsClient:
|
|
|
5943
7145
|
) -> "Response":
|
|
5944
7146
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
5945
7147
|
|
|
7148
|
+
headers = {
|
|
7149
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7150
|
+
}
|
|
7151
|
+
|
|
5946
7152
|
return self._github.request(
|
|
5947
7153
|
"PUT",
|
|
5948
7154
|
url,
|
|
7155
|
+
headers=exclude_unset(headers),
|
|
5949
7156
|
)
|
|
5950
7157
|
|
|
5951
7158
|
async def async_enable_workflow(
|
|
@@ -5956,9 +7163,14 @@ class ActionsClient:
|
|
|
5956
7163
|
) -> "Response":
|
|
5957
7164
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
5958
7165
|
|
|
7166
|
+
headers = {
|
|
7167
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7168
|
+
}
|
|
7169
|
+
|
|
5959
7170
|
return await self._github.arequest(
|
|
5960
7171
|
"PUT",
|
|
5961
7172
|
url,
|
|
7173
|
+
headers=exclude_unset(headers),
|
|
5962
7174
|
)
|
|
5963
7175
|
|
|
5964
7176
|
def list_workflow_runs(
|
|
@@ -6010,10 +7222,15 @@ class ActionsClient:
|
|
|
6010
7222
|
"head_sha": head_sha,
|
|
6011
7223
|
}
|
|
6012
7224
|
|
|
7225
|
+
headers = {
|
|
7226
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7227
|
+
}
|
|
7228
|
+
|
|
6013
7229
|
return self._github.request(
|
|
6014
7230
|
"GET",
|
|
6015
7231
|
url,
|
|
6016
7232
|
params=exclude_unset(params),
|
|
7233
|
+
headers=exclude_unset(headers),
|
|
6017
7234
|
response_model=ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200,
|
|
6018
7235
|
)
|
|
6019
7236
|
|
|
@@ -6066,10 +7283,15 @@ class ActionsClient:
|
|
|
6066
7283
|
"head_sha": head_sha,
|
|
6067
7284
|
}
|
|
6068
7285
|
|
|
7286
|
+
headers = {
|
|
7287
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7288
|
+
}
|
|
7289
|
+
|
|
6069
7290
|
return await self._github.arequest(
|
|
6070
7291
|
"GET",
|
|
6071
7292
|
url,
|
|
6072
7293
|
params=exclude_unset(params),
|
|
7294
|
+
headers=exclude_unset(headers),
|
|
6073
7295
|
response_model=ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200,
|
|
6074
7296
|
)
|
|
6075
7297
|
|
|
@@ -6081,9 +7303,14 @@ class ActionsClient:
|
|
|
6081
7303
|
) -> "Response[WorkflowUsage]":
|
|
6082
7304
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
6083
7305
|
|
|
7306
|
+
headers = {
|
|
7307
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7308
|
+
}
|
|
7309
|
+
|
|
6084
7310
|
return self._github.request(
|
|
6085
7311
|
"GET",
|
|
6086
7312
|
url,
|
|
7313
|
+
headers=exclude_unset(headers),
|
|
6087
7314
|
response_model=WorkflowUsage,
|
|
6088
7315
|
)
|
|
6089
7316
|
|
|
@@ -6095,9 +7322,14 @@ class ActionsClient:
|
|
|
6095
7322
|
) -> "Response[WorkflowUsage]":
|
|
6096
7323
|
url = f"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
6097
7324
|
|
|
7325
|
+
headers = {
|
|
7326
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7327
|
+
}
|
|
7328
|
+
|
|
6098
7329
|
return await self._github.arequest(
|
|
6099
7330
|
"GET",
|
|
6100
7331
|
url,
|
|
7332
|
+
headers=exclude_unset(headers),
|
|
6101
7333
|
response_model=WorkflowUsage,
|
|
6102
7334
|
)
|
|
6103
7335
|
|
|
@@ -6115,10 +7347,15 @@ class ActionsClient:
|
|
|
6115
7347
|
"page": page,
|
|
6116
7348
|
}
|
|
6117
7349
|
|
|
7350
|
+
headers = {
|
|
7351
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7352
|
+
}
|
|
7353
|
+
|
|
6118
7354
|
return self._github.request(
|
|
6119
7355
|
"GET",
|
|
6120
7356
|
url,
|
|
6121
7357
|
params=exclude_unset(params),
|
|
7358
|
+
headers=exclude_unset(headers),
|
|
6122
7359
|
response_model=RepositoriesRepositoryIdEnvironmentsEnvironmentNameSecretsGetResponse200,
|
|
6123
7360
|
)
|
|
6124
7361
|
|
|
@@ -6136,10 +7373,15 @@ class ActionsClient:
|
|
|
6136
7373
|
"page": page,
|
|
6137
7374
|
}
|
|
6138
7375
|
|
|
7376
|
+
headers = {
|
|
7377
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7378
|
+
}
|
|
7379
|
+
|
|
6139
7380
|
return await self._github.arequest(
|
|
6140
7381
|
"GET",
|
|
6141
7382
|
url,
|
|
6142
7383
|
params=exclude_unset(params),
|
|
7384
|
+
headers=exclude_unset(headers),
|
|
6143
7385
|
response_model=RepositoriesRepositoryIdEnvironmentsEnvironmentNameSecretsGetResponse200,
|
|
6144
7386
|
)
|
|
6145
7387
|
|
|
@@ -6150,9 +7392,14 @@ class ActionsClient:
|
|
|
6150
7392
|
) -> "Response[ActionsPublicKey]":
|
|
6151
7393
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
|
|
6152
7394
|
|
|
7395
|
+
headers = {
|
|
7396
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7397
|
+
}
|
|
7398
|
+
|
|
6153
7399
|
return self._github.request(
|
|
6154
7400
|
"GET",
|
|
6155
7401
|
url,
|
|
7402
|
+
headers=exclude_unset(headers),
|
|
6156
7403
|
response_model=ActionsPublicKey,
|
|
6157
7404
|
)
|
|
6158
7405
|
|
|
@@ -6163,9 +7410,14 @@ class ActionsClient:
|
|
|
6163
7410
|
) -> "Response[ActionsPublicKey]":
|
|
6164
7411
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
|
|
6165
7412
|
|
|
7413
|
+
headers = {
|
|
7414
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7415
|
+
}
|
|
7416
|
+
|
|
6166
7417
|
return await self._github.arequest(
|
|
6167
7418
|
"GET",
|
|
6168
7419
|
url,
|
|
7420
|
+
headers=exclude_unset(headers),
|
|
6169
7421
|
response_model=ActionsPublicKey,
|
|
6170
7422
|
)
|
|
6171
7423
|
|
|
@@ -6177,9 +7429,14 @@ class ActionsClient:
|
|
|
6177
7429
|
) -> "Response[ActionsSecret]":
|
|
6178
7430
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
6179
7431
|
|
|
7432
|
+
headers = {
|
|
7433
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7434
|
+
}
|
|
7435
|
+
|
|
6180
7436
|
return self._github.request(
|
|
6181
7437
|
"GET",
|
|
6182
7438
|
url,
|
|
7439
|
+
headers=exclude_unset(headers),
|
|
6183
7440
|
response_model=ActionsSecret,
|
|
6184
7441
|
)
|
|
6185
7442
|
|
|
@@ -6191,9 +7448,14 @@ class ActionsClient:
|
|
|
6191
7448
|
) -> "Response[ActionsSecret]":
|
|
6192
7449
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
6193
7450
|
|
|
7451
|
+
headers = {
|
|
7452
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7453
|
+
}
|
|
7454
|
+
|
|
6194
7455
|
return await self._github.arequest(
|
|
6195
7456
|
"GET",
|
|
6196
7457
|
url,
|
|
7458
|
+
headers=exclude_unset(headers),
|
|
6197
7459
|
response_model=ActionsSecret,
|
|
6198
7460
|
)
|
|
6199
7461
|
|
|
@@ -6235,6 +7497,10 @@ class ActionsClient:
|
|
|
6235
7497
|
) -> "Response[EmptyObject]":
|
|
6236
7498
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
6237
7499
|
|
|
7500
|
+
headers = {
|
|
7501
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7502
|
+
}
|
|
7503
|
+
|
|
6238
7504
|
if not kwargs:
|
|
6239
7505
|
kwargs = UNSET
|
|
6240
7506
|
|
|
@@ -6249,6 +7515,7 @@ class ActionsClient:
|
|
|
6249
7515
|
"PUT",
|
|
6250
7516
|
url,
|
|
6251
7517
|
json=exclude_unset(json),
|
|
7518
|
+
headers=exclude_unset(headers),
|
|
6252
7519
|
response_model=EmptyObject,
|
|
6253
7520
|
)
|
|
6254
7521
|
|
|
@@ -6290,6 +7557,10 @@ class ActionsClient:
|
|
|
6290
7557
|
) -> "Response[EmptyObject]":
|
|
6291
7558
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
6292
7559
|
|
|
7560
|
+
headers = {
|
|
7561
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7562
|
+
}
|
|
7563
|
+
|
|
6293
7564
|
if not kwargs:
|
|
6294
7565
|
kwargs = UNSET
|
|
6295
7566
|
|
|
@@ -6304,6 +7575,7 @@ class ActionsClient:
|
|
|
6304
7575
|
"PUT",
|
|
6305
7576
|
url,
|
|
6306
7577
|
json=exclude_unset(json),
|
|
7578
|
+
headers=exclude_unset(headers),
|
|
6307
7579
|
response_model=EmptyObject,
|
|
6308
7580
|
)
|
|
6309
7581
|
|
|
@@ -6315,9 +7587,14 @@ class ActionsClient:
|
|
|
6315
7587
|
) -> "Response":
|
|
6316
7588
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
6317
7589
|
|
|
7590
|
+
headers = {
|
|
7591
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7592
|
+
}
|
|
7593
|
+
|
|
6318
7594
|
return self._github.request(
|
|
6319
7595
|
"DELETE",
|
|
6320
7596
|
url,
|
|
7597
|
+
headers=exclude_unset(headers),
|
|
6321
7598
|
)
|
|
6322
7599
|
|
|
6323
7600
|
async def async_delete_environment_secret(
|
|
@@ -6328,9 +7605,14 @@ class ActionsClient:
|
|
|
6328
7605
|
) -> "Response":
|
|
6329
7606
|
url = f"/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
|
6330
7607
|
|
|
7608
|
+
headers = {
|
|
7609
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7610
|
+
}
|
|
7611
|
+
|
|
6331
7612
|
return await self._github.arequest(
|
|
6332
7613
|
"DELETE",
|
|
6333
7614
|
url,
|
|
7615
|
+
headers=exclude_unset(headers),
|
|
6334
7616
|
)
|
|
6335
7617
|
|
|
6336
7618
|
def list_environment_variables(
|
|
@@ -6347,10 +7629,15 @@ class ActionsClient:
|
|
|
6347
7629
|
"page": page,
|
|
6348
7630
|
}
|
|
6349
7631
|
|
|
7632
|
+
headers = {
|
|
7633
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7634
|
+
}
|
|
7635
|
+
|
|
6350
7636
|
return self._github.request(
|
|
6351
7637
|
"GET",
|
|
6352
7638
|
url,
|
|
6353
7639
|
params=exclude_unset(params),
|
|
7640
|
+
headers=exclude_unset(headers),
|
|
6354
7641
|
response_model=RepositoriesRepositoryIdEnvironmentsEnvironmentNameVariablesGetResponse200,
|
|
6355
7642
|
)
|
|
6356
7643
|
|
|
@@ -6368,10 +7655,15 @@ class ActionsClient:
|
|
|
6368
7655
|
"page": page,
|
|
6369
7656
|
}
|
|
6370
7657
|
|
|
7658
|
+
headers = {
|
|
7659
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7660
|
+
}
|
|
7661
|
+
|
|
6371
7662
|
return await self._github.arequest(
|
|
6372
7663
|
"GET",
|
|
6373
7664
|
url,
|
|
6374
7665
|
params=exclude_unset(params),
|
|
7666
|
+
headers=exclude_unset(headers),
|
|
6375
7667
|
response_model=RepositoriesRepositoryIdEnvironmentsEnvironmentNameVariablesGetResponse200,
|
|
6376
7668
|
)
|
|
6377
7669
|
|
|
@@ -6410,6 +7702,10 @@ class ActionsClient:
|
|
|
6410
7702
|
) -> "Response[EmptyObject]":
|
|
6411
7703
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables"
|
|
6412
7704
|
|
|
7705
|
+
headers = {
|
|
7706
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7707
|
+
}
|
|
7708
|
+
|
|
6413
7709
|
if not kwargs:
|
|
6414
7710
|
kwargs = UNSET
|
|
6415
7711
|
|
|
@@ -6423,6 +7719,7 @@ class ActionsClient:
|
|
|
6423
7719
|
"POST",
|
|
6424
7720
|
url,
|
|
6425
7721
|
json=exclude_unset(json),
|
|
7722
|
+
headers=exclude_unset(headers),
|
|
6426
7723
|
response_model=EmptyObject,
|
|
6427
7724
|
)
|
|
6428
7725
|
|
|
@@ -6461,6 +7758,10 @@ class ActionsClient:
|
|
|
6461
7758
|
) -> "Response[EmptyObject]":
|
|
6462
7759
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables"
|
|
6463
7760
|
|
|
7761
|
+
headers = {
|
|
7762
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7763
|
+
}
|
|
7764
|
+
|
|
6464
7765
|
if not kwargs:
|
|
6465
7766
|
kwargs = UNSET
|
|
6466
7767
|
|
|
@@ -6474,6 +7775,7 @@ class ActionsClient:
|
|
|
6474
7775
|
"POST",
|
|
6475
7776
|
url,
|
|
6476
7777
|
json=exclude_unset(json),
|
|
7778
|
+
headers=exclude_unset(headers),
|
|
6477
7779
|
response_model=EmptyObject,
|
|
6478
7780
|
)
|
|
6479
7781
|
|
|
@@ -6485,9 +7787,14 @@ class ActionsClient:
|
|
|
6485
7787
|
) -> "Response[ActionsVariable]":
|
|
6486
7788
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
6487
7789
|
|
|
7790
|
+
headers = {
|
|
7791
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7792
|
+
}
|
|
7793
|
+
|
|
6488
7794
|
return self._github.request(
|
|
6489
7795
|
"GET",
|
|
6490
7796
|
url,
|
|
7797
|
+
headers=exclude_unset(headers),
|
|
6491
7798
|
response_model=ActionsVariable,
|
|
6492
7799
|
)
|
|
6493
7800
|
|
|
@@ -6499,9 +7806,14 @@ class ActionsClient:
|
|
|
6499
7806
|
) -> "Response[ActionsVariable]":
|
|
6500
7807
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
6501
7808
|
|
|
7809
|
+
headers = {
|
|
7810
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7811
|
+
}
|
|
7812
|
+
|
|
6502
7813
|
return await self._github.arequest(
|
|
6503
7814
|
"GET",
|
|
6504
7815
|
url,
|
|
7816
|
+
headers=exclude_unset(headers),
|
|
6505
7817
|
response_model=ActionsVariable,
|
|
6506
7818
|
)
|
|
6507
7819
|
|
|
@@ -6513,9 +7825,14 @@ class ActionsClient:
|
|
|
6513
7825
|
) -> "Response":
|
|
6514
7826
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
6515
7827
|
|
|
7828
|
+
headers = {
|
|
7829
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7830
|
+
}
|
|
7831
|
+
|
|
6516
7832
|
return self._github.request(
|
|
6517
7833
|
"DELETE",
|
|
6518
7834
|
url,
|
|
7835
|
+
headers=exclude_unset(headers),
|
|
6519
7836
|
)
|
|
6520
7837
|
|
|
6521
7838
|
async def async_delete_environment_variable(
|
|
@@ -6526,9 +7843,14 @@ class ActionsClient:
|
|
|
6526
7843
|
) -> "Response":
|
|
6527
7844
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
6528
7845
|
|
|
7846
|
+
headers = {
|
|
7847
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7848
|
+
}
|
|
7849
|
+
|
|
6529
7850
|
return await self._github.arequest(
|
|
6530
7851
|
"DELETE",
|
|
6531
7852
|
url,
|
|
7853
|
+
headers=exclude_unset(headers),
|
|
6532
7854
|
)
|
|
6533
7855
|
|
|
6534
7856
|
@overload
|
|
@@ -6568,6 +7890,10 @@ class ActionsClient:
|
|
|
6568
7890
|
) -> "Response":
|
|
6569
7891
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
6570
7892
|
|
|
7893
|
+
headers = {
|
|
7894
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7895
|
+
}
|
|
7896
|
+
|
|
6571
7897
|
if not kwargs:
|
|
6572
7898
|
kwargs = UNSET
|
|
6573
7899
|
|
|
@@ -6582,6 +7908,7 @@ class ActionsClient:
|
|
|
6582
7908
|
"PATCH",
|
|
6583
7909
|
url,
|
|
6584
7910
|
json=exclude_unset(json),
|
|
7911
|
+
headers=exclude_unset(headers),
|
|
6585
7912
|
)
|
|
6586
7913
|
|
|
6587
7914
|
@overload
|
|
@@ -6621,6 +7948,10 @@ class ActionsClient:
|
|
|
6621
7948
|
) -> "Response":
|
|
6622
7949
|
url = f"/repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
|
6623
7950
|
|
|
7951
|
+
headers = {
|
|
7952
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
7953
|
+
}
|
|
7954
|
+
|
|
6624
7955
|
if not kwargs:
|
|
6625
7956
|
kwargs = UNSET
|
|
6626
7957
|
|
|
@@ -6635,4 +7966,5 @@ class ActionsClient:
|
|
|
6635
7966
|
"PATCH",
|
|
6636
7967
|
url,
|
|
6637
7968
|
json=exclude_unset(json),
|
|
7969
|
+
headers=exclude_unset(headers),
|
|
6638
7970
|
)
|