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,301 @@
|
|
|
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 datetime import datetime
|
|
28
|
+
from typing import Any
|
|
29
|
+
|
|
30
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class CodeSecurityConfig(NonCompletableGithubObject):
|
|
34
|
+
"""
|
|
35
|
+
This class represents Configurations for Code Security.
|
|
36
|
+
|
|
37
|
+
The reference can be found here
|
|
38
|
+
https://docs.github.com/en/rest/code-security/configurations.
|
|
39
|
+
|
|
40
|
+
The OpenAPI schema can be found at
|
|
41
|
+
|
|
42
|
+
- /components/schemas/code-security-configuration
|
|
43
|
+
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def _initAttributes(self) -> None:
|
|
47
|
+
self._advanced_security: Attribute[str] = NotSet
|
|
48
|
+
self._code_scanning_default_setup: Attribute[str] = NotSet
|
|
49
|
+
self._code_scanning_delegated_alert_dismissal: Attribute[str] = NotSet
|
|
50
|
+
self._created_at: Attribute[datetime] = NotSet
|
|
51
|
+
self._dependabot_alerts: Attribute[str] = NotSet
|
|
52
|
+
self._dependabot_delegated_alert_dismissal: Attribute[str] = NotSet
|
|
53
|
+
self._dependabot_reachability: Attribute[str] = NotSet
|
|
54
|
+
self._dependabot_security_updates: Attribute[str] = NotSet
|
|
55
|
+
self._dependency_graph: Attribute[str] = NotSet
|
|
56
|
+
self._dependency_graph_autosubmit_action: Attribute[str] = NotSet
|
|
57
|
+
self._dependency_graph_autosubmit_action_options: Attribute[dict[str, Any]] = NotSet
|
|
58
|
+
self._description: Attribute[str] = NotSet
|
|
59
|
+
self._enforcement: Attribute[str] = NotSet
|
|
60
|
+
self._html_url: Attribute[str] = NotSet
|
|
61
|
+
self._id: Attribute[int] = NotSet
|
|
62
|
+
self._name: Attribute[str] = NotSet
|
|
63
|
+
self._private_vulnerability_reporting: Attribute[str] = NotSet
|
|
64
|
+
self._secret_scanning: Attribute[str] = NotSet
|
|
65
|
+
self._secret_scanning_delegated_alert_dismissal: Attribute[str] = NotSet
|
|
66
|
+
self._secret_scanning_delegated_bypass: Attribute[str] = NotSet
|
|
67
|
+
self._secret_scanning_delegated_bypass_options: Attribute[dict[str, Any]] = NotSet
|
|
68
|
+
self._secret_scanning_extended_metadata: Attribute[str] = NotSet
|
|
69
|
+
self._secret_scanning_generic_secrets: Attribute[str] = NotSet
|
|
70
|
+
self._secret_scanning_generic_secrets_push_protection: Attribute[str] = NotSet
|
|
71
|
+
self._secret_scanning_non_provider_patterns: Attribute[str] = NotSet
|
|
72
|
+
self._secret_scanning_push_protection: Attribute[str] = NotSet
|
|
73
|
+
self._secret_scanning_validity_checks: Attribute[str] = NotSet
|
|
74
|
+
self._target_type: Attribute[str] = NotSet
|
|
75
|
+
self._updated_at: Attribute[datetime] = NotSet
|
|
76
|
+
self._url: Attribute[str] = NotSet
|
|
77
|
+
|
|
78
|
+
def __repr__(self) -> str:
|
|
79
|
+
return self.get__repr__(
|
|
80
|
+
{
|
|
81
|
+
"id": self._id.value,
|
|
82
|
+
"name": self._name.value,
|
|
83
|
+
"description": self._description.value,
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def advanced_security(self) -> str:
|
|
89
|
+
return self._advanced_security.value
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def code_scanning_default_setup(self) -> str:
|
|
93
|
+
return self._code_scanning_default_setup.value
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def code_scanning_delegated_alert_dismissal(self) -> str:
|
|
97
|
+
return self._code_scanning_delegated_alert_dismissal.value
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def created_at(self) -> datetime:
|
|
101
|
+
return self._created_at.value
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def dependabot_alerts(self) -> str:
|
|
105
|
+
return self._dependabot_alerts.value
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def dependabot_delegated_alert_dismissal(self) -> str:
|
|
109
|
+
return self._dependabot_delegated_alert_dismissal.value
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def dependabot_reachability(self) -> str:
|
|
113
|
+
return self._dependabot_reachability.value
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def dependabot_security_updates(self) -> str:
|
|
117
|
+
return self._dependabot_security_updates.value
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def dependency_graph(self) -> str:
|
|
121
|
+
return self._dependency_graph.value
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def dependency_graph_autosubmit_action(self) -> str:
|
|
125
|
+
return self._dependency_graph_autosubmit_action.value
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def dependency_graph_autosubmit_action_options(self) -> dict[str, Any]:
|
|
129
|
+
return self._dependency_graph_autosubmit_action_options.value
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def description(self) -> str:
|
|
133
|
+
return self._description.value
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def enforcement(self) -> str:
|
|
137
|
+
return self._enforcement.value
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def html_url(self) -> str:
|
|
141
|
+
return self._html_url.value
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def id(self) -> int:
|
|
145
|
+
return self._id.value
|
|
146
|
+
|
|
147
|
+
@property
|
|
148
|
+
def name(self) -> str:
|
|
149
|
+
return self._name.value
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def private_vulnerability_reporting(self) -> str:
|
|
153
|
+
return self._private_vulnerability_reporting.value
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def secret_scanning(self) -> str:
|
|
157
|
+
return self._secret_scanning.value
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def secret_scanning_delegated_alert_dismissal(self) -> str:
|
|
161
|
+
return self._secret_scanning_delegated_alert_dismissal.value
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
def secret_scanning_delegated_bypass(self) -> str:
|
|
165
|
+
return self._secret_scanning_delegated_bypass.value
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def secret_scanning_delegated_bypass_options(self) -> dict[str, Any]:
|
|
169
|
+
return self._secret_scanning_delegated_bypass_options.value
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def secret_scanning_extended_metadata(self) -> str:
|
|
173
|
+
return self._secret_scanning_extended_metadata.value
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def secret_scanning_generic_secrets(self) -> str:
|
|
177
|
+
return self._secret_scanning_generic_secrets.value
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def secret_scanning_generic_secrets_push_protection(self) -> str:
|
|
181
|
+
return self._secret_scanning_generic_secrets_push_protection.value
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def secret_scanning_non_provider_patterns(self) -> str:
|
|
185
|
+
return self._secret_scanning_non_provider_patterns.value
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def secret_scanning_push_protection(self) -> str:
|
|
189
|
+
return self._secret_scanning_push_protection.value
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def secret_scanning_validity_checks(self) -> str:
|
|
193
|
+
return self._secret_scanning_validity_checks.value
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
def target_type(self) -> str:
|
|
197
|
+
return self._target_type.value
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
def updated_at(self) -> datetime:
|
|
201
|
+
return self._updated_at.value
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def url(self) -> str:
|
|
205
|
+
return self._url.value
|
|
206
|
+
|
|
207
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
208
|
+
if "advanced_security" in attributes: # pragma no branch
|
|
209
|
+
self._advanced_security = self._makeStringAttribute(attributes["advanced_security"])
|
|
210
|
+
if "code_scanning_default_setup" in attributes: # pragma no branch
|
|
211
|
+
self._code_scanning_default_setup = self._makeStringAttribute(attributes["code_scanning_default_setup"])
|
|
212
|
+
if "code_scanning_delegated_alert_dismissal" in attributes: # pragma no branch
|
|
213
|
+
self._code_scanning_delegated_alert_dismissal = self._makeStringAttribute(
|
|
214
|
+
attributes["code_scanning_delegated_alert_dismissal"]
|
|
215
|
+
)
|
|
216
|
+
if "created_at" in attributes: # pragma no branch
|
|
217
|
+
assert attributes["created_at"] is None or isinstance(attributes["created_at"], str), attributes[
|
|
218
|
+
"created_at"
|
|
219
|
+
]
|
|
220
|
+
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
|
|
221
|
+
if "dependabot_alerts" in attributes: # pragma no branch
|
|
222
|
+
self._dependabot_alerts = self._makeStringAttribute(attributes["dependabot_alerts"])
|
|
223
|
+
if "dependabot_delegated_alert_dismissal" in attributes: # pragma no branch
|
|
224
|
+
self._dependabot_delegated_alert_dismissal = self._makeStringAttribute(
|
|
225
|
+
attributes["dependabot_delegated_alert_dismissal"]
|
|
226
|
+
)
|
|
227
|
+
if "dependabot_reachability" in attributes: # pragma no branch
|
|
228
|
+
self._dependabot_reachability = self._makeStringAttribute(attributes["dependabot_reachability"])
|
|
229
|
+
if "dependabot_security_updates" in attributes: # pragma no branch
|
|
230
|
+
self._dependabot_security_updates = self._makeStringAttribute(attributes["dependabot_security_updates"])
|
|
231
|
+
if "dependency_graph" in attributes: # pragma no branch
|
|
232
|
+
self._dependency_graph = self._makeStringAttribute(attributes["dependency_graph"])
|
|
233
|
+
if "dependency_graph_autosubmit_action" in attributes: # pragma no branch
|
|
234
|
+
self._dependency_graph_autosubmit_action = self._makeStringAttribute(
|
|
235
|
+
attributes["dependency_graph_autosubmit_action"]
|
|
236
|
+
)
|
|
237
|
+
if "dependency_graph_autosubmit_action_options" in attributes: # pragma no branch
|
|
238
|
+
self._dependency_graph_autosubmit_action_options = self._makeDictAttribute(
|
|
239
|
+
attributes["dependency_graph_autosubmit_action_options"]
|
|
240
|
+
)
|
|
241
|
+
if "description" in attributes: # pragma no branch
|
|
242
|
+
self._description = self._makeStringAttribute(attributes["description"])
|
|
243
|
+
if "enforcement" in attributes: # pragma no branch
|
|
244
|
+
self._enforcement = self._makeStringAttribute(attributes["enforcement"])
|
|
245
|
+
if "html_url" in attributes: # pragma no branch
|
|
246
|
+
self._html_url = self._makeStringAttribute(attributes["html_url"])
|
|
247
|
+
if "id" in attributes: # pragma no branch
|
|
248
|
+
self._id = self._makeIntAttribute(attributes["id"])
|
|
249
|
+
if "name" in attributes: # pragma no branch
|
|
250
|
+
self._name = self._makeStringAttribute(attributes["name"])
|
|
251
|
+
if "private_vulnerability_reporting" in attributes: # pragma no branch
|
|
252
|
+
self._private_vulnerability_reporting = self._makeStringAttribute(
|
|
253
|
+
attributes["private_vulnerability_reporting"]
|
|
254
|
+
)
|
|
255
|
+
if "secret_scanning" in attributes: # pragma no branch
|
|
256
|
+
self._secret_scanning = self._makeStringAttribute(attributes["secret_scanning"])
|
|
257
|
+
if "secret_scanning_delegated_alert_dismissal" in attributes: # pragma no branch
|
|
258
|
+
self._secret_scanning_delegated_alert_dismissal = self._makeStringAttribute(
|
|
259
|
+
attributes["secret_scanning_delegated_alert_dismissal"]
|
|
260
|
+
)
|
|
261
|
+
if "secret_scanning_delegated_bypass" in attributes: # pragma no branch
|
|
262
|
+
self._secret_scanning_delegated_bypass = self._makeStringAttribute(
|
|
263
|
+
attributes["secret_scanning_delegated_bypass"]
|
|
264
|
+
)
|
|
265
|
+
if "secret_scanning_delegated_bypass_options" in attributes: # pragma no branch
|
|
266
|
+
self._secret_scanning_delegated_bypass_options = self._makeDictAttribute(
|
|
267
|
+
attributes["secret_scanning_delegated_bypass_options"]
|
|
268
|
+
)
|
|
269
|
+
if "secret_scanning_extended_metadata" in attributes: # pragma no branch
|
|
270
|
+
self._secret_scanning_extended_metadata = self._makeStringAttribute(
|
|
271
|
+
attributes["secret_scanning_extended_metadata"]
|
|
272
|
+
)
|
|
273
|
+
if "secret_scanning_generic_secrets" in attributes: # pragma no branch
|
|
274
|
+
self._secret_scanning_generic_secrets = self._makeStringAttribute(
|
|
275
|
+
attributes["secret_scanning_generic_secrets"]
|
|
276
|
+
)
|
|
277
|
+
if "secret_scanning_generic_secrets_push_protection" in attributes: # pragma no branch
|
|
278
|
+
self._secret_scanning_generic_secrets_push_protection = self._makeStringAttribute(
|
|
279
|
+
attributes["secret_scanning_generic_secrets_push_protection"]
|
|
280
|
+
)
|
|
281
|
+
if "secret_scanning_non_provider_patterns" in attributes: # pragma no branch
|
|
282
|
+
self._secret_scanning_non_provider_patterns = self._makeStringAttribute(
|
|
283
|
+
attributes["secret_scanning_non_provider_patterns"]
|
|
284
|
+
)
|
|
285
|
+
if "secret_scanning_push_protection" in attributes: # pragma no branch
|
|
286
|
+
self._secret_scanning_push_protection = self._makeStringAttribute(
|
|
287
|
+
attributes["secret_scanning_push_protection"]
|
|
288
|
+
)
|
|
289
|
+
if "secret_scanning_validity_checks" in attributes: # pragma no branch
|
|
290
|
+
self._secret_scanning_validity_checks = self._makeStringAttribute(
|
|
291
|
+
attributes["secret_scanning_validity_checks"]
|
|
292
|
+
)
|
|
293
|
+
if "target_type" in attributes: # pragma no branch
|
|
294
|
+
self._target_type = self._makeStringAttribute(attributes["target_type"])
|
|
295
|
+
if "updated_at" in attributes: # pragma no branch
|
|
296
|
+
assert attributes["updated_at"] is None or isinstance(attributes["updated_at"], str), attributes[
|
|
297
|
+
"updated_at"
|
|
298
|
+
]
|
|
299
|
+
self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
|
|
300
|
+
if "url" in attributes: # pragma no branch
|
|
301
|
+
self._url = self._makeStringAttribute(attributes["url"])
|
|
@@ -0,0 +1,70 @@
|
|
|
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 Enrico Minack <github@enrico.minack.dev> #
|
|
8
|
+
# #
|
|
9
|
+
# This file is part of PyGithub. #
|
|
10
|
+
# http://pygithub.readthedocs.io/ #
|
|
11
|
+
# #
|
|
12
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
13
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
14
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
15
|
+
# any later version. #
|
|
16
|
+
# #
|
|
17
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
18
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
19
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
20
|
+
# details. #
|
|
21
|
+
# #
|
|
22
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
23
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
24
|
+
# #
|
|
25
|
+
################################################################################
|
|
26
|
+
|
|
27
|
+
from __future__ import annotations
|
|
28
|
+
|
|
29
|
+
from typing import TYPE_CHECKING, Any
|
|
30
|
+
|
|
31
|
+
import githubasyncio.Repository
|
|
32
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
33
|
+
|
|
34
|
+
if TYPE_CHECKING:
|
|
35
|
+
from githubasyncio.Repository import Repository
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class CodeSecurityConfigRepository(NonCompletableGithubObject):
|
|
39
|
+
"""
|
|
40
|
+
This class represents CodeSecurityConfigRepository.
|
|
41
|
+
|
|
42
|
+
The reference can be found here
|
|
43
|
+
https://docs.github.com/en/rest/code-security/configurations
|
|
44
|
+
|
|
45
|
+
The OpenAPI schema can be found at
|
|
46
|
+
|
|
47
|
+
- /components/schemas/code-security-configuration-repositories
|
|
48
|
+
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def _initAttributes(self) -> None:
|
|
52
|
+
self._repository: Attribute[Repository] = NotSet
|
|
53
|
+
self._status: Attribute[str] = NotSet
|
|
54
|
+
|
|
55
|
+
def __repr__(self) -> str:
|
|
56
|
+
return self._repository.value.__repr__()
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def repository(self) -> Repository:
|
|
60
|
+
return self._repository.value
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def status(self) -> str:
|
|
64
|
+
return self._status.value
|
|
65
|
+
|
|
66
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
67
|
+
if "repository" in attributes: # pragma no branch
|
|
68
|
+
self._repository = self._makeClassAttribute(githubasyncio.Repository.Repository, attributes["repository"])
|
|
69
|
+
if "status" in attributes: # pragma no branch
|
|
70
|
+
self._status = self._makeStringAttribute(attributes["status"])
|