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
githubasyncio/Hook.py
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
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 Wan Liuyang <tsfdye@gmail.com> #
|
|
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 2021 Mark Walker <mark.walker@realbuzz.com> #
|
|
18
|
+
# Copyright 2021 Steve Kowalik <steven@wedontsleep.org> #
|
|
19
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
20
|
+
# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
21
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
22
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
23
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
24
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
25
|
+
# Copyright 2026 Enrico Minack <github@enrico.minack.dev> #
|
|
26
|
+
# #
|
|
27
|
+
# This file is part of PyGithub. #
|
|
28
|
+
# http://pygithub.readthedocs.io/ #
|
|
29
|
+
# #
|
|
30
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
31
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
32
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
33
|
+
# any later version. #
|
|
34
|
+
# #
|
|
35
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
36
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
37
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
38
|
+
# details. #
|
|
39
|
+
# #
|
|
40
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
41
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
42
|
+
# #
|
|
43
|
+
################################################################################
|
|
44
|
+
|
|
45
|
+
from __future__ import annotations
|
|
46
|
+
|
|
47
|
+
from datetime import datetime
|
|
48
|
+
from typing import TYPE_CHECKING, Any
|
|
49
|
+
|
|
50
|
+
import githubasyncio.GithubObject
|
|
51
|
+
import githubasyncio.HookResponse
|
|
52
|
+
from githubasyncio.GithubObject import Attribute, CompletableGithubObject, NotSet, Opt, is_optional, is_optional_list
|
|
53
|
+
|
|
54
|
+
if TYPE_CHECKING:
|
|
55
|
+
from githubasyncio.HookResponse import HookResponse
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class Hook(CompletableGithubObject):
|
|
59
|
+
"""
|
|
60
|
+
This class represents Hooks.
|
|
61
|
+
|
|
62
|
+
The reference can be found here
|
|
63
|
+
https://docs.github.com/en/rest/reference/repos#webhooks
|
|
64
|
+
|
|
65
|
+
The OpenAPI schema can be found at
|
|
66
|
+
|
|
67
|
+
- /components/schemas/hook
|
|
68
|
+
- /components/schemas/org-hook
|
|
69
|
+
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
def _initAttributes(self) -> None:
|
|
73
|
+
self._active: Attribute[bool] = NotSet
|
|
74
|
+
self._config: Attribute[dict] = NotSet
|
|
75
|
+
self._created_at: Attribute[datetime] = NotSet
|
|
76
|
+
self._deliveries_url: Attribute[str] = NotSet
|
|
77
|
+
self._events: Attribute[list[str]] = NotSet
|
|
78
|
+
self._id: Attribute[int] = NotSet
|
|
79
|
+
self._last_response: Attribute[HookResponse] = NotSet
|
|
80
|
+
self._name: Attribute[str] = NotSet
|
|
81
|
+
self._ping_url: Attribute[str] = NotSet
|
|
82
|
+
self._test_url: Attribute[str] = NotSet
|
|
83
|
+
self._type: Attribute[str] = NotSet
|
|
84
|
+
self._updated_at: Attribute[datetime] = NotSet
|
|
85
|
+
self._url: Attribute[str] = NotSet
|
|
86
|
+
|
|
87
|
+
def __repr__(self) -> str:
|
|
88
|
+
return self.get__repr__({"id": self._id.value, "url": self._url.value})
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
async def active(self) -> bool:
|
|
92
|
+
await self._completeIfNotSet(self._active)
|
|
93
|
+
return self._active.value
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
async def config(self) -> dict:
|
|
97
|
+
await self._completeIfNotSet(self._config)
|
|
98
|
+
return self._config.value
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
async def created_at(self) -> datetime:
|
|
102
|
+
await self._completeIfNotSet(self._created_at)
|
|
103
|
+
return self._created_at.value
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
async def deliveries_url(self) -> str:
|
|
107
|
+
await self._completeIfNotSet(self._deliveries_url)
|
|
108
|
+
return self._deliveries_url.value
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
async def events(self) -> list[str]:
|
|
112
|
+
await self._completeIfNotSet(self._events)
|
|
113
|
+
return self._events.value
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
async def id(self) -> int:
|
|
117
|
+
await self._completeIfNotSet(self._id)
|
|
118
|
+
return self._id.value
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
async def last_response(self) -> HookResponse:
|
|
122
|
+
await self._completeIfNotSet(self._last_response)
|
|
123
|
+
return self._last_response.value
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
async def name(self) -> str:
|
|
127
|
+
await self._completeIfNotSet(self._name)
|
|
128
|
+
return self._name.value
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
async def ping_url(self) -> str:
|
|
132
|
+
await self._completeIfNotSet(self._ping_url)
|
|
133
|
+
return self._ping_url.value
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
async def test_url(self) -> str:
|
|
137
|
+
await self._completeIfNotSet(self._test_url)
|
|
138
|
+
return self._test_url.value
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
async def type(self) -> str:
|
|
142
|
+
await self._completeIfNotSet(self._type)
|
|
143
|
+
return self._type.value
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
async def updated_at(self) -> datetime:
|
|
147
|
+
await self._completeIfNotSet(self._updated_at)
|
|
148
|
+
return self._updated_at.value
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
async def url(self) -> str:
|
|
152
|
+
await self._completeIfNotSet(self._url)
|
|
153
|
+
return self._url.value
|
|
154
|
+
|
|
155
|
+
async def delete(self) -> None:
|
|
156
|
+
"""
|
|
157
|
+
:calls: `DELETE /repos/{owner}/{repo}/hooks/{hook_id} <https://docs.github.com/en/rest/reference/repos#webhooks>`_
|
|
158
|
+
"""
|
|
159
|
+
headers, data = await self._requester.requestJsonAndCheck("DELETE", await self.url)
|
|
160
|
+
|
|
161
|
+
async def edit(
|
|
162
|
+
self,
|
|
163
|
+
name: str,
|
|
164
|
+
config: dict,
|
|
165
|
+
events: Opt[list[str]] = NotSet,
|
|
166
|
+
add_events: Opt[list[str]] = NotSet,
|
|
167
|
+
remove_events: Opt[list[str]] = NotSet,
|
|
168
|
+
active: Opt[bool] = NotSet,
|
|
169
|
+
) -> None:
|
|
170
|
+
"""
|
|
171
|
+
:calls: `PATCH /repos/{owner}/{repo}/hooks/{hook_id} <https://docs.github.com/en/rest/reference/repos#webhooks>`_
|
|
172
|
+
"""
|
|
173
|
+
assert isinstance(name, str), name
|
|
174
|
+
assert isinstance(config, dict), config
|
|
175
|
+
assert is_optional_list(events, str), events
|
|
176
|
+
assert is_optional_list(add_events, str), add_events
|
|
177
|
+
assert is_optional_list(remove_events, str), remove_events
|
|
178
|
+
assert is_optional(active, bool), active
|
|
179
|
+
post_parameters = NotSet.remove_unset_items(
|
|
180
|
+
{
|
|
181
|
+
"name": name,
|
|
182
|
+
"config": config,
|
|
183
|
+
"events": events,
|
|
184
|
+
"add_events": add_events,
|
|
185
|
+
"remove_events": remove_events,
|
|
186
|
+
"active": active,
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
headers, data = await self._requester.requestJsonAndCheck("PATCH", await self.url, input=post_parameters)
|
|
191
|
+
self._useAttributes(data)
|
|
192
|
+
self._set_complete()
|
|
193
|
+
|
|
194
|
+
async def test(self) -> None:
|
|
195
|
+
"""
|
|
196
|
+
:calls: `POST /repos/{owner}/{repo}/hooks/{hook_id}/tests <https://docs.github.com/en/rest/reference/repos#webhooks>`_
|
|
197
|
+
"""
|
|
198
|
+
headers, data = await self._requester.requestJsonAndCheck("POST", f"{await self.url}/tests")
|
|
199
|
+
|
|
200
|
+
async def ping(self) -> None:
|
|
201
|
+
"""
|
|
202
|
+
:calls: `POST /repos/{owner}/{repo}/hooks/{hook_id}/pings <https://docs.github.com/en/rest/reference/repos#webhooks>`_
|
|
203
|
+
"""
|
|
204
|
+
headers, data = await self._requester.requestJsonAndCheck("POST", f"{await self.url}/pings")
|
|
205
|
+
|
|
206
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
207
|
+
if "active" in attributes: # pragma no branch
|
|
208
|
+
self._active = self._makeBoolAttribute(attributes["active"])
|
|
209
|
+
if "config" in attributes: # pragma no branch
|
|
210
|
+
self._config = self._makeDictAttribute(attributes["config"])
|
|
211
|
+
if "created_at" in attributes: # pragma no branch
|
|
212
|
+
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
|
|
213
|
+
if "deliveries_url" in attributes: # pragma no branch
|
|
214
|
+
self._deliveries_url = self._makeStringAttribute(attributes["deliveries_url"])
|
|
215
|
+
if "events" in attributes: # pragma no branch
|
|
216
|
+
self._events = self._makeListOfStringsAttribute(attributes["events"])
|
|
217
|
+
if "id" in attributes: # pragma no branch
|
|
218
|
+
self._id = self._makeIntAttribute(attributes["id"])
|
|
219
|
+
elif "url" in attributes and attributes["url"]:
|
|
220
|
+
id = attributes["url"].split("/")[-1]
|
|
221
|
+
if id.isnumeric():
|
|
222
|
+
self._id = self._makeIntAttribute(int(id))
|
|
223
|
+
if "last_response" in attributes: # pragma no branch
|
|
224
|
+
self._last_response = self._makeClassAttribute(
|
|
225
|
+
githubasyncio.HookResponse.HookResponse, attributes["last_response"]
|
|
226
|
+
)
|
|
227
|
+
if "name" in attributes: # pragma no branch
|
|
228
|
+
self._name = self._makeStringAttribute(attributes["name"])
|
|
229
|
+
if "ping_url" in attributes: # pragma no branch
|
|
230
|
+
self._ping_url = self._makeStringAttribute(attributes["ping_url"])
|
|
231
|
+
if "test_url" in attributes: # pragma no branch
|
|
232
|
+
self._test_url = self._makeStringAttribute(attributes["test_url"])
|
|
233
|
+
if "type" in attributes: # pragma no branch
|
|
234
|
+
self._type = self._makeStringAttribute(attributes["type"])
|
|
235
|
+
if "updated_at" in attributes: # pragma no branch
|
|
236
|
+
self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
|
|
237
|
+
if "url" in attributes: # pragma no branch
|
|
238
|
+
self._url = self._makeStringAttribute(attributes["url"])
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
5
|
+
# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
6
|
+
# Copyright 2023 Jonathan Greg <31892308+jmgreg31@users.noreply.github.com> #
|
|
7
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
8
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
9
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
10
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
11
|
+
# #
|
|
12
|
+
# This file is part of PyGithub. #
|
|
13
|
+
# http://pygithub.readthedocs.io/ #
|
|
14
|
+
# #
|
|
15
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
16
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
17
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
18
|
+
# any later version. #
|
|
19
|
+
# #
|
|
20
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
21
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
22
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
23
|
+
# details. #
|
|
24
|
+
# #
|
|
25
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
26
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
27
|
+
# #
|
|
28
|
+
################################################################################
|
|
29
|
+
|
|
30
|
+
from __future__ import annotations
|
|
31
|
+
|
|
32
|
+
from datetime import datetime
|
|
33
|
+
from typing import Any
|
|
34
|
+
|
|
35
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class HookDeliverySummary(NonCompletableGithubObject):
|
|
39
|
+
"""
|
|
40
|
+
This class represents a Summary of HookDeliveries.
|
|
41
|
+
|
|
42
|
+
The OpenAPI schema can be found at
|
|
43
|
+
|
|
44
|
+
- /components/schemas/hook-delivery-item
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def _initAttributes(self) -> None:
|
|
49
|
+
self._action: Attribute[str] = NotSet
|
|
50
|
+
self._delivered_at: Attribute[datetime] = NotSet
|
|
51
|
+
self._duration: Attribute[float] = NotSet
|
|
52
|
+
self._event: Attribute[str] = NotSet
|
|
53
|
+
self._guid: Attribute[str] = NotSet
|
|
54
|
+
self._id: Attribute[int] = NotSet
|
|
55
|
+
self._installation_id: Attribute[int] = NotSet
|
|
56
|
+
self._redelivery: Attribute[bool] = NotSet
|
|
57
|
+
self._repository_id: Attribute[int] = NotSet
|
|
58
|
+
self._status: Attribute[str] = NotSet
|
|
59
|
+
self._status_code: Attribute[int] = NotSet
|
|
60
|
+
self._throttled_at: Attribute[datetime] = NotSet
|
|
61
|
+
self._url: Attribute[str] = NotSet
|
|
62
|
+
|
|
63
|
+
def __repr__(self) -> str:
|
|
64
|
+
return self.get__repr__({"id": self._id.value})
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def action(self) -> str | None:
|
|
68
|
+
return self._action.value
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def delivered_at(self) -> datetime | None:
|
|
72
|
+
return self._delivered_at.value
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def duration(self) -> float | None:
|
|
76
|
+
return self._duration.value
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def event(self) -> str | None:
|
|
80
|
+
return self._event.value
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def guid(self) -> str | None:
|
|
84
|
+
return self._guid.value
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def id(self) -> int | None:
|
|
88
|
+
return self._id.value
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def installation_id(self) -> int | None:
|
|
92
|
+
return self._installation_id.value
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def redelivery(self) -> bool | None:
|
|
96
|
+
return self._redelivery.value
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def repository_id(self) -> int | None:
|
|
100
|
+
return self._repository_id.value
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def status(self) -> str | None:
|
|
104
|
+
return self._status.value
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def status_code(self) -> int | None:
|
|
108
|
+
return self._status_code.value
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def throttled_at(self) -> datetime:
|
|
112
|
+
return self._throttled_at.value
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def url(self) -> str | None:
|
|
116
|
+
return self._url.value
|
|
117
|
+
|
|
118
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
119
|
+
if "action" in attributes: # pragma no branch
|
|
120
|
+
self._action = self._makeStringAttribute(attributes["action"])
|
|
121
|
+
if "delivered_at" in attributes: # pragma no branch
|
|
122
|
+
self._delivered_at = self._makeDatetimeAttribute(attributes["delivered_at"])
|
|
123
|
+
if "duration" in attributes: # pragma no branch
|
|
124
|
+
self._duration = self._makeFloatAttribute(attributes["duration"])
|
|
125
|
+
if "event" in attributes: # pragma no branch
|
|
126
|
+
self._event = self._makeStringAttribute(attributes["event"])
|
|
127
|
+
if "guid" in attributes: # pragma no branch
|
|
128
|
+
self._guid = self._makeStringAttribute(attributes["guid"])
|
|
129
|
+
if "id" in attributes: # pragma no branch
|
|
130
|
+
self._id = self._makeIntAttribute(attributes["id"])
|
|
131
|
+
if "installation_id" in attributes: # pragma no branch
|
|
132
|
+
self._installation_id = self._makeIntAttribute(attributes["installation_id"])
|
|
133
|
+
if "redelivery" in attributes: # pragma no branch
|
|
134
|
+
self._redelivery = self._makeBoolAttribute(attributes["redelivery"])
|
|
135
|
+
if "repository_id" in attributes: # pragma no branch
|
|
136
|
+
self._repository_id = self._makeIntAttribute(attributes["repository_id"])
|
|
137
|
+
if "status" in attributes: # pragma no branch
|
|
138
|
+
self._status = self._makeStringAttribute(attributes["status"])
|
|
139
|
+
if "status_code" in attributes: # pragma no branch
|
|
140
|
+
self._status_code = self._makeIntAttribute(attributes["status_code"])
|
|
141
|
+
if "throttled_at" in attributes: # pragma no branch
|
|
142
|
+
self._throttled_at = self._makeDatetimeAttribute(attributes["throttled_at"])
|
|
143
|
+
if "url" in attributes: # pragma no branch
|
|
144
|
+
self._url = self._makeStringAttribute(attributes["url"])
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class HookDeliveryRequest(NonCompletableGithubObject):
|
|
148
|
+
"""
|
|
149
|
+
This class represents a HookDeliveryRequest.
|
|
150
|
+
|
|
151
|
+
The OpenAPI schema can be found at
|
|
152
|
+
|
|
153
|
+
- /components/schemas/hook-delivery/properties/request
|
|
154
|
+
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
def _initAttributes(self) -> None:
|
|
158
|
+
self.__headers: Attribute[dict] = NotSet
|
|
159
|
+
self._payload: Attribute[dict] = NotSet
|
|
160
|
+
|
|
161
|
+
def __repr__(self) -> str:
|
|
162
|
+
return self.get__repr__({"payload": self._payload.value})
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def headers(self) -> dict | None:
|
|
166
|
+
return self.__headers.value
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def payload(self) -> dict | None:
|
|
170
|
+
return self._payload.value
|
|
171
|
+
|
|
172
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
173
|
+
if "headers" in attributes: # pragma no branch
|
|
174
|
+
self.__headers = self._makeDictAttribute(attributes["headers"])
|
|
175
|
+
if "payload" in attributes: # pragma no branch
|
|
176
|
+
self._payload = self._makeDictAttribute(attributes["payload"])
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class HookDeliveryResponse(NonCompletableGithubObject):
|
|
180
|
+
"""
|
|
181
|
+
This class represents a HookDeliveryResponse.
|
|
182
|
+
|
|
183
|
+
The OpenAPI schema can be found at
|
|
184
|
+
|
|
185
|
+
- /components/schemas/hook-delivery/properties/response
|
|
186
|
+
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
def _initAttributes(self) -> None:
|
|
190
|
+
self.__headers: Attribute[dict] = NotSet
|
|
191
|
+
self._payload: Attribute[str] = NotSet
|
|
192
|
+
|
|
193
|
+
def __repr__(self) -> str:
|
|
194
|
+
return self.get__repr__({"payload": self._payload.value})
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def headers(self) -> dict | None:
|
|
198
|
+
return self.__headers.value
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def payload(self) -> str | None:
|
|
202
|
+
return self._payload.value
|
|
203
|
+
|
|
204
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
205
|
+
if "headers" in attributes: # pragma no branch
|
|
206
|
+
self.__headers = self._makeDictAttribute(attributes["headers"])
|
|
207
|
+
if "payload" in attributes: # pragma no branch
|
|
208
|
+
self._payload = self._makeStringAttribute(attributes["payload"])
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
class HookDelivery(HookDeliverySummary):
|
|
212
|
+
"""
|
|
213
|
+
This class represents a HookDelivery.
|
|
214
|
+
|
|
215
|
+
The OpenAPI schema can be found at
|
|
216
|
+
|
|
217
|
+
- /components/schemas/hook-delivery
|
|
218
|
+
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
def _initAttributes(self) -> None:
|
|
222
|
+
super()._initAttributes()
|
|
223
|
+
self._request: Attribute[HookDeliveryRequest] = NotSet
|
|
224
|
+
self._response: Attribute[HookDeliveryResponse] = NotSet
|
|
225
|
+
|
|
226
|
+
def __repr__(self) -> str:
|
|
227
|
+
return self.get__repr__({"id": self._id.value})
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def request(self) -> HookDeliveryRequest | None:
|
|
231
|
+
return self._request.value
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
def response(self) -> HookDeliveryResponse | None:
|
|
235
|
+
return self._response.value
|
|
236
|
+
|
|
237
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
238
|
+
super()._useAttributes(attributes)
|
|
239
|
+
if "request" in attributes: # pragma no branch
|
|
240
|
+
self._request = self._makeClassAttribute(HookDeliveryRequest, attributes["request"])
|
|
241
|
+
if "response" in attributes: # pragma no branch
|
|
242
|
+
self._response = self._makeClassAttribute(HookDeliveryResponse, attributes["response"])
|
|
243
|
+
# self._response = self._makeDictAttribute(attributes["response"])
|
|
@@ -0,0 +1,85 @@
|
|
|
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 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
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
|
+
# #
|
|
22
|
+
# This file is part of PyGithub. #
|
|
23
|
+
# http://pygithub.readthedocs.io/ #
|
|
24
|
+
# #
|
|
25
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
26
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
27
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
28
|
+
# any later version. #
|
|
29
|
+
# #
|
|
30
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
31
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
32
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
33
|
+
# details. #
|
|
34
|
+
# #
|
|
35
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
36
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
37
|
+
# #
|
|
38
|
+
################################################################################
|
|
39
|
+
|
|
40
|
+
from __future__ import annotations
|
|
41
|
+
|
|
42
|
+
from typing import Any
|
|
43
|
+
|
|
44
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class HookDescription(NonCompletableGithubObject):
|
|
48
|
+
"""
|
|
49
|
+
This class represents HookDescriptions.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def _initAttributes(self) -> None:
|
|
53
|
+
self._events: Attribute[list[str]] = NotSet
|
|
54
|
+
self._name: Attribute[str] = NotSet
|
|
55
|
+
self._schema: Attribute[list[list[str]]] = NotSet
|
|
56
|
+
self._supported_events: Attribute[list[str]] = NotSet
|
|
57
|
+
|
|
58
|
+
def __repr__(self) -> str:
|
|
59
|
+
return self.get__repr__({"name": self._name.value})
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def events(self) -> list[str]:
|
|
63
|
+
return self._events.value
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def name(self) -> str:
|
|
67
|
+
return self._name.value
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def schema(self) -> list[list[str]]:
|
|
71
|
+
return self._schema.value
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def supported_events(self) -> list[str]:
|
|
75
|
+
return self._supported_events.value
|
|
76
|
+
|
|
77
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
78
|
+
if "events" in attributes: # pragma no branch
|
|
79
|
+
self._events = self._makeListOfStringsAttribute(attributes["events"])
|
|
80
|
+
if "name" in attributes: # pragma no branch
|
|
81
|
+
self._name = self._makeStringAttribute(attributes["name"])
|
|
82
|
+
if "schema" in attributes: # pragma no branch
|
|
83
|
+
self._schema = self._makeListOfListOfStringsAttribute(attributes["schema"])
|
|
84
|
+
if "supported_events" in attributes: # pragma no branch
|
|
85
|
+
self._supported_events = self._makeListOfStringsAttribute(attributes["supported_events"])
|
|
@@ -0,0 +1,83 @@
|
|
|
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 Enrico Minack <github@enrico.minack.dev> #
|
|
19
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
20
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
21
|
+
# #
|
|
22
|
+
# This file is part of PyGithub. #
|
|
23
|
+
# http://pygithub.readthedocs.io/ #
|
|
24
|
+
# #
|
|
25
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
26
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
27
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
28
|
+
# any later version. #
|
|
29
|
+
# #
|
|
30
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
31
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
32
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
33
|
+
# details. #
|
|
34
|
+
# #
|
|
35
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
36
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
37
|
+
# #
|
|
38
|
+
################################################################################
|
|
39
|
+
|
|
40
|
+
from __future__ import annotations
|
|
41
|
+
|
|
42
|
+
from typing import Any
|
|
43
|
+
|
|
44
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class HookResponse(NonCompletableGithubObject):
|
|
48
|
+
"""
|
|
49
|
+
This class represents HookResponses.
|
|
50
|
+
|
|
51
|
+
The OpenAPI schema can be found at
|
|
52
|
+
|
|
53
|
+
- /components/schemas/hook-response
|
|
54
|
+
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
def _initAttributes(self) -> None:
|
|
58
|
+
self._code: Attribute[int] = NotSet
|
|
59
|
+
self._message: Attribute[str] = NotSet
|
|
60
|
+
self._status: Attribute[str] = NotSet
|
|
61
|
+
|
|
62
|
+
def __repr__(self) -> str:
|
|
63
|
+
return self.get__repr__({"status": self._status.value})
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def code(self) -> int:
|
|
67
|
+
return self._code.value
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def message(self) -> str:
|
|
71
|
+
return self._message.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 "code" in attributes: # pragma no branch
|
|
79
|
+
self._code = self._makeIntAttribute(attributes["code"])
|
|
80
|
+
if "message" in attributes: # pragma no branch
|
|
81
|
+
self._message = self._makeStringAttribute(attributes["message"])
|
|
82
|
+
if "status" in attributes: # pragma no branch
|
|
83
|
+
self._status = self._makeStringAttribute(attributes["status"])
|