Skip to content

Commit d7376c8

Browse files
committed
👽 re-generate openapi models and apis
1 parent fc10405 commit d7376c8

File tree

4,892 files changed

+226969
-225917
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,892 files changed

+226969
-225917
lines changed

githubkit/rest/__init__.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,24 @@
208208
from githubkit.versions.v2022_11_28.models import (
209209
BillingUsageReportUserPropUsageItemsItems as BillingUsageReportUserPropUsageItemsItems,
210210
)
211+
from githubkit.versions.v2022_11_28.models import (
212+
BillingUsageSummaryReportOrg as BillingUsageSummaryReportOrg,
213+
)
214+
from githubkit.versions.v2022_11_28.models import (
215+
BillingUsageSummaryReportOrgPropTimePeriod as BillingUsageSummaryReportOrgPropTimePeriod,
216+
)
217+
from githubkit.versions.v2022_11_28.models import (
218+
BillingUsageSummaryReportOrgPropUsageItemsItems as BillingUsageSummaryReportOrgPropUsageItemsItems,
219+
)
220+
from githubkit.versions.v2022_11_28.models import (
221+
BillingUsageSummaryReportUser as BillingUsageSummaryReportUser,
222+
)
223+
from githubkit.versions.v2022_11_28.models import (
224+
BillingUsageSummaryReportUserPropTimePeriod as BillingUsageSummaryReportUserPropTimePeriod,
225+
)
226+
from githubkit.versions.v2022_11_28.models import (
227+
BillingUsageSummaryReportUserPropUsageItemsItems as BillingUsageSummaryReportUserPropUsageItemsItems,
228+
)
211229
from githubkit.versions.v2022_11_28.models import Blob as Blob
212230
from githubkit.versions.v2022_11_28.models import (
213231
BranchProtection as BranchProtection,
@@ -1835,9 +1853,6 @@
18351853
from githubkit.versions.v2022_11_28.models import (
18361854
ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody,
18371855
)
1838-
from githubkit.versions.v2022_11_28.models import (
1839-
ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody,
1840-
)
18411856
from githubkit.versions.v2022_11_28.models import (
18421857
ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403,
18431858
)
@@ -10054,6 +10069,9 @@
1005410069
"BillingPremiumRequestUsageReportOrgPropUsageItemsItems",
1005510070
"BillingUsageReport",
1005610071
"BillingUsageReportPropUsageItemsItems",
10072+
"BillingUsageSummaryReportOrg",
10073+
"BillingUsageSummaryReportOrgPropTimePeriod",
10074+
"BillingUsageSummaryReportOrgPropUsageItemsItems",
1005710075
"OrganizationFull",
1005810076
"OrganizationFullPropPlan",
1005910077
"ActionsCacheUsageOrgEnterprise",
@@ -10718,6 +10736,9 @@
1071810736
"BillingPremiumRequestUsageReportUserPropUsageItemsItems",
1071910737
"BillingUsageReportUser",
1072010738
"BillingUsageReportUserPropUsageItemsItems",
10739+
"BillingUsageSummaryReportUser",
10740+
"BillingUsageSummaryReportUserPropTimePeriod",
10741+
"BillingUsageSummaryReportUserPropUsageItemsItems",
1072110742
"EnterpriseWebhooks",
1072210743
"SimpleInstallation",
1072310744
"OrganizationSimpleWebhooks",
@@ -13052,7 +13073,6 @@
1305213073
"ProjectsProjectIdPatchBody",
1305313074
"ProjectsProjectIdPatchResponse403",
1305413075
"ProjectsProjectIdCollaboratorsUsernamePutBody",
13055-
"ProjectsProjectIdColumnsPostBody",
1305613076
"ReposOwnerRepoDeleteResponse403",
1305713077
"ReposOwnerRepoPatchBody",
1305813078
"ReposOwnerRepoPatchBodyPropSecurityAndAnalysis",

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 4687 additions & 4649 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0187.py

Lines changed: 82 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,97 @@
99

1010
from __future__ import annotations
1111

12-
from datetime import datetime
13-
from typing import Literal, Union
14-
1512
from pydantic import Field
1613

1714
from githubkit.compat import GitHubModel, model_rebuild
15+
from githubkit.typing import Missing
16+
from githubkit.utils import UNSET
17+
18+
19+
class BillingUsageSummaryReportGhe(GitHubModel):
20+
"""BillingUsageSummaryReportGhe"""
21+
22+
time_period: BillingUsageSummaryReportGhePropTimePeriod = Field(alias="timePeriod")
23+
enterprise: str = Field(description="The unique identifier of the enterprise.")
24+
organization: Missing[str] = Field(
25+
default=UNSET, description="The name of the organization for the usage report."
26+
)
27+
repository: Missing[str] = Field(
28+
default=UNSET, description="The name of the repository for the usage report."
29+
)
30+
product: Missing[str] = Field(
31+
default=UNSET, description="The product for the usage report."
32+
)
33+
sku: Missing[str] = Field(
34+
default=UNSET, description="The SKU for the usage report."
35+
)
36+
cost_center: Missing[BillingUsageSummaryReportGhePropCostCenter] = Field(
37+
default=UNSET, alias="costCenter"
38+
)
39+
usage_items: list[BillingUsageSummaryReportGhePropUsageItemsItems] = Field(
40+
alias="usageItems"
41+
)
1842

19-
from .group_0003 import SimpleUser
2043

44+
class BillingUsageSummaryReportGhePropTimePeriod(GitHubModel):
45+
"""BillingUsageSummaryReportGhePropTimePeriod"""
2146

22-
class Milestone(GitHubModel):
23-
"""Milestone
47+
year: int = Field(description="The year for the usage report.")
48+
month: Missing[int] = Field(
49+
default=UNSET, description="The month for the usage report."
50+
)
51+
day: Missing[int] = Field(
52+
default=UNSET, description="The day for the usage report."
53+
)
2454

25-
A collection of related issues and pull requests.
26-
"""
2755

28-
url: str = Field()
29-
html_url: str = Field()
30-
labels_url: str = Field()
31-
id: int = Field()
32-
node_id: str = Field()
33-
number: int = Field(description="The number of the milestone.")
34-
state: Literal["open", "closed"] = Field(
35-
default="open", description="The state of the milestone."
56+
class BillingUsageSummaryReportGhePropCostCenter(GitHubModel):
57+
"""BillingUsageSummaryReportGhePropCostCenter"""
58+
59+
id: str = Field(description="The unique identifier of the cost center.")
60+
name: str = Field(description="The name of the cost center.")
61+
62+
63+
class BillingUsageSummaryReportGhePropUsageItemsItems(GitHubModel):
64+
"""BillingUsageSummaryReportGhePropUsageItemsItems"""
65+
66+
product: str = Field(description="Product name.")
67+
sku: str = Field(description="SKU name.")
68+
unit_type: str = Field(
69+
alias="unitType", description="Unit type of the usage line item."
70+
)
71+
price_per_unit: float = Field(
72+
alias="pricePerUnit", description="Price per unit of the usage line item."
73+
)
74+
gross_quantity: float = Field(
75+
alias="grossQuantity", description="Gross quantity of the usage line item."
76+
)
77+
gross_amount: float = Field(
78+
alias="grossAmount", description="Gross amount of the usage line item."
79+
)
80+
discount_quantity: float = Field(
81+
alias="discountQuantity",
82+
description="Discount quantity of the usage line item.",
83+
)
84+
discount_amount: float = Field(
85+
alias="discountAmount", description="Discount amount of the usage line item."
86+
)
87+
net_quantity: float = Field(
88+
alias="netQuantity", description="Net quantity of the usage line item."
89+
)
90+
net_amount: float = Field(
91+
alias="netAmount", description="Net amount of the usage line item."
3692
)
37-
title: str = Field(description="The title of the milestone.")
38-
description: Union[str, None] = Field()
39-
creator: Union[None, SimpleUser] = Field()
40-
open_issues: int = Field()
41-
closed_issues: int = Field()
42-
created_at: datetime = Field()
43-
updated_at: datetime = Field()
44-
closed_at: Union[datetime, None] = Field()
45-
due_on: Union[datetime, None] = Field()
4693

4794

48-
model_rebuild(Milestone)
95+
model_rebuild(BillingUsageSummaryReportGhe)
96+
model_rebuild(BillingUsageSummaryReportGhePropTimePeriod)
97+
model_rebuild(BillingUsageSummaryReportGhePropCostCenter)
98+
model_rebuild(BillingUsageSummaryReportGhePropUsageItemsItems)
4999

50-
__all__ = ("Milestone",)
100+
__all__ = (
101+
"BillingUsageSummaryReportGhe",
102+
"BillingUsageSummaryReportGhePropCostCenter",
103+
"BillingUsageSummaryReportGhePropTimePeriod",
104+
"BillingUsageSummaryReportGhePropUsageItemsItems",
105+
)

githubkit/versions/ghec_v2022_11_28/models/group_0188.py

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,36 @@
1515
from pydantic import Field
1616

1717
from githubkit.compat import GitHubModel, model_rebuild
18-
from githubkit.typing import Missing
19-
from githubkit.utils import UNSET
2018

19+
from .group_0003 import SimpleUser
2120

22-
class IssueType(GitHubModel):
23-
"""Issue Type
2421

25-
The type of issue.
22+
class Milestone(GitHubModel):
23+
"""Milestone
24+
25+
A collection of related issues and pull requests.
2626
"""
2727

28-
id: int = Field(description="The unique identifier of the issue type.")
29-
node_id: str = Field(description="The node identifier of the issue type.")
30-
name: str = Field(description="The name of the issue type.")
31-
description: Union[str, None] = Field(
32-
description="The description of the issue type."
33-
)
34-
color: Missing[
35-
Union[
36-
None,
37-
Literal[
38-
"gray", "blue", "green", "yellow", "orange", "red", "pink", "purple"
39-
],
40-
]
41-
] = Field(default=UNSET, description="The color of the issue type.")
42-
created_at: Missing[datetime] = Field(
43-
default=UNSET, description="The time the issue type created."
44-
)
45-
updated_at: Missing[datetime] = Field(
46-
default=UNSET, description="The time the issue type last updated."
47-
)
48-
is_enabled: Missing[bool] = Field(
49-
default=UNSET, description="The enabled state of the issue type."
28+
url: str = Field()
29+
html_url: str = Field()
30+
labels_url: str = Field()
31+
id: int = Field()
32+
node_id: str = Field()
33+
number: int = Field(description="The number of the milestone.")
34+
state: Literal["open", "closed"] = Field(
35+
default="open", description="The state of the milestone."
5036
)
37+
title: str = Field(description="The title of the milestone.")
38+
description: Union[str, None] = Field()
39+
creator: Union[None, SimpleUser] = Field()
40+
open_issues: int = Field()
41+
closed_issues: int = Field()
42+
created_at: datetime = Field()
43+
updated_at: datetime = Field()
44+
closed_at: Union[datetime, None] = Field()
45+
due_on: Union[datetime, None] = Field()
5146

5247

53-
model_rebuild(IssueType)
48+
model_rebuild(Milestone)
5449

55-
__all__ = ("IssueType",)
50+
__all__ = ("Milestone",)

githubkit/versions/ghec_v2022_11_28/models/group_0189.py

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,47 @@
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
15-
16-
17-
class ReactionRollup(GitHubModel):
18-
"""Reaction Rollup"""
19-
20-
url: str = Field()
21-
total_count: int = Field()
22-
plus_one: int = Field(alias="+1")
23-
minus_one: int = Field(alias="-1")
24-
laugh: int = Field()
25-
confused: int = Field()
26-
heart: int = Field()
27-
hooray: int = Field()
28-
eyes: int = Field()
29-
rocket: int = Field()
30-
31-
32-
model_rebuild(ReactionRollup)
33-
34-
__all__ = ("ReactionRollup",)
18+
from githubkit.typing import Missing
19+
from githubkit.utils import UNSET
20+
21+
22+
class IssueType(GitHubModel):
23+
"""Issue Type
24+
25+
The type of issue.
26+
"""
27+
28+
id: int = Field(description="The unique identifier of the issue type.")
29+
node_id: str = Field(description="The node identifier of the issue type.")
30+
name: str = Field(description="The name of the issue type.")
31+
description: Union[str, None] = Field(
32+
description="The description of the issue type."
33+
)
34+
color: Missing[
35+
Union[
36+
None,
37+
Literal[
38+
"gray", "blue", "green", "yellow", "orange", "red", "pink", "purple"
39+
],
40+
]
41+
] = Field(default=UNSET, description="The color of the issue type.")
42+
created_at: Missing[datetime] = Field(
43+
default=UNSET, description="The time the issue type created."
44+
)
45+
updated_at: Missing[datetime] = Field(
46+
default=UNSET, description="The time the issue type last updated."
47+
)
48+
is_enabled: Missing[bool] = Field(
49+
default=UNSET, description="The enabled state of the issue type."
50+
)
51+
52+
53+
model_rebuild(IssueType)
54+
55+
__all__ = ("IssueType",)

githubkit/versions/ghec_v2022_11_28/models/group_0190.py

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,21 @@
1414
from githubkit.compat import GitHubModel, model_rebuild
1515

1616

17-
class SubIssuesSummary(GitHubModel):
18-
"""Sub-issues Summary"""
17+
class ReactionRollup(GitHubModel):
18+
"""Reaction Rollup"""
1919

20-
total: int = Field()
21-
completed: int = Field()
22-
percent_completed: int = Field()
20+
url: str = Field()
21+
total_count: int = Field()
22+
plus_one: int = Field(alias="+1")
23+
minus_one: int = Field(alias="-1")
24+
laugh: int = Field()
25+
confused: int = Field()
26+
heart: int = Field()
27+
hooray: int = Field()
28+
eyes: int = Field()
29+
rocket: int = Field()
2330

2431

25-
class IssueDependenciesSummary(GitHubModel):
26-
"""Issue Dependencies Summary"""
32+
model_rebuild(ReactionRollup)
2733

28-
blocked_by: int = Field()
29-
blocking: int = Field()
30-
total_blocked_by: int = Field()
31-
total_blocking: int = Field()
32-
33-
34-
model_rebuild(SubIssuesSummary)
35-
model_rebuild(IssueDependenciesSummary)
36-
37-
__all__ = (
38-
"IssueDependenciesSummary",
39-
"SubIssuesSummary",
40-
)
34+
__all__ = ("ReactionRollup",)

0 commit comments

Comments
 (0)