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,150 @@
|
|
|
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 2022 Eric Nieuwland <eric.nieuwland@gmail.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 Enrico Minack <github@enrico.minack.dev> #
|
|
24
|
+
# #
|
|
25
|
+
# This file is part of PyGithub. #
|
|
26
|
+
# http://pygithub.readthedocs.io/ #
|
|
27
|
+
# #
|
|
28
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
29
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
30
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
31
|
+
# any later version. #
|
|
32
|
+
# #
|
|
33
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
34
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
35
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
36
|
+
# details. #
|
|
37
|
+
# #
|
|
38
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
39
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
40
|
+
# #
|
|
41
|
+
################################################################################
|
|
42
|
+
|
|
43
|
+
from __future__ import annotations
|
|
44
|
+
|
|
45
|
+
from datetime import datetime
|
|
46
|
+
from typing import TYPE_CHECKING, Any
|
|
47
|
+
|
|
48
|
+
import githubasyncio.Reaction
|
|
49
|
+
import githubasyncio.Repository
|
|
50
|
+
from githubasyncio.GithubObject import (
|
|
51
|
+
Attribute,
|
|
52
|
+
GraphQlObject,
|
|
53
|
+
NonCompletableGithubObject,
|
|
54
|
+
NotSet,
|
|
55
|
+
as_rest_api_attributes,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
if TYPE_CHECKING:
|
|
59
|
+
from githubasyncio.Repository import Repository
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class RepositoryDiscussionCategory(GraphQlObject, NonCompletableGithubObject):
|
|
63
|
+
"""
|
|
64
|
+
This class represents GraphQL DiscussionCategory.
|
|
65
|
+
|
|
66
|
+
The reference can be found here
|
|
67
|
+
https://docs.github.com/en/graphql/reference/objects#discussioncategory
|
|
68
|
+
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
def _initAttributes(self) -> None:
|
|
72
|
+
self._created_at: Attribute[datetime] = NotSet
|
|
73
|
+
self._description: Attribute[str] = NotSet
|
|
74
|
+
self._emoji: Attribute[str] = NotSet
|
|
75
|
+
self._emoji_html: Attribute[str] = NotSet
|
|
76
|
+
self._id: Attribute[str] = NotSet
|
|
77
|
+
self._is_answerable: Attribute[bool] = NotSet
|
|
78
|
+
self._name: Attribute[str] = NotSet
|
|
79
|
+
self._repository: Attribute[Repository] = NotSet
|
|
80
|
+
self._slug: Attribute[str] = NotSet
|
|
81
|
+
self._updated_at: Attribute[datetime] = NotSet
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def created_at(self) -> datetime:
|
|
85
|
+
return self._created_at.value
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def description(self) -> str:
|
|
89
|
+
return self._description.value
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def emoji(self) -> str:
|
|
93
|
+
return self._emoji.value
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def emoji_html(self) -> str:
|
|
97
|
+
return self._emoji_html.value
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def id(self) -> str:
|
|
101
|
+
return self._id.value
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def is_answerable(self) -> bool:
|
|
105
|
+
return self._is_answerable.value
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def name(self) -> str:
|
|
109
|
+
return self._name.value
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def node_id(self) -> str:
|
|
113
|
+
return self.id
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def repository(self) -> Repository:
|
|
117
|
+
return self._repository.value
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def slug(self) -> str:
|
|
121
|
+
return self._slug.value
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def updated_at(self) -> datetime:
|
|
125
|
+
return self._updated_at.value
|
|
126
|
+
|
|
127
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
128
|
+
if "createdAt" in attributes: # pragma no branch
|
|
129
|
+
self._created_at = self._makeDatetimeAttribute(attributes["createdAt"])
|
|
130
|
+
if "description" in attributes: # pragma no branch
|
|
131
|
+
self._description = self._makeStringAttribute(attributes["description"])
|
|
132
|
+
if "emoji" in attributes: # pragma no branch
|
|
133
|
+
self._emoji = self._makeStringAttribute(attributes["emoji"])
|
|
134
|
+
if "emojiHTML" in attributes: # pragma no branch
|
|
135
|
+
self._emoji_html = self._makeStringAttribute(attributes["emojiHTML"])
|
|
136
|
+
if "id" in attributes: # pragma no branch
|
|
137
|
+
self._id = self._makeStringAttribute(attributes["id"])
|
|
138
|
+
if "isAnswerable" in attributes: # pragma no branch
|
|
139
|
+
self._is_answerable = self._makeBoolAttribute(attributes["isAnswerable"])
|
|
140
|
+
if "name" in attributes: # pragma no branch
|
|
141
|
+
self._name = self._makeStringAttribute(attributes["name"])
|
|
142
|
+
if "repository" in attributes: # pragma no branch
|
|
143
|
+
# repository is a REST API object
|
|
144
|
+
self._repository = self._makeClassAttribute(
|
|
145
|
+
githubasyncio.Repository.Repository, as_rest_api_attributes(attributes["repository"])
|
|
146
|
+
)
|
|
147
|
+
if "slug" in attributes: # pragma no branch
|
|
148
|
+
self._slug = self._makeStringAttribute(attributes["slug"])
|
|
149
|
+
if "updatedAt" in attributes: # pragma no branch
|
|
150
|
+
self._updated_at = self._makeDatetimeAttribute(attributes["updatedAt"])
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
5
|
+
# #
|
|
6
|
+
# This file is part of PyGithub. #
|
|
7
|
+
# http://pygithub.readthedocs.io/ #
|
|
8
|
+
# #
|
|
9
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
10
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
11
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
12
|
+
# any later version. #
|
|
13
|
+
# #
|
|
14
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
15
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
16
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
17
|
+
# details. #
|
|
18
|
+
# #
|
|
19
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
20
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
21
|
+
# #
|
|
22
|
+
################################################################################
|
|
23
|
+
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
from typing import TYPE_CHECKING, Any
|
|
27
|
+
|
|
28
|
+
import githubasyncio.NamedUser
|
|
29
|
+
import githubasyncio.Reaction
|
|
30
|
+
import githubasyncio.RepositoryDiscussion
|
|
31
|
+
from githubasyncio.DiscussionCommentBase import DiscussionCommentBase
|
|
32
|
+
from githubasyncio.GithubObject import (
|
|
33
|
+
Attribute,
|
|
34
|
+
GraphQlObject,
|
|
35
|
+
NotSet,
|
|
36
|
+
as_rest_api_attributes,
|
|
37
|
+
as_rest_api_attributes_list,
|
|
38
|
+
is_defined,
|
|
39
|
+
)
|
|
40
|
+
from githubasyncio.PaginatedList import PaginatedList
|
|
41
|
+
|
|
42
|
+
if TYPE_CHECKING:
|
|
43
|
+
from githubasyncio.NamedUser import NamedUser
|
|
44
|
+
from githubasyncio.Reaction import Reaction
|
|
45
|
+
from githubasyncio.RepositoryDiscussion import RepositoryDiscussion
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class RepositoryDiscussionComment(GraphQlObject, DiscussionCommentBase):
|
|
49
|
+
"""
|
|
50
|
+
This class represents GraphQL DiscussionComment.
|
|
51
|
+
|
|
52
|
+
The reference can be found here
|
|
53
|
+
https://docs.github.com/en/graphql/reference/objects#discussioncomment
|
|
54
|
+
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
def _initAttributes(self) -> None:
|
|
58
|
+
super()._initAttributes()
|
|
59
|
+
self._body_text: Attribute[str] = NotSet
|
|
60
|
+
self._database_id: Attribute[int] = NotSet
|
|
61
|
+
self._discussion: Attribute[RepositoryDiscussion]
|
|
62
|
+
self._editor: Attribute[NamedUser] = NotSet
|
|
63
|
+
self._id: Attribute[str] = NotSet
|
|
64
|
+
self._reactions_page = None
|
|
65
|
+
self._replies_page = None
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def body_text(self) -> str:
|
|
69
|
+
return self._body_text.value
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def database_id(self) -> int:
|
|
73
|
+
return self._database_id.value
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def discussion(self) -> RepositoryDiscussion:
|
|
77
|
+
return self._discussion.value
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def editor(self) -> NamedUser:
|
|
81
|
+
return self._editor.value
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def id(self) -> str:
|
|
85
|
+
return self._id.value
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
async def node_id(self) -> str:
|
|
89
|
+
if is_defined(self._node_id):
|
|
90
|
+
return await super().node_id
|
|
91
|
+
return self.id
|
|
92
|
+
|
|
93
|
+
def get_reactions(self) -> PaginatedList[Reaction]:
|
|
94
|
+
if self._reactions_page is None:
|
|
95
|
+
raise RuntimeError("Fetching reactions not implemented")
|
|
96
|
+
return PaginatedList(
|
|
97
|
+
githubasyncio.Reaction.Reaction, self._requester, firstData=self._reactions_page, firstHeaders={}
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
def get_replies(self) -> PaginatedList[RepositoryDiscussionComment]:
|
|
101
|
+
if self._replies_page is None:
|
|
102
|
+
raise RuntimeError("Fetching replies not implemented")
|
|
103
|
+
return PaginatedList(
|
|
104
|
+
RepositoryDiscussionComment, self._requester, firstData=self._replies_page, firstHeaders={}
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
async def edit(self, body: str, output_schema: str = "id") -> RepositoryDiscussionComment:
|
|
108
|
+
"""
|
|
109
|
+
:graphql: `mutation updateDiscussionComment <https://docs.github.com/en/graphql/reference/discussions#mutation-updatediscussioncomment>`_
|
|
110
|
+
"""
|
|
111
|
+
if not output_schema.startswith("\n"):
|
|
112
|
+
output_schema = f" {output_schema} "
|
|
113
|
+
return await self._requester.graphql_named_mutation_class(
|
|
114
|
+
"updateDiscussionComment",
|
|
115
|
+
{"commentId": await self.node_id, "body": body},
|
|
116
|
+
f"comment {{{output_schema}}}",
|
|
117
|
+
"comment",
|
|
118
|
+
RepositoryDiscussionComment,
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
async def delete(self, output_schema: str = "id") -> RepositoryDiscussionComment:
|
|
122
|
+
"""
|
|
123
|
+
:graphql: `mutation deleteDiscussionComment <https://docs.github.com/en/graphql/reference/discussions#mutation-deletediscussioncomment>`_
|
|
124
|
+
"""
|
|
125
|
+
if not output_schema.startswith("\n"):
|
|
126
|
+
output_schema = f" {output_schema} "
|
|
127
|
+
return await self._requester.graphql_named_mutation_class(
|
|
128
|
+
"deleteDiscussionComment",
|
|
129
|
+
{"id": self.id},
|
|
130
|
+
f"comment {{{output_schema}}}",
|
|
131
|
+
"comment",
|
|
132
|
+
RepositoryDiscussionComment,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
136
|
+
# super class is a REST API GithubObject, attributes are coming from GraphQL
|
|
137
|
+
super()._useAttributes(as_rest_api_attributes(attributes))
|
|
138
|
+
if "bodyText" in attributes: # pragma no branch
|
|
139
|
+
self._body_text = self._makeStringAttribute(attributes["bodyText"])
|
|
140
|
+
if "databaseId" in attributes: # pragma no branch
|
|
141
|
+
self._database_id = self._makeIntAttribute(attributes["databaseId"])
|
|
142
|
+
if "discussion" in attributes: # pragma no branch
|
|
143
|
+
# RepositoryDiscussion is a GraphQL API object
|
|
144
|
+
self._discussion = self._makeClassAttribute(
|
|
145
|
+
githubasyncio.RepositoryDiscussion.RepositoryDiscussion, attributes["discussion"]
|
|
146
|
+
)
|
|
147
|
+
if "editor" in attributes: # pragma no branch
|
|
148
|
+
# NamedUser is a REST API object
|
|
149
|
+
self._editor = self._makeClassAttribute(
|
|
150
|
+
githubasyncio.NamedUser.NamedUser, as_rest_api_attributes(attributes["editor"])
|
|
151
|
+
)
|
|
152
|
+
if "id" in attributes: # pragma no branch
|
|
153
|
+
self._id = self._makeStringAttribute(attributes["id"])
|
|
154
|
+
if "reactions" in attributes: # pragma no branch
|
|
155
|
+
# reactions are REST API objects
|
|
156
|
+
self._reactions_page = as_rest_api_attributes_list(attributes["reactions"]["nodes"]) # type: ignore
|
|
157
|
+
if "replies" in attributes: # pragma no branch
|
|
158
|
+
# replies are GraphQL API objects
|
|
159
|
+
self._replies_page = attributes["replies"]["nodes"]
|
|
@@ -0,0 +1,166 @@
|
|
|
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 Srijan Choudhary <srijan4@gmail.com> #
|
|
8
|
+
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
9
|
+
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
|
10
|
+
# Copyright 2014 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
11
|
+
# Copyright 2016 Jannis Gebauer <ja.geb@me.com> #
|
|
12
|
+
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
|
|
13
|
+
# Copyright 2017 Jimmy Zelinskie <jimmy.zelinskie+git@gmail.com> #
|
|
14
|
+
# Copyright 2017 Simon <spam@esemi.ru> #
|
|
15
|
+
# Copyright 2018 Laurent Raufaste <analogue@glop.org> #
|
|
16
|
+
# Copyright 2018 Wan Liuyang <tsfdye@gmail.com> #
|
|
17
|
+
# Copyright 2018 sfdye <tsfdye@gmail.com> #
|
|
18
|
+
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
|
|
19
|
+
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
|
|
20
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
21
|
+
# Copyright 2021 Floyd Hightower <floyd.hightower27@gmail.com> #
|
|
22
|
+
# Copyright 2021 Mark Walker <mark.walker@realbuzz.com> #
|
|
23
|
+
# Copyright 2021 Steve Kowalik <steven@wedontsleep.org> #
|
|
24
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
25
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
26
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
27
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
28
|
+
# Copyright 2024 Ramiro Morales <ramiro@users.noreply.github.com> #
|
|
29
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
30
|
+
# #
|
|
31
|
+
# This file is part of PyGithub. #
|
|
32
|
+
# http://pygithub.readthedocs.io/ #
|
|
33
|
+
# #
|
|
34
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
35
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
36
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
37
|
+
# any later version. #
|
|
38
|
+
# #
|
|
39
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
40
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
41
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
42
|
+
# details. #
|
|
43
|
+
# #
|
|
44
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
45
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
46
|
+
# #
|
|
47
|
+
################################################################################
|
|
48
|
+
|
|
49
|
+
from __future__ import annotations
|
|
50
|
+
|
|
51
|
+
from datetime import datetime
|
|
52
|
+
from typing import Any
|
|
53
|
+
|
|
54
|
+
from githubasyncio.GithubObject import Attribute, CompletableGithubObject, NotSet
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class RepositoryKey(CompletableGithubObject):
|
|
58
|
+
"""
|
|
59
|
+
This class represents RepositoryKeys.
|
|
60
|
+
|
|
61
|
+
The reference can be found here
|
|
62
|
+
https://docs.github.com/en/rest/reference/repos#deploy-keys
|
|
63
|
+
|
|
64
|
+
The OpenAPI schema can be found at
|
|
65
|
+
|
|
66
|
+
- /components/schemas/deploy-key
|
|
67
|
+
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
def _initAttributes(self) -> None:
|
|
71
|
+
self._added_by: Attribute[str] = NotSet
|
|
72
|
+
self._created_at: Attribute[datetime] = NotSet
|
|
73
|
+
self._enabled: Attribute[bool] = NotSet
|
|
74
|
+
self._id: Attribute[int] = NotSet
|
|
75
|
+
self._key: Attribute[str] = NotSet
|
|
76
|
+
self._last_used: Attribute[datetime] = NotSet
|
|
77
|
+
self._read_only: Attribute[bool] = NotSet
|
|
78
|
+
self._title: Attribute[str] = NotSet
|
|
79
|
+
self._url: Attribute[str] = NotSet
|
|
80
|
+
self._verified: Attribute[bool] = NotSet
|
|
81
|
+
|
|
82
|
+
def __repr__(self) -> str:
|
|
83
|
+
return self.get__repr__({"id": self._id.value, "title": self._title.value})
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
async def added_by(self) -> str:
|
|
87
|
+
await self._completeIfNotSet(self._added_by)
|
|
88
|
+
return self._added_by.value
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
async def created_at(self) -> datetime:
|
|
92
|
+
await self._completeIfNotSet(self._created_at)
|
|
93
|
+
return self._created_at.value
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
async def enabled(self) -> bool:
|
|
97
|
+
await self._completeIfNotSet(self._enabled)
|
|
98
|
+
return self._enabled.value
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
async def id(self) -> int:
|
|
102
|
+
await self._completeIfNotSet(self._id)
|
|
103
|
+
return self._id.value
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
async def key(self) -> str:
|
|
107
|
+
await self._completeIfNotSet(self._key)
|
|
108
|
+
return self._key.value
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
async def last_used(self) -> datetime:
|
|
112
|
+
await self._completeIfNotSet(self._last_used)
|
|
113
|
+
return self._last_used.value
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
async def read_only(self) -> bool:
|
|
117
|
+
await self._completeIfNotSet(self._read_only)
|
|
118
|
+
return self._read_only.value
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
async def title(self) -> str:
|
|
122
|
+
await self._completeIfNotSet(self._title)
|
|
123
|
+
return self._title.value
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
async def url(self) -> str:
|
|
127
|
+
await self._completeIfNotSet(self._url)
|
|
128
|
+
return self._url.value
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
async def verified(self) -> bool:
|
|
132
|
+
await self._completeIfNotSet(self._verified)
|
|
133
|
+
return self._verified.value
|
|
134
|
+
|
|
135
|
+
async def delete(self) -> None:
|
|
136
|
+
"""
|
|
137
|
+
:calls: `DELETE /repos/{owner}/{repo}/keys/{key_id} <https://docs.github.com/en/rest/reference/repos#deploy-keys>`_
|
|
138
|
+
"""
|
|
139
|
+
headers, data = await self._requester.requestJsonAndCheck("DELETE", await self.url)
|
|
140
|
+
|
|
141
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
142
|
+
if "added_by" in attributes: # pragma no branch
|
|
143
|
+
self._added_by = self._makeStringAttribute(attributes["added_by"])
|
|
144
|
+
if "created_at" in attributes: # pragma no branch
|
|
145
|
+
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
|
|
146
|
+
if "enabled" in attributes: # pragma no branch
|
|
147
|
+
self._enabled = self._makeBoolAttribute(attributes["enabled"])
|
|
148
|
+
if "id" in attributes: # pragma no branch
|
|
149
|
+
self._id = self._makeIntAttribute(attributes["id"])
|
|
150
|
+
elif "url" in attributes and attributes["url"]:
|
|
151
|
+
id = attributes["url"].split("/")[-1]
|
|
152
|
+
if id.isnumeric():
|
|
153
|
+
self._id = self._makeIntAttribute(int(id))
|
|
154
|
+
if "key" in attributes: # pragma no branch
|
|
155
|
+
self._key = self._makeStringAttribute(attributes["key"])
|
|
156
|
+
if "last_used" in attributes: # pragma no branch
|
|
157
|
+
assert attributes["last_used"] is None or isinstance(attributes["last_used"], str), attributes["last_used"]
|
|
158
|
+
self._last_used = self._makeDatetimeAttribute(attributes["last_used"])
|
|
159
|
+
if "read_only" in attributes: # pragma no branch
|
|
160
|
+
self._read_only = self._makeBoolAttribute(attributes["read_only"])
|
|
161
|
+
if "title" in attributes: # pragma no branch
|
|
162
|
+
self._title = self._makeStringAttribute(attributes["title"])
|
|
163
|
+
if "url" in attributes: # pragma no branch
|
|
164
|
+
self._url = self._makeStringAttribute(attributes["url"])
|
|
165
|
+
if "verified" in attributes: # pragma no branch
|
|
166
|
+
self._verified = self._makeBoolAttribute(attributes["verified"])
|
|
@@ -0,0 +1,82 @@
|
|
|
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 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
7
|
+
# Copyright 2014 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
8
|
+
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
|
|
9
|
+
# Copyright 2018 Wan Liuyang <tsfdye@gmail.com> #
|
|
10
|
+
# Copyright 2018 sfdye <tsfdye@gmail.com> #
|
|
11
|
+
# Copyright 2019 Adam Baratz <adam.baratz@gmail.com> #
|
|
12
|
+
# Copyright 2019 Nick Campbell <nicholas.j.campbell@gmail.com> #
|
|
13
|
+
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
|
|
14
|
+
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
|
|
15
|
+
# Copyright 2020 Dhruv Manilawala <dhruvmanila@gmail.com> #
|
|
16
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
17
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
18
|
+
# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
19
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
20
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
21
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
22
|
+
# Copyright 2025 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 TYPE_CHECKING, Any
|
|
45
|
+
|
|
46
|
+
import githubasyncio.Repository
|
|
47
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
48
|
+
|
|
49
|
+
if TYPE_CHECKING:
|
|
50
|
+
from githubasyncio.Repository import Repository
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class RepositoryPreferences(NonCompletableGithubObject):
|
|
54
|
+
"""
|
|
55
|
+
This class represents repository preferences.
|
|
56
|
+
|
|
57
|
+
The reference can be found here
|
|
58
|
+
https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#update-repository-preferences-for-check-suites
|
|
59
|
+
|
|
60
|
+
The OpenAPI schema can be found at
|
|
61
|
+
|
|
62
|
+
- /components/schemas/check-suite-preference
|
|
63
|
+
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
def _initAttributes(self) -> None:
|
|
67
|
+
self._preferences: Attribute[dict[str, list[dict[str, bool | int]]]] = NotSet
|
|
68
|
+
self._repository: Attribute[Repository] = NotSet
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def preferences(self) -> dict[str, list[dict[str, bool | int]]]:
|
|
72
|
+
return self._preferences.value
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def repository(self) -> Repository:
|
|
76
|
+
return self._repository.value
|
|
77
|
+
|
|
78
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
79
|
+
if "preferences" in attributes: # pragma no branch
|
|
80
|
+
self._preferences = self._makeDictAttribute(attributes["preferences"])
|
|
81
|
+
if "repository" in attributes: # pragma no branch
|
|
82
|
+
self._repository = self._makeClassAttribute(githubasyncio.Repository.Repository, attributes["repository"])
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# #
|
|
5
|
+
# This file is part of PyGithub. #
|
|
6
|
+
# http://pygithub.readthedocs.io/ #
|
|
7
|
+
# #
|
|
8
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
9
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
10
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
11
|
+
# any later version. #
|
|
12
|
+
# #
|
|
13
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
14
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
15
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
16
|
+
# details. #
|
|
17
|
+
# #
|
|
18
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
19
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
20
|
+
# #
|
|
21
|
+
################################################################################
|
|
22
|
+
|
|
23
|
+
from __future__ import annotations
|
|
24
|
+
|
|
25
|
+
from typing import Any
|
|
26
|
+
|
|
27
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class RepositoryRulesetBypassActor(NonCompletableGithubObject):
|
|
31
|
+
"""
|
|
32
|
+
This class represents RepositoryRulesetBypassActor.
|
|
33
|
+
|
|
34
|
+
The reference can be found here
|
|
35
|
+
https://docs.github.com/en/rest/repos/rules
|
|
36
|
+
|
|
37
|
+
The OpenAPI schema can be found at
|
|
38
|
+
|
|
39
|
+
- /components/schemas/repository-ruleset-bypass-actor
|
|
40
|
+
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def _initAttributes(self) -> None:
|
|
44
|
+
self._actor_id: Attribute[int] = NotSet
|
|
45
|
+
self._actor_type: Attribute[str] = NotSet
|
|
46
|
+
self._bypass_mode: Attribute[str] = NotSet
|
|
47
|
+
|
|
48
|
+
def __repr__(self) -> str:
|
|
49
|
+
return self.get__repr__(
|
|
50
|
+
{
|
|
51
|
+
"actor_id": self._actor_id.value,
|
|
52
|
+
"actor_type": self._actor_type.value,
|
|
53
|
+
"bypass_mode": self._bypass_mode.value,
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def actor_id(self) -> int:
|
|
59
|
+
return self._actor_id.value
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def actor_type(self) -> str:
|
|
63
|
+
return self._actor_type.value
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def bypass_mode(self) -> str:
|
|
67
|
+
return self._bypass_mode.value
|
|
68
|
+
|
|
69
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
70
|
+
if "actor_id" in attributes: # pragma no branch
|
|
71
|
+
self._actor_id = self._makeIntAttribute(attributes["actor_id"])
|
|
72
|
+
if "actor_type" in attributes: # pragma no branch
|
|
73
|
+
self._actor_type = self._makeStringAttribute(attributes["actor_type"])
|
|
74
|
+
if "bypass_mode" in attributes: # pragma no branch
|
|
75
|
+
self._bypass_mode = self._makeStringAttribute(attributes["bypass_mode"])
|