Skip to content

Commit fdc6515

Browse files
authored
👽 re-generate openapi models
1 parent 780cb32 commit fdc6515

File tree

2,261 files changed

+97056
-96054
lines changed

Some content is hidden

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

2,261 files changed

+97056
-96054
lines changed

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 4376 additions & 4342 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0060.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ class CodeSecurityConfiguration(GitHubModel):
3838
description: Missing[str] = Field(
3939
default=UNSET, description="A description of the code security configuration"
4040
)
41-
advanced_security: Missing[Literal["enabled", "disabled"]] = Field(
41+
advanced_security: Missing[
42+
Literal["enabled", "disabled", "code_security", "secret_protection"]
43+
] = Field(
4244
default=UNSET, description="The enablement status of GitHub Advanced Security"
4345
)
4446
dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field(

githubkit/versions/ghec_v2022_11_28/models/group_0068.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CopilotSeatDetails(GitHubModel):
3030
organization.
3131
"""
3232

33-
assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.")
33+
assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
3434
organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET)
3535
assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field(
3636
default=UNSET,

githubkit/versions/ghec_v2022_11_28/models/group_0186.py

Lines changed: 129 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,140 @@
1818
from githubkit.typing import Missing
1919
from githubkit.utils import UNSET
2020

21-
from .group_0003 import SimpleUser
22-
from .group_0168 import MinimalRepository
21+
from .group_0053 import BypassResponse
2322

2423

25-
class Package(GitHubModel):
26-
"""Package
24+
class SecretScanningDismissalRequest(GitHubModel):
25+
"""Secret scanning alert dismissal request
2726
28-
A software package
27+
A dismissal request made by a user asking to close a secret scanning alert in
28+
this repository.
2929
"""
3030

31-
id: int = Field(description="Unique identifier of the package.")
32-
name: str = Field(description="The name of the package.")
33-
package_type: Literal[
34-
"npm", "maven", "rubygems", "docker", "nuget", "container"
35-
] = Field()
36-
url: str = Field()
37-
html_url: str = Field()
38-
version_count: int = Field(description="The number of versions of the package.")
39-
visibility: Literal["private", "public"] = Field()
40-
owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
41-
repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET)
42-
created_at: datetime = Field()
43-
updated_at: datetime = Field()
31+
id: Missing[int] = Field(
32+
default=UNSET, description="The unique identifier of the dismissal request."
33+
)
34+
number: Missing[int] = Field(
35+
default=UNSET,
36+
description="The number uniquely identifying the dismissal request within its repository.",
37+
)
38+
repository: Missing[SecretScanningDismissalRequestPropRepository] = Field(
39+
default=UNSET, description="The repository the dismissal request is for."
40+
)
41+
organization: Missing[SecretScanningDismissalRequestPropOrganization] = Field(
42+
default=UNSET,
43+
description="The organization associated with the repository the dismissal request is for.",
44+
)
45+
requester: Missing[SecretScanningDismissalRequestPropRequester] = Field(
46+
default=UNSET, description="The user who requested the dismissal."
47+
)
48+
request_type: Missing[str] = Field(
49+
default=UNSET, description="The type of request."
50+
)
51+
data: Missing[Union[list[SecretScanningDismissalRequestPropDataItems], None]] = (
52+
Field(
53+
default=UNSET,
54+
description="Data describing the secret alert that is being requested to be dismissed.",
55+
)
56+
)
57+
resource_identifier: Missing[str] = Field(
58+
default=UNSET,
59+
description="The number of the secret scanning alert that was detected.",
60+
)
61+
status: Missing[
62+
Literal["pending", "denied", "approved", "cancelled", "expired"]
63+
] = Field(default=UNSET, description="The status of the dismissal request.")
64+
requester_comment: Missing[Union[str, None]] = Field(
65+
default=UNSET,
66+
description="The comment the requester provided when creating the dismissal request.",
67+
)
68+
expires_at: Missing[datetime] = Field(
69+
default=UNSET,
70+
description="The date and time the dismissal request will expire.",
71+
)
72+
created_at: Missing[datetime] = Field(
73+
default=UNSET,
74+
description="The date and time the dismissal request was created.",
75+
)
76+
responses: Missing[Union[list[BypassResponse], None]] = Field(
77+
default=UNSET, description="The responses to the dismissal request."
78+
)
79+
url: Missing[str] = Field(default=UNSET)
80+
html_url: Missing[str] = Field(
81+
default=UNSET, description="The URL to view the dismissal request in a browser."
82+
)
4483

4584

46-
model_rebuild(Package)
85+
class SecretScanningDismissalRequestPropRepository(GitHubModel):
86+
"""SecretScanningDismissalRequestPropRepository
4787
48-
__all__ = ("Package",)
88+
The repository the dismissal request is for.
89+
"""
90+
91+
id: Missing[int] = Field(
92+
default=UNSET,
93+
description="The ID of the repository the dismissal request is for.",
94+
)
95+
name: Missing[str] = Field(
96+
default=UNSET,
97+
description="The name of the repository the dismissal request is for.",
98+
)
99+
full_name: Missing[str] = Field(
100+
default=UNSET,
101+
description="The full name of the repository the dismissal request is for.",
102+
)
103+
104+
105+
class SecretScanningDismissalRequestPropOrganization(GitHubModel):
106+
"""SecretScanningDismissalRequestPropOrganization
107+
108+
The organization associated with the repository the dismissal request is for.
109+
"""
110+
111+
id: Missing[int] = Field(default=UNSET, description="The ID of the organization.")
112+
name: Missing[str] = Field(
113+
default=UNSET, description="The name of the organization."
114+
)
115+
116+
117+
class SecretScanningDismissalRequestPropRequester(GitHubModel):
118+
"""SecretScanningDismissalRequestPropRequester
119+
120+
The user who requested the dismissal.
121+
"""
122+
123+
actor_id: Missing[int] = Field(
124+
default=UNSET,
125+
description="The ID of the GitHub user who requested the dismissal.",
126+
)
127+
actor_name: Missing[str] = Field(
128+
default=UNSET,
129+
description="The name of the GitHub user who requested the dismissal.",
130+
)
131+
132+
133+
class SecretScanningDismissalRequestPropDataItems(GitHubModel):
134+
"""SecretScanningDismissalRequestPropDataItems"""
135+
136+
secret_type: Missing[str] = Field(
137+
default=UNSET, description="The type of secret that secret scanning detected."
138+
)
139+
alert_number: Missing[str] = Field(
140+
default=UNSET,
141+
description="The number of the secret scanning alert that was detected.",
142+
)
143+
144+
145+
model_rebuild(SecretScanningDismissalRequest)
146+
model_rebuild(SecretScanningDismissalRequestPropRepository)
147+
model_rebuild(SecretScanningDismissalRequestPropOrganization)
148+
model_rebuild(SecretScanningDismissalRequestPropRequester)
149+
model_rebuild(SecretScanningDismissalRequestPropDataItems)
150+
151+
__all__ = (
152+
"SecretScanningDismissalRequest",
153+
"SecretScanningDismissalRequestPropDataItems",
154+
"SecretScanningDismissalRequestPropOrganization",
155+
"SecretScanningDismissalRequestPropRepository",
156+
"SecretScanningDismissalRequestPropRequester",
157+
)

githubkit/versions/ghec_v2022_11_28/models/group_0187.py

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,40 @@
99

1010
from __future__ import annotations
1111

12+
from datetime import datetime
13+
from typing import Literal, Union
14+
1215
from pydantic import Field
1316

1417
from githubkit.compat import GitHubModel, model_rebuild
1518
from githubkit.typing import Missing
1619
from githubkit.utils import UNSET
1720

21+
from .group_0003 import SimpleUser
22+
from .group_0168 import MinimalRepository
1823

19-
class ExternalGroup(GitHubModel):
20-
"""ExternalGroup
21-
22-
Information about an external group's usage and its members
23-
"""
24-
25-
group_id: int = Field(description="The internal ID of the group")
26-
group_name: str = Field(description="The display name for the group")
27-
updated_at: Missing[str] = Field(
28-
default=UNSET, description="The date when the group was last updated_at"
29-
)
30-
teams: list[ExternalGroupPropTeamsItems] = Field(
31-
description="An array of teams linked to this group"
32-
)
33-
members: list[ExternalGroupPropMembersItems] = Field(
34-
description="An array of external members linked to this group"
35-
)
36-
37-
38-
class ExternalGroupPropTeamsItems(GitHubModel):
39-
"""ExternalGroupPropTeamsItems"""
4024

41-
team_id: int = Field(description="The id for a team")
42-
team_name: str = Field(description="The name of the team")
25+
class Package(GitHubModel):
26+
"""Package
4327
28+
A software package
29+
"""
4430

45-
class ExternalGroupPropMembersItems(GitHubModel):
46-
"""ExternalGroupPropMembersItems"""
47-
48-
member_id: int = Field(description="The internal user ID of the identity")
49-
member_login: str = Field(description="The handle/login for the user")
50-
member_name: str = Field(description="The user display name/profile name")
51-
member_email: str = Field(description="An email attached to a user")
31+
id: int = Field(description="Unique identifier of the package.")
32+
name: str = Field(description="The name of the package.")
33+
package_type: Literal[
34+
"npm", "maven", "rubygems", "docker", "nuget", "container"
35+
] = Field()
36+
url: str = Field()
37+
html_url: str = Field()
38+
version_count: int = Field(description="The number of versions of the package.")
39+
visibility: Literal["private", "public"] = Field()
40+
owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
41+
repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET)
42+
created_at: datetime = Field()
43+
updated_at: datetime = Field()
5244

5345

54-
model_rebuild(ExternalGroup)
55-
model_rebuild(ExternalGroupPropTeamsItems)
56-
model_rebuild(ExternalGroupPropMembersItems)
46+
model_rebuild(Package)
5747

58-
__all__ = (
59-
"ExternalGroup",
60-
"ExternalGroupPropMembersItems",
61-
"ExternalGroupPropTeamsItems",
62-
)
48+
__all__ = ("Package",)

githubkit/versions/ghec_v2022_11_28/models/group_0188.py

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,47 @@
1616
from githubkit.utils import UNSET
1717

1818

19-
class ExternalGroups(GitHubModel):
20-
"""ExternalGroups
19+
class ExternalGroup(GitHubModel):
20+
"""ExternalGroup
2121
22-
A list of external groups available to be connected to a team
22+
Information about an external group's usage and its members
2323
"""
2424

25-
groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field(
26-
default=UNSET,
27-
description="An array of external groups available to be mapped to a team",
25+
group_id: int = Field(description="The internal ID of the group")
26+
group_name: str = Field(description="The display name for the group")
27+
updated_at: Missing[str] = Field(
28+
default=UNSET, description="The date when the group was last updated_at"
29+
)
30+
teams: list[ExternalGroupPropTeamsItems] = Field(
31+
description="An array of teams linked to this group"
32+
)
33+
members: list[ExternalGroupPropMembersItems] = Field(
34+
description="An array of external members linked to this group"
2835
)
2936

3037

31-
class ExternalGroupsPropGroupsItems(GitHubModel):
32-
"""ExternalGroupsPropGroupsItems"""
38+
class ExternalGroupPropTeamsItems(GitHubModel):
39+
"""ExternalGroupPropTeamsItems"""
3340

34-
group_id: int = Field(description="The internal ID of the group")
35-
group_name: str = Field(description="The display name of the group")
36-
updated_at: str = Field(description="The time of the last update for this group")
41+
team_id: int = Field(description="The id for a team")
42+
team_name: str = Field(description="The name of the team")
43+
44+
45+
class ExternalGroupPropMembersItems(GitHubModel):
46+
"""ExternalGroupPropMembersItems"""
47+
48+
member_id: int = Field(description="The internal user ID of the identity")
49+
member_login: str = Field(description="The handle/login for the user")
50+
member_name: str = Field(description="The user display name/profile name")
51+
member_email: str = Field(description="An email attached to a user")
3752

3853

39-
model_rebuild(ExternalGroups)
40-
model_rebuild(ExternalGroupsPropGroupsItems)
54+
model_rebuild(ExternalGroup)
55+
model_rebuild(ExternalGroupPropTeamsItems)
56+
model_rebuild(ExternalGroupPropMembersItems)
4157

4258
__all__ = (
43-
"ExternalGroups",
44-
"ExternalGroupsPropGroupsItems",
59+
"ExternalGroup",
60+
"ExternalGroupPropMembersItems",
61+
"ExternalGroupPropTeamsItems",
4562
)

githubkit/versions/ghec_v2022_11_28/models/group_0189.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,37 @@
99

1010
from __future__ import annotations
1111

12-
from typing import Union
13-
1412
from pydantic import Field
1513

1614
from githubkit.compat import GitHubModel, model_rebuild
1715
from githubkit.typing import Missing
1816
from githubkit.utils import UNSET
1917

20-
from .group_0003 import SimpleUser
21-
2218

23-
class OrganizationInvitation(GitHubModel):
24-
"""Organization Invitation
19+
class ExternalGroups(GitHubModel):
20+
"""ExternalGroups
2521
26-
Organization Invitation
22+
A list of external groups available to be connected to a team
2723
"""
2824

29-
id: int = Field()
30-
login: Union[str, None] = Field()
31-
email: Union[str, None] = Field()
32-
role: str = Field()
33-
created_at: str = Field()
34-
failed_at: Missing[Union[str, None]] = Field(default=UNSET)
35-
failed_reason: Missing[Union[str, None]] = Field(default=UNSET)
36-
inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.")
37-
team_count: int = Field()
38-
node_id: str = Field()
39-
invitation_teams_url: str = Field()
40-
invitation_source: Missing[str] = Field(default=UNSET)
25+
groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field(
26+
default=UNSET,
27+
description="An array of external groups available to be mapped to a team",
28+
)
29+
30+
31+
class ExternalGroupsPropGroupsItems(GitHubModel):
32+
"""ExternalGroupsPropGroupsItems"""
33+
34+
group_id: int = Field(description="The internal ID of the group")
35+
group_name: str = Field(description="The display name of the group")
36+
updated_at: str = Field(description="The time of the last update for this group")
4137

4238

43-
model_rebuild(OrganizationInvitation)
39+
model_rebuild(ExternalGroups)
40+
model_rebuild(ExternalGroupsPropGroupsItems)
4441

45-
__all__ = ("OrganizationInvitation",)
42+
__all__ = (
43+
"ExternalGroups",
44+
"ExternalGroupsPropGroupsItems",
45+
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy