PyGithub-asyncio 3.0.0b1__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.
- githubasyncio/AccessToken.py +159 -0
- githubasyncio/AdvisoryBase.py +163 -0
- githubasyncio/AdvisoryCredit.py +131 -0
- githubasyncio/AdvisoryCreditDetailed.py +110 -0
- githubasyncio/AdvisoryVulnerability.py +191 -0
- githubasyncio/AdvisoryVulnerabilityPackage.py +93 -0
- githubasyncio/AppAuthentication.py +58 -0
- githubasyncio/ApplicationOAuth.py +200 -0
- githubasyncio/Artifact.py +183 -0
- githubasyncio/Auth.py +560 -0
- githubasyncio/AuthenticatedUser.py +1251 -0
- githubasyncio/Authorization.py +192 -0
- githubasyncio/AuthorizationApplication.py +73 -0
- githubasyncio/Autolink.py +104 -0
- githubasyncio/Branch.py +689 -0
- githubasyncio/BranchProtection.py +224 -0
- githubasyncio/CVSS.py +83 -0
- githubasyncio/CWE.py +75 -0
- githubasyncio/CheckRun.py +315 -0
- githubasyncio/CheckRunAnnotation.py +134 -0
- githubasyncio/CheckRunOutput.py +108 -0
- githubasyncio/CheckSuite.py +319 -0
- githubasyncio/Clones.py +97 -0
- githubasyncio/CodeScanAlert.py +215 -0
- githubasyncio/CodeScanAlertInstance.py +134 -0
- githubasyncio/CodeScanAlertInstanceLocation.py +102 -0
- githubasyncio/CodeScanRule.py +134 -0
- githubasyncio/CodeScanTool.py +94 -0
- githubasyncio/CodeSecurityConfig.py +301 -0
- githubasyncio/CodeSecurityConfigRepository.py +70 -0
- githubasyncio/Commit.py +442 -0
- githubasyncio/CommitCombinedStatus.py +126 -0
- githubasyncio/CommitComment.py +270 -0
- githubasyncio/CommitStats.py +78 -0
- githubasyncio/CommitStatus.py +169 -0
- githubasyncio/Comparison.py +219 -0
- githubasyncio/Consts.py +197 -0
- githubasyncio/ContentFile.py +304 -0
- githubasyncio/Copilot.py +97 -0
- githubasyncio/CopilotSeat.py +132 -0
- githubasyncio/DefaultCodeSecurityConfig.py +93 -0
- githubasyncio/DependabotAlert.py +184 -0
- githubasyncio/DependabotAlertAdvisory.py +82 -0
- githubasyncio/DependabotAlertDependency.py +100 -0
- githubasyncio/DependabotAlertVulnerability.py +85 -0
- githubasyncio/Deployment.py +314 -0
- githubasyncio/DeploymentBranchPolicy.py +102 -0
- githubasyncio/DeploymentStatus.py +201 -0
- githubasyncio/DiscussionBase.py +140 -0
- githubasyncio/DiscussionCommentBase.py +140 -0
- githubasyncio/Download.py +256 -0
- githubasyncio/Enterprise.py +175 -0
- githubasyncio/EnterpriseConsumedLicenses.py +138 -0
- githubasyncio/Environment.py +354 -0
- githubasyncio/EnvironmentDeploymentBranchPolicy.py +87 -0
- githubasyncio/EnvironmentProtectionRule.py +117 -0
- githubasyncio/EnvironmentProtectionRuleReviewer.py +110 -0
- githubasyncio/Event.py +134 -0
- githubasyncio/File.py +142 -0
- githubasyncio/GeneratedReleaseNotes.py +68 -0
- githubasyncio/Gist.py +373 -0
- githubasyncio/GistComment.py +162 -0
- githubasyncio/GistFile.py +106 -0
- githubasyncio/GistHistoryState.py +245 -0
- githubasyncio/GitAuthor.py +94 -0
- githubasyncio/GitBlob.py +123 -0
- githubasyncio/GitCommit.py +208 -0
- githubasyncio/GitCommitVerification.py +103 -0
- githubasyncio/GitObject.py +84 -0
- githubasyncio/GitRef.py +122 -0
- githubasyncio/GitRelease.py +476 -0
- githubasyncio/GitReleaseAsset.py +232 -0
- githubasyncio/GitTag.py +143 -0
- githubasyncio/GitTree.py +113 -0
- githubasyncio/GitTreeElement.py +104 -0
- githubasyncio/GithubApp.py +236 -0
- githubasyncio/GithubException.py +226 -0
- githubasyncio/GithubIntegration.py +365 -0
- githubasyncio/GithubObject.py +910 -0
- githubasyncio/GithubRetry.py +253 -0
- githubasyncio/GitignoreTemplate.py +88 -0
- githubasyncio/GlobalAdvisory.py +141 -0
- githubasyncio/Hook.py +238 -0
- githubasyncio/HookDelivery.py +243 -0
- githubasyncio/HookDescription.py +85 -0
- githubasyncio/HookResponse.py +83 -0
- githubasyncio/InputFileContent.py +63 -0
- githubasyncio/InputGitAuthor.py +71 -0
- githubasyncio/InputGitTreeElement.py +79 -0
- githubasyncio/Installation.py +298 -0
- githubasyncio/InstallationAuthorization.py +138 -0
- githubasyncio/Invitation.py +171 -0
- githubasyncio/Issue.py +955 -0
- githubasyncio/IssueComment.py +309 -0
- githubasyncio/IssueDependenciesSummary.py +77 -0
- githubasyncio/IssueEvent.py +296 -0
- githubasyncio/IssuePullRequest.py +97 -0
- githubasyncio/IssueType.py +123 -0
- githubasyncio/Label.py +186 -0
- githubasyncio/License.py +169 -0
- githubasyncio/MainClass.py +1142 -0
- githubasyncio/Membership.py +154 -0
- githubasyncio/MergedUpstream.py +71 -0
- githubasyncio/Migration.py +281 -0
- githubasyncio/Milestone.py +255 -0
- githubasyncio/NamedEnterpriseUser.py +207 -0
- githubasyncio/NamedUser.py +841 -0
- githubasyncio/Notification.py +182 -0
- githubasyncio/NotificationSubject.py +96 -0
- githubasyncio/Organization.py +2462 -0
- githubasyncio/OrganizationCodeScanAlert.py +65 -0
- githubasyncio/OrganizationCustomProperty.py +215 -0
- githubasyncio/OrganizationDependabotAlert.py +75 -0
- githubasyncio/OrganizationSecret.py +191 -0
- githubasyncio/OrganizationSecretScanAlert.py +112 -0
- githubasyncio/OrganizationVariable.py +141 -0
- githubasyncio/PaginatedList.py +652 -0
- githubasyncio/Path.py +102 -0
- githubasyncio/Permissions.py +113 -0
- githubasyncio/Plan.py +108 -0
- githubasyncio/Project.py +286 -0
- githubasyncio/ProjectCard.py +257 -0
- githubasyncio/ProjectColumn.py +227 -0
- githubasyncio/PublicKey.py +138 -0
- githubasyncio/PullRequest.py +1202 -0
- githubasyncio/PullRequestComment.py +401 -0
- githubasyncio/PullRequestMergeStatus.py +89 -0
- githubasyncio/PullRequestPart.py +110 -0
- githubasyncio/PullRequestReview.py +214 -0
- githubasyncio/Rate.py +123 -0
- githubasyncio/RateLimit.py +210 -0
- githubasyncio/RateLimitOverview.py +104 -0
- githubasyncio/Reaction.py +128 -0
- githubasyncio/Referrer.py +94 -0
- githubasyncio/RepoCodeSecurityConfig.py +93 -0
- githubasyncio/Repository.py +5211 -0
- githubasyncio/RepositoryAdvisory.py +431 -0
- githubasyncio/RepositoryDiscussion.py +221 -0
- githubasyncio/RepositoryDiscussionCategory.py +150 -0
- githubasyncio/RepositoryDiscussionComment.py +159 -0
- githubasyncio/RepositoryKey.py +166 -0
- githubasyncio/RepositoryPreferences.py +82 -0
- githubasyncio/RepositoryRulesetBypassActor.py +75 -0
- githubasyncio/Requester.py +1518 -0
- githubasyncio/RequiredPullRequestReviews.py +269 -0
- githubasyncio/RequiredStatusChecks.py +153 -0
- githubasyncio/Rule.py +134 -0
- githubasyncio/Ruleset.py +292 -0
- githubasyncio/Secret.py +139 -0
- githubasyncio/SecretScanAlert.py +317 -0
- githubasyncio/SecretScanAlertInstance.py +128 -0
- githubasyncio/SecurityAndAnalysis.py +188 -0
- githubasyncio/SecurityAndAnalysisFeature.py +79 -0
- githubasyncio/SelfHostedActionsRunner.py +129 -0
- githubasyncio/SelfHostedActionsRunnerApplication.py +92 -0
- githubasyncio/SelfHostedActionsRunnerJitConfig.py +74 -0
- githubasyncio/SelfHostedActionsRunnerToken.py +118 -0
- githubasyncio/SourceImport.py +260 -0
- githubasyncio/Stargazer.py +88 -0
- githubasyncio/StatsCodeFrequency.py +81 -0
- githubasyncio/StatsCommitActivity.py +86 -0
- githubasyncio/StatsContributor.py +138 -0
- githubasyncio/StatsParticipation.py +78 -0
- githubasyncio/StatsPunchCard.py +76 -0
- githubasyncio/SubIssueSummary.py +70 -0
- githubasyncio/Tag.py +108 -0
- githubasyncio/Team.py +618 -0
- githubasyncio/TeamDiscussion.py +137 -0
- githubasyncio/TimelineEvent.py +164 -0
- githubasyncio/TimelineEventSource.py +81 -0
- githubasyncio/Topic.py +177 -0
- githubasyncio/Traffic.py +95 -0
- githubasyncio/UserKey.py +141 -0
- githubasyncio/Variable.py +155 -0
- githubasyncio/View.py +97 -0
- githubasyncio/Workflow.py +335 -0
- githubasyncio/WorkflowJob.py +253 -0
- githubasyncio/WorkflowRun.py +480 -0
- githubasyncio/WorkflowStep.py +118 -0
- githubasyncio/__init__.py +38 -0
- githubasyncio/compat/__init__.py +52 -0
- githubasyncio/requestlib/__init__.py +29 -0
- pygithub_asyncio-3.0.0b1.dist-info/METADATA +102 -0
- pygithub_asyncio-3.0.0b1.dist-info/RECORD +188 -0
- pygithub_asyncio-3.0.0b1.dist-info/WHEEL +5 -0
- pygithub_asyncio-3.0.0b1.dist-info/licenses/COPYING +674 -0
- pygithub_asyncio-3.0.0b1.dist-info/licenses/COPYING.LESSER +165 -0
- pygithub_asyncio-3.0.0b1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
5
|
+
# Copyright 2012 Zearin <zearin@gonk.net> #
|
|
6
|
+
# Copyright 2013 AKFish <akfish@gmail.com> #
|
|
7
|
+
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
8
|
+
# Copyright 2014 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
9
|
+
# Copyright 2016 Jannis Gebauer <ja.geb@me.com> #
|
|
10
|
+
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
|
|
11
|
+
# Copyright 2018 Wan Liuyang <tsfdye@gmail.com> #
|
|
12
|
+
# Copyright 2018 sfdye <tsfdye@gmail.com> #
|
|
13
|
+
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
|
|
14
|
+
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
|
|
15
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
16
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
17
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
18
|
+
# Copyright 2024 Caleb McCombs <caleb@mccombalot.net> #
|
|
19
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
20
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
21
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
22
|
+
# Copyright 2026 Enrico Minack <github@enrico.minack.dev> #
|
|
23
|
+
# #
|
|
24
|
+
# This file is part of PyGithub. #
|
|
25
|
+
# http://pygithub.readthedocs.io/ #
|
|
26
|
+
# #
|
|
27
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
28
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
29
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
30
|
+
# any later version. #
|
|
31
|
+
# #
|
|
32
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
33
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
34
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
35
|
+
# details. #
|
|
36
|
+
# #
|
|
37
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
38
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
39
|
+
# #
|
|
40
|
+
################################################################################
|
|
41
|
+
|
|
42
|
+
from __future__ import annotations
|
|
43
|
+
|
|
44
|
+
from typing import Any
|
|
45
|
+
|
|
46
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class SecurityAndAnalysisFeature(NonCompletableGithubObject):
|
|
50
|
+
"""
|
|
51
|
+
This class represents a Security and Analysis feature status.
|
|
52
|
+
|
|
53
|
+
The OpenAPI schema can be found at
|
|
54
|
+
|
|
55
|
+
- /components/schemas/security-and-analysis/properties/advanced_security
|
|
56
|
+
- /components/schemas/security-and-analysis/properties/code_security
|
|
57
|
+
- /components/schemas/security-and-analysis/properties/dependabot_security_updates
|
|
58
|
+
- /components/schemas/security-and-analysis/properties/secret_scanning
|
|
59
|
+
- /components/schemas/security-and-analysis/properties/secret_scanning_ai_detection
|
|
60
|
+
- /components/schemas/security-and-analysis/properties/secret_scanning_delegated_alert_dismissal
|
|
61
|
+
- /components/schemas/security-and-analysis/properties/secret_scanning_delegated_bypass
|
|
62
|
+
- /components/schemas/security-and-analysis/properties/secret_scanning_non_provider_patterns
|
|
63
|
+
- /components/schemas/security-and-analysis/properties/secret_scanning_push_protection
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def _initAttributes(self) -> None:
|
|
68
|
+
self._status: Attribute[str] = NotSet
|
|
69
|
+
|
|
70
|
+
def __repr__(self) -> str:
|
|
71
|
+
return self.get__repr__({"status": self._status.value})
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def status(self) -> str:
|
|
75
|
+
return self._status.value
|
|
76
|
+
|
|
77
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
78
|
+
if "status" in attributes: # pragma no branch
|
|
79
|
+
self._status = self._makeStringAttribute(attributes["status"])
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
5
|
+
# Copyright 2012 Zearin <zearin@gonk.net> #
|
|
6
|
+
# Copyright 2013 AKFish <akfish@gmail.com> #
|
|
7
|
+
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
8
|
+
# Copyright 2014 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
9
|
+
# Copyright 2016 Jannis Gebauer <ja.geb@me.com> #
|
|
10
|
+
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
|
|
11
|
+
# Copyright 2018 Wan Liuyang <tsfdye@gmail.com> #
|
|
12
|
+
# Copyright 2018 sfdye <tsfdye@gmail.com> #
|
|
13
|
+
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
|
|
14
|
+
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
|
|
15
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
16
|
+
# Copyright 2020 Victor Zeng <zacker150@users.noreply.github.com> #
|
|
17
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
18
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
19
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
20
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
21
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
22
|
+
# #
|
|
23
|
+
# This file is part of PyGithub. #
|
|
24
|
+
# http://pygithub.readthedocs.io/ #
|
|
25
|
+
# #
|
|
26
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
27
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
28
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
29
|
+
# any later version. #
|
|
30
|
+
# #
|
|
31
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
32
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
33
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
34
|
+
# details. #
|
|
35
|
+
# #
|
|
36
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
37
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
38
|
+
# #
|
|
39
|
+
################################################################################
|
|
40
|
+
|
|
41
|
+
from __future__ import annotations
|
|
42
|
+
|
|
43
|
+
from typing import Any
|
|
44
|
+
|
|
45
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class SelfHostedActionsRunner(NonCompletableGithubObject):
|
|
49
|
+
"""
|
|
50
|
+
This class represents Self-hosted GitHub Actions Runners.
|
|
51
|
+
|
|
52
|
+
The reference can be found at
|
|
53
|
+
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#self-hosted-runners
|
|
54
|
+
|
|
55
|
+
The OpenAPI schema can be found at
|
|
56
|
+
|
|
57
|
+
- /components/schemas/runner
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
def _initAttributes(self) -> None:
|
|
62
|
+
self._busy: Attribute[bool] = NotSet
|
|
63
|
+
self._ephemeral: Attribute[bool] = NotSet
|
|
64
|
+
self._id: Attribute[int] = NotSet
|
|
65
|
+
self._labels: Attribute[list[dict[str, int | str]]] = NotSet
|
|
66
|
+
self._name: Attribute[str] = NotSet
|
|
67
|
+
self._os: Attribute[str] = NotSet
|
|
68
|
+
self._runner_group_id: Attribute[int] = NotSet
|
|
69
|
+
self._status: Attribute[str] = NotSet
|
|
70
|
+
self._version: Attribute[str] = NotSet
|
|
71
|
+
|
|
72
|
+
def __repr__(self) -> str:
|
|
73
|
+
return self.get__repr__({"name": self._name.value})
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def busy(self) -> bool:
|
|
77
|
+
return self._busy.value
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def ephemeral(self) -> bool:
|
|
81
|
+
return self._ephemeral.value
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def id(self) -> int:
|
|
85
|
+
return self._id.value
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def labels(self) -> list[dict[str, int | str]]:
|
|
89
|
+
return self._labels.value
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def name(self) -> str:
|
|
93
|
+
return self._name.value
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def os(self) -> str:
|
|
97
|
+
return self._os.value
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def runner_group_id(self) -> int:
|
|
101
|
+
return self._runner_group_id.value
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def status(self) -> str:
|
|
105
|
+
return self._status.value
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def version(self) -> str:
|
|
109
|
+
return self._version.value
|
|
110
|
+
|
|
111
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
112
|
+
if "busy" in attributes:
|
|
113
|
+
self._busy = self._makeBoolAttribute(attributes["busy"])
|
|
114
|
+
if "ephemeral" in attributes: # pragma no branch
|
|
115
|
+
self._ephemeral = self._makeBoolAttribute(attributes["ephemeral"])
|
|
116
|
+
if "id" in attributes: # pragma no branch
|
|
117
|
+
self._id = self._makeIntAttribute(attributes["id"])
|
|
118
|
+
if "labels" in attributes:
|
|
119
|
+
self._labels = self._makeListOfDictsAttribute(attributes["labels"])
|
|
120
|
+
if "name" in attributes: # pragma no branch
|
|
121
|
+
self._name = self._makeStringAttribute(attributes["name"])
|
|
122
|
+
if "os" in attributes: # pragma no branch
|
|
123
|
+
self._os = self._makeStringAttribute(attributes["os"])
|
|
124
|
+
if "runner_group_id" in attributes: # pragma no branch
|
|
125
|
+
self._runner_group_id = self._makeIntAttribute(attributes["runner_group_id"])
|
|
126
|
+
if "status" in attributes: # pragma no branch
|
|
127
|
+
self._status = self._makeStringAttribute(attributes["status"])
|
|
128
|
+
if "version" in attributes: # pragma no branch
|
|
129
|
+
self._version = self._makeStringAttribute(attributes["version"])
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2025 Bill Napier <napier@pobox.com> #
|
|
5
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
6
|
+
# #
|
|
7
|
+
# This file is part of PyGithub. #
|
|
8
|
+
# http://pygithub.readthedocs.io/ #
|
|
9
|
+
# #
|
|
10
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
11
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
12
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
13
|
+
# any later version. #
|
|
14
|
+
# #
|
|
15
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
16
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
17
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
18
|
+
# details. #
|
|
19
|
+
# #
|
|
20
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
21
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
22
|
+
# #
|
|
23
|
+
################################################################################
|
|
24
|
+
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
27
|
+
from typing import Any
|
|
28
|
+
|
|
29
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class SelfHostedActionsRunnerApplication(NonCompletableGithubObject):
|
|
33
|
+
"""
|
|
34
|
+
This class represents Self-hosted GitHub Actions Runners Applications.
|
|
35
|
+
|
|
36
|
+
The reference can be found at
|
|
37
|
+
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#self-hosted-runners
|
|
38
|
+
|
|
39
|
+
The OpenAPI schema can be found at
|
|
40
|
+
|
|
41
|
+
- /components/schemas/runner-application
|
|
42
|
+
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def _initAttributes(self) -> None:
|
|
46
|
+
self._architecture: Attribute[str] = NotSet
|
|
47
|
+
self._download_url: Attribute[str] = NotSet
|
|
48
|
+
self._filename: Attribute[str] = NotSet
|
|
49
|
+
self._os: Attribute[str] = NotSet
|
|
50
|
+
self._sha256_checksum: Attribute[str] = NotSet
|
|
51
|
+
self._temp_download_token: Attribute[str] = NotSet
|
|
52
|
+
|
|
53
|
+
def __repr__(self) -> str:
|
|
54
|
+
return self.get__repr__({"os": self._os.value})
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def architecture(self) -> str:
|
|
58
|
+
return self._architecture.value
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def download_url(self) -> str:
|
|
62
|
+
return self._download_url.value
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def filename(self) -> str:
|
|
66
|
+
return self._filename.value
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def os(self) -> str:
|
|
70
|
+
return self._os.value
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def sha256_checksum(self) -> str:
|
|
74
|
+
return self._sha256_checksum.value
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def temp_download_token(self) -> str:
|
|
78
|
+
return self._temp_download_token.value
|
|
79
|
+
|
|
80
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
81
|
+
if "architecture" in attributes: # pragma no branch
|
|
82
|
+
self._architecture = self._makeStringAttribute(attributes["architecture"])
|
|
83
|
+
if "download_url" in attributes: # pragma no branch
|
|
84
|
+
self._download_url = self._makeStringAttribute(attributes["download_url"])
|
|
85
|
+
if "filename" in attributes: # pragma no branch
|
|
86
|
+
self._filename = self._makeStringAttribute(attributes["filename"])
|
|
87
|
+
if "os" in attributes:
|
|
88
|
+
self._os = self._makeStringAttribute(attributes["os"])
|
|
89
|
+
if "sha256_checksum" in attributes: # pragma no branch
|
|
90
|
+
self._sha256_checksum = self._makeStringAttribute(attributes["sha256_checksum"])
|
|
91
|
+
if "temp_download_token" in attributes: # pragma no branch
|
|
92
|
+
self._temp_download_token = self._makeStringAttribute(attributes["temp_download_token"])
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
5
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
6
|
+
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #
|
|
7
|
+
# Copyright 2025 Bill Napier <napier@pobox.com> #
|
|
8
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
9
|
+
# Copyright 2026 Enrico Minack <github@enrico.minack.dev> #
|
|
10
|
+
# #
|
|
11
|
+
# This file is part of PyGithub. #
|
|
12
|
+
# http://pygithub.readthedocs.io/ #
|
|
13
|
+
# #
|
|
14
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
15
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
16
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
17
|
+
# any later version. #
|
|
18
|
+
# #
|
|
19
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
20
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
21
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
22
|
+
# details. #
|
|
23
|
+
# #
|
|
24
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
25
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
26
|
+
# #
|
|
27
|
+
################################################################################
|
|
28
|
+
|
|
29
|
+
from __future__ import annotations
|
|
30
|
+
|
|
31
|
+
from typing import TYPE_CHECKING, Any
|
|
32
|
+
|
|
33
|
+
import githubasyncio.SelfHostedActionsRunner
|
|
34
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
35
|
+
|
|
36
|
+
if TYPE_CHECKING:
|
|
37
|
+
from githubasyncio.SelfHostedActionsRunner import SelfHostedActionsRunner
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class SelfHostedActionsRunnerJitConfig(NonCompletableGithubObject):
|
|
41
|
+
"""
|
|
42
|
+
This class represents Self-hosted GitHub Actions Runners JitConfig.
|
|
43
|
+
|
|
44
|
+
The reference can be found at
|
|
45
|
+
https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-a-repository
|
|
46
|
+
|
|
47
|
+
The OpenAPI schema can be found at
|
|
48
|
+
|
|
49
|
+
- /components/responses/actions_runner_jitconfig/content/"application/json"/schema
|
|
50
|
+
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def _initAttributes(self) -> None:
|
|
54
|
+
self._encoded_jit_config: Attribute[str] = NotSet
|
|
55
|
+
self._runner: Attribute[SelfHostedActionsRunner] = NotSet
|
|
56
|
+
|
|
57
|
+
def __repr__(self) -> str:
|
|
58
|
+
return self.get__repr__({"encoded_jit_config": self._encoded_jit_config.value})
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def encoded_jit_config(self) -> str:
|
|
62
|
+
return self._encoded_jit_config.value
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def runner(self) -> SelfHostedActionsRunner:
|
|
66
|
+
return self._runner.value
|
|
67
|
+
|
|
68
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
69
|
+
if "encoded_jit_config" in attributes: # pragma no branch
|
|
70
|
+
self._encoded_jit_config = self._makeStringAttribute(attributes["encoded_jit_config"])
|
|
71
|
+
if "runner" in attributes: # pragma no branch
|
|
72
|
+
self._runner = self._makeClassAttribute(
|
|
73
|
+
githubasyncio.SelfHostedActionsRunner.SelfHostedActionsRunner, attributes["runner"]
|
|
74
|
+
)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
5
|
+
# Copyright 2012 Zearin <zearin@gonk.net> #
|
|
6
|
+
# Copyright 2013 AKFish <akfish@gmail.com> #
|
|
7
|
+
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
8
|
+
# Copyright 2014 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
9
|
+
# Copyright 2016 Jannis Gebauer <ja.geb@me.com> #
|
|
10
|
+
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
|
|
11
|
+
# Copyright 2017 Simon <spam@esemi.ru> #
|
|
12
|
+
# Copyright 2018 Wan Liuyang <tsfdye@gmail.com> #
|
|
13
|
+
# Copyright 2018 sfdye <tsfdye@gmail.com> #
|
|
14
|
+
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
|
|
15
|
+
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
|
|
16
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
17
|
+
# Copyright 2023 Denis Blanchette <dblanchette@coveo.com> #
|
|
18
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
19
|
+
# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
20
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
21
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
22
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
23
|
+
# Copyright 2025 Bill Napier <napier@pobox.com> #
|
|
24
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
25
|
+
# #
|
|
26
|
+
# This file is part of PyGithub. #
|
|
27
|
+
# http://pygithub.readthedocs.io/ #
|
|
28
|
+
# #
|
|
29
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
30
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
31
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
32
|
+
# any later version. #
|
|
33
|
+
# #
|
|
34
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
35
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
36
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
37
|
+
# details. #
|
|
38
|
+
# #
|
|
39
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
40
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
41
|
+
# #
|
|
42
|
+
################################################################################
|
|
43
|
+
|
|
44
|
+
from __future__ import annotations
|
|
45
|
+
|
|
46
|
+
from datetime import datetime
|
|
47
|
+
from typing import TYPE_CHECKING, Any
|
|
48
|
+
|
|
49
|
+
import githubasyncio.Repository
|
|
50
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
51
|
+
|
|
52
|
+
if TYPE_CHECKING:
|
|
53
|
+
from githubasyncio.Repository import Repository
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class SelfHostedActionsRunnerToken(NonCompletableGithubObject):
|
|
57
|
+
"""
|
|
58
|
+
This class represents Self-hosted GitHub Actions Runners Token.
|
|
59
|
+
|
|
60
|
+
The reference can be found at
|
|
61
|
+
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#self-hosted-runners
|
|
62
|
+
|
|
63
|
+
The OpenAPI schema can be found at
|
|
64
|
+
|
|
65
|
+
- /components/schemas/authentication-token
|
|
66
|
+
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
def _initAttributes(self) -> None:
|
|
70
|
+
self._expires_at: Attribute[datetime] = NotSet
|
|
71
|
+
self._permissions: Attribute[dict[str, Any]] = NotSet
|
|
72
|
+
self._repositories: Attribute[list[Repository]] = NotSet
|
|
73
|
+
self._repository_selection: Attribute[str] = NotSet
|
|
74
|
+
self._single_file: Attribute[str] = NotSet
|
|
75
|
+
self._token: Attribute[str] = NotSet
|
|
76
|
+
|
|
77
|
+
def __repr__(self) -> str:
|
|
78
|
+
return self.get__repr__({"token": self._token.value})
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def expires_at(self) -> datetime:
|
|
82
|
+
return self._expires_at.value
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def permissions(self) -> dict[str, Any]:
|
|
86
|
+
return self._permissions.value
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def repositories(self) -> list[Repository]:
|
|
90
|
+
return self._repositories.value
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def repository_selection(self) -> str:
|
|
94
|
+
return self._repository_selection.value
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def single_file(self) -> str:
|
|
98
|
+
return self._single_file.value
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def token(self) -> str:
|
|
102
|
+
return self._token.value
|
|
103
|
+
|
|
104
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
105
|
+
if "expires_at" in attributes: # pragma no branch
|
|
106
|
+
self._expires_at = self._makeDatetimeAttribute(attributes["expires_at"])
|
|
107
|
+
if "permissions" in attributes: # pragma no branch
|
|
108
|
+
self._permissions = self._makeDictAttribute(attributes["permissions"])
|
|
109
|
+
if "repositories" in attributes: # pragma no branch
|
|
110
|
+
self._repositories = self._makeListOfClassesAttribute(
|
|
111
|
+
githubasyncio.Repository.Repository, attributes["repositories"]
|
|
112
|
+
)
|
|
113
|
+
if "repository_selection" in attributes: # pragma no branch
|
|
114
|
+
self._repository_selection = self._makeStringAttribute(attributes["repository_selection"])
|
|
115
|
+
if "single_file" in attributes: # pragma no branch
|
|
116
|
+
self._single_file = self._makeStringAttribute(attributes["single_file"])
|
|
117
|
+
if "token" in attributes:
|
|
118
|
+
self._token = self._makeStringAttribute(attributes["token"])
|