Skip to content

Commit c8f4ee0

Browse files
authored
👽 re-generate openapi models
1 parent 26f3335 commit c8f4ee0

File tree

4,490 files changed

+195076
-193142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,490 files changed

+195076
-193142
lines changed

githubkit/rest/__init__.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@
219219
from githubkit.versions.v2022_11_28.models import (
220220
BranchWithProtectionPropLinks as BranchWithProtectionPropLinks,
221221
)
222+
from githubkit.versions.v2022_11_28.models import CampaignSummary as CampaignSummary
223+
from githubkit.versions.v2022_11_28.models import (
224+
CampaignSummaryPropAlertStats as CampaignSummaryPropAlertStats,
225+
)
222226
from githubkit.versions.v2022_11_28.models import CheckAnnotation as CheckAnnotation
223227
from githubkit.versions.v2022_11_28.models import (
224228
CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes,
@@ -1281,6 +1285,15 @@
12811285
from githubkit.versions.v2022_11_28.models import (
12821286
OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial,
12831287
)
1288+
from githubkit.versions.v2022_11_28.models import (
1289+
OrgsOrgCampaignsCampaignNumberPatchBody as OrgsOrgCampaignsCampaignNumberPatchBody,
1290+
)
1291+
from githubkit.versions.v2022_11_28.models import (
1292+
OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody,
1293+
)
1294+
from githubkit.versions.v2022_11_28.models import (
1295+
OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems,
1296+
)
12841297
from githubkit.versions.v2022_11_28.models import (
12851298
OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody,
12861299
)
@@ -9864,6 +9877,11 @@
98649877
"AuthenticationToken",
98659878
"AuthenticationTokenPropPermissions",
98669879
"ActionsPublicKey",
9880+
"TeamSimple",
9881+
"Team",
9882+
"TeamPropPermissions",
9883+
"CampaignSummary",
9884+
"CampaignSummaryPropAlertStats",
98679885
"CodeScanningAlertRuleSummary",
98689886
"CodeScanningAnalysisTool",
98699887
"CodeScanningAlertInstance",
@@ -9877,9 +9895,6 @@
98779895
"CodespacesPublicKey",
98789896
"CopilotOrganizationDetails",
98799897
"CopilotOrganizationSeatBreakdown",
9880-
"TeamSimple",
9881-
"Team",
9882-
"TeamPropPermissions",
98839898
"CopilotSeatDetails",
98849899
"EnterpriseTeam",
98859900
"OrgsOrgCopilotBillingSeatsGetResponse200",
@@ -12694,6 +12709,9 @@
1269412709
"OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle",
1269512710
"OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial",
1269612711
"OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope",
12712+
"OrgsOrgCampaignsPostBody",
12713+
"OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems",
12714+
"OrgsOrgCampaignsCampaignNumberPatchBody",
1269712715
"OrgsOrgCodeSecurityConfigurationsPostBody",
1269812716
"OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions",
1269912717
"OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions",

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 4377 additions & 4357 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0057.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ class CodeScanningAlertInstance(GitHubModel):
4747
)
4848
html_url: Missing[str] = Field(default=UNSET)
4949
classifications: Missing[
50-
list[Union[None, Literal["source", "generated", "test", "library"]]]
50+
list[
51+
Union[
52+
None, Literal["source", "generated", "test", "library", "documentation"]
53+
]
54+
]
5155
] = Field(
5256
default=UNSET,
5357
description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.",

githubkit/versions/ghec_v2022_11_28/models/group_0074.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class DependabotAlertWithRepositoryPropDependency(GitHubModel):
3636
scope: Missing[Union[None, Literal["development", "runtime"]]] = Field(
3737
default=UNSET, description="The execution scope of the vulnerable dependency."
3838
)
39-
relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = (
40-
Field(
41-
default=UNSET,
42-
description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n',
43-
)
39+
relationship: Missing[
40+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
41+
] = Field(
42+
default=UNSET,
43+
description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n',
4444
)
4545

4646

githubkit/versions/ghec_v2022_11_28/models/group_0105.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RepositoryRulePullRequestPropParameters(GitHubModel):
2727
)
2828
automatic_copilot_code_review_enabled: Missing[bool] = Field(
2929
default=UNSET,
30-
description="> [!NOTE]\n> `automatic_copilot_code_review_enabled` is in beta and subject to change.\n\nAutomatically request review from Copilot for new pull requests, if the author has access to Copilot code review.",
30+
description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.",
3131
)
3232
dismiss_stale_reviews_on_push: bool = Field(
3333
description="New, reviewable commits pushed will dismiss previous pull request review approvals."

githubkit/versions/ghec_v2022_11_28/models/group_0177.py

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,71 @@
99

1010
from __future__ import annotations
1111

12+
from datetime import datetime
1213
from typing import Literal, Union
1314

1415
from pydantic import Field
1516

1617
from githubkit.compat import GitHubModel, model_rebuild
18+
from githubkit.typing import Missing
19+
from githubkit.utils import UNSET
1720

21+
from .group_0003 import SimpleUser
22+
from .group_0067 import Team
1823

19-
class CodespaceMachine(GitHubModel):
20-
"""Codespace machine
2124

22-
A description of the machine powering a codespace.
25+
class CampaignSummary(GitHubModel):
26+
"""Campaign summary
27+
28+
The campaign metadata and alert stats.
2329
"""
2430

25-
name: str = Field(description="The name of the machine.")
26-
display_name: str = Field(
27-
description="The display name of the machine includes cores, memory, and storage."
31+
number: int = Field(description="The number of the newly created campaign")
32+
created_at: datetime = Field(
33+
description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
34+
)
35+
updated_at: datetime = Field(
36+
description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
37+
)
38+
name: Missing[str] = Field(default=UNSET, description="The campaign name")
39+
description: str = Field(description="The campaign description")
40+
managers: list[SimpleUser] = Field(description="The campaign managers")
41+
team_managers: Missing[list[Team]] = Field(
42+
default=UNSET, description="The campaign team managers"
43+
)
44+
published_at: Missing[datetime] = Field(
45+
default=UNSET,
46+
description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.",
2847
)
29-
operating_system: str = Field(description="The operating system of the machine.")
30-
storage_in_bytes: int = Field(
31-
description="How much storage is available to the codespace."
48+
ends_at: datetime = Field(
49+
description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
3250
)
33-
memory_in_bytes: int = Field(
34-
description="How much memory is available to the codespace."
51+
closed_at: Missing[Union[datetime, None]] = Field(
52+
default=UNSET,
53+
description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.",
3554
)
36-
cpus: int = Field(description="How many cores are available to the codespace.")
37-
prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field(
38-
description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.'
55+
state: Literal["open", "closed"] = Field(
56+
title="Campaign state",
57+
description="Indicates whether a campaign is open or closed",
3958
)
59+
contact_link: Union[str, None] = Field(
60+
description="The contact link of the campaign."
61+
)
62+
alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET)
63+
64+
65+
class CampaignSummaryPropAlertStats(GitHubModel):
66+
"""CampaignSummaryPropAlertStats"""
67+
68+
open_count: int = Field(description="The number of open alerts")
69+
closed_count: int = Field(description="The number of closed alerts")
70+
in_progress_count: int = Field(description="The number of in-progress alerts")
4071

4172

42-
model_rebuild(CodespaceMachine)
73+
model_rebuild(CampaignSummary)
74+
model_rebuild(CampaignSummaryPropAlertStats)
4375

44-
__all__ = ("CodespaceMachine",)
76+
__all__ = (
77+
"CampaignSummary",
78+
"CampaignSummaryPropAlertStats",
79+
)

githubkit/versions/ghec_v2022_11_28/models/group_0178.py

Lines changed: 16 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -9,166 +9,36 @@
99

1010
from __future__ import annotations
1111

12-
from datetime import datetime
1312
from typing import Literal, Union
1413

1514
from pydantic import Field
1615

1716
from githubkit.compat import GitHubModel, model_rebuild
18-
from githubkit.typing import Missing
19-
from githubkit.utils import UNSET
2017

21-
from .group_0003 import SimpleUser
22-
from .group_0168 import MinimalRepository
23-
from .group_0177 import CodespaceMachine
2418

19+
class CodespaceMachine(GitHubModel):
20+
"""Codespace machine
2521
26-
class Codespace(GitHubModel):
27-
"""Codespace
28-
29-
A codespace.
30-
"""
31-
32-
id: int = Field()
33-
name: str = Field(description="Automatically generated name of this codespace.")
34-
display_name: Missing[Union[str, None]] = Field(
35-
default=UNSET, description="Display name for this codespace."
36-
)
37-
environment_id: Union[str, None] = Field(
38-
description="UUID identifying this codespace's environment."
39-
)
40-
owner: SimpleUser = Field(title="Simple User", description="A GitHub user.")
41-
billable_owner: SimpleUser = Field(
42-
title="Simple User", description="A GitHub user."
43-
)
44-
repository: MinimalRepository = Field(
45-
title="Minimal Repository", description="Minimal Repository"
46-
)
47-
machine: Union[None, CodespaceMachine] = Field()
48-
devcontainer_path: Missing[Union[str, None]] = Field(
49-
default=UNSET,
50-
description="Path to devcontainer.json from repo root used to create Codespace.",
51-
)
52-
prebuild: Union[bool, None] = Field(
53-
description="Whether the codespace was created from a prebuild."
54-
)
55-
created_at: datetime = Field()
56-
updated_at: datetime = Field()
57-
last_used_at: datetime = Field(
58-
description="Last known time this codespace was started."
59-
)
60-
state: Literal[
61-
"Unknown",
62-
"Created",
63-
"Queued",
64-
"Provisioning",
65-
"Available",
66-
"Awaiting",
67-
"Unavailable",
68-
"Deleted",
69-
"Moved",
70-
"Shutdown",
71-
"Archived",
72-
"Starting",
73-
"ShuttingDown",
74-
"Failed",
75-
"Exporting",
76-
"Updating",
77-
"Rebuilding",
78-
] = Field(description="State of this codespace.")
79-
url: str = Field(description="API URL for this codespace.")
80-
git_status: CodespacePropGitStatus = Field(
81-
description="Details about the codespace's git repository."
82-
)
83-
location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field(
84-
description="The initally assigned location of a new codespace."
85-
)
86-
idle_timeout_minutes: Union[int, None] = Field(
87-
description="The number of minutes of inactivity after which this codespace will be automatically stopped."
88-
)
89-
web_url: str = Field(description="URL to access this codespace on the web.")
90-
machines_url: str = Field(
91-
description="API URL to access available alternate machine types for this codespace."
92-
)
93-
start_url: str = Field(description="API URL to start this codespace.")
94-
stop_url: str = Field(description="API URL to stop this codespace.")
95-
publish_url: Missing[Union[str, None]] = Field(
96-
default=UNSET,
97-
description="API URL to publish this codespace to a new repository.",
98-
)
99-
pulls_url: Union[str, None] = Field(
100-
description="API URL for the Pull Request associated with this codespace, if any."
101-
)
102-
recent_folders: list[str] = Field()
103-
runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET)
104-
pending_operation: Missing[Union[bool, None]] = Field(
105-
default=UNSET,
106-
description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.",
107-
)
108-
pending_operation_disabled_reason: Missing[Union[str, None]] = Field(
109-
default=UNSET,
110-
description="Text to show user when codespace is disabled by a pending operation",
111-
)
112-
idle_timeout_notice: Missing[Union[str, None]] = Field(
113-
default=UNSET,
114-
description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy",
115-
)
116-
retention_period_minutes: Missing[Union[int, None]] = Field(
117-
default=UNSET,
118-
description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).",
119-
)
120-
retention_expires_at: Missing[Union[datetime, None]] = Field(
121-
default=UNSET,
122-
description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"',
123-
)
124-
last_known_stop_notice: Missing[Union[str, None]] = Field(
125-
default=UNSET,
126-
description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.",
127-
)
128-
129-
130-
class CodespacePropGitStatus(GitHubModel):
131-
"""CodespacePropGitStatus
132-
133-
Details about the codespace's git repository.
22+
A description of the machine powering a codespace.
13423
"""
13524

136-
ahead: Missing[int] = Field(
137-
default=UNSET,
138-
description="The number of commits the local repository is ahead of the remote.",
139-
)
140-
behind: Missing[int] = Field(
141-
default=UNSET,
142-
description="The number of commits the local repository is behind the remote.",
143-
)
144-
has_unpushed_changes: Missing[bool] = Field(
145-
default=UNSET, description="Whether the local repository has unpushed changes."
25+
name: str = Field(description="The name of the machine.")
26+
display_name: str = Field(
27+
description="The display name of the machine includes cores, memory, and storage."
14628
)
147-
has_uncommitted_changes: Missing[bool] = Field(
148-
default=UNSET,
149-
description="Whether the local repository has uncommitted changes.",
29+
operating_system: str = Field(description="The operating system of the machine.")
30+
storage_in_bytes: int = Field(
31+
description="How much storage is available to the codespace."
15032
)
151-
ref: Missing[str] = Field(
152-
default=UNSET,
153-
description="The current branch (or SHA if in detached HEAD state) of the local repository.",
33+
memory_in_bytes: int = Field(
34+
description="How much memory is available to the codespace."
15435
)
155-
156-
157-
class CodespacePropRuntimeConstraints(GitHubModel):
158-
"""CodespacePropRuntimeConstraints"""
159-
160-
allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field(
161-
default=UNSET,
162-
description="The privacy settings a user can select from when forwarding a port.",
36+
cpus: int = Field(description="How many cores are available to the codespace.")
37+
prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field(
38+
description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.'
16339
)
16440

16541

166-
model_rebuild(Codespace)
167-
model_rebuild(CodespacePropGitStatus)
168-
model_rebuild(CodespacePropRuntimeConstraints)
42+
model_rebuild(CodespaceMachine)
16943

170-
__all__ = (
171-
"Codespace",
172-
"CodespacePropGitStatus",
173-
"CodespacePropRuntimeConstraints",
174-
)
44+
__all__ = ("CodespaceMachine",)

0 commit comments

Comments
 (0)