Skip to content

Commit 75722e3

Browse files
authored
👽 re-generate openapi models
1 parent 4fd53da commit 75722e3

File tree

2,962 files changed

+136292
-134514
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,962 files changed

+136292
-134514
lines changed

githubkit/rest/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,9 +2502,6 @@
25022502
from githubkit.versions.v2022_11_28.models import (
25032503
WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated,
25042504
)
2505-
from githubkit.versions.v2022_11_28.models import (
2506-
WebhookSecretScanningAlertRevoked as WebhookSecretScanningAlertRevoked,
2507-
)
25082505
from githubkit.versions.v2022_11_28.models import (
25092506
WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor,
25102507
)
@@ -4311,9 +4308,6 @@
43114308
from githubkit.versions.v2022_11_28.models import (
43124309
WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun,
43134310
)
4314-
from githubkit.versions.v2022_11_28.models import (
4315-
WebhookForkPropForkeeAllof0PropCustomProperties as WebhookForkPropForkeeAllof0PropCustomProperties,
4316-
)
43174311
from githubkit.versions.v2022_11_28.models import (
43184312
WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone,
43194313
)
@@ -10310,7 +10304,6 @@
1031010304
"WebhookForkPropForkeeAllof0",
1031110305
"WebhookForkPropForkeeAllof0PropLicense",
1031210306
"WebhookForkPropForkeeAllof0PropOwner",
10313-
"WebhookForkPropForkeeAllof0PropCustomProperties",
1031410307
"WebhookForkPropForkeeAllof0PropPermissions",
1031510308
"WebhookForkPropForkeeAllof1",
1031610309
"WebhookForkPropForkeeAllof1PropLicense",
@@ -11825,7 +11818,6 @@
1182511818
"WebhookSecretScanningAlertLocationCreatedFormEncoded",
1182611819
"WebhookSecretScanningAlertReopened",
1182711820
"WebhookSecretScanningAlertResolved",
11828-
"WebhookSecretScanningAlertRevoked",
1182911821
"WebhookSecretScanningAlertValidated",
1183011822
"WebhookSecurityAdvisoryPublished",
1183111823
"WebhookSecurityAdvisoryUpdated",

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 4356 additions & 4276 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0008.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
from pydantic import Field
1616

17+
from githubkit.utils import UNSET
18+
from githubkit.typing import Missing
1719
from githubkit.compat import GitHubModel, model_rebuild
1820

1921

@@ -48,6 +50,9 @@ class HookDeliveryItem(GitHubModel):
4850
repository_id: Union[int, None] = Field(
4951
description="The id of the repository associated with this event."
5052
)
53+
throttled_at: Missing[Union[datetime, None]] = Field(
54+
default=UNSET, description="Time when the webhook delivery was throttled."
55+
)
5156

5257

5358
model_rebuild(HookDeliveryItem)

githubkit/versions/ghec_v2022_11_28/models/group_0011.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class HookDelivery(GitHubModel):
4646
repository_id: Union[int, None] = Field(
4747
description="The id of the repository associated with this event."
4848
)
49+
throttled_at: Missing[Union[datetime, None]] = Field(
50+
default=UNSET, description="Time when the webhook delivery was throttled."
51+
)
4952
url: Missing[str] = Field(
5053
default=UNSET, description="The URL target of the delivery."
5154
)

githubkit/versions/ghec_v2022_11_28/models/group_0057.py

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,44 @@
99

1010
from __future__ import annotations
1111

12+
from typing import List
13+
1214
from pydantic import Field
1315

16+
from githubkit.utils import UNSET
17+
from githubkit.typing import Missing
1418
from githubkit.compat import GitHubModel, model_rebuild
1519

1620

17-
class PackagesBillingUsage(GitHubModel):
18-
"""PackagesBillingUsage"""
21+
class GetAllCostCenters(GitHubModel):
22+
"""GetAllCostCenters"""
1923

20-
total_gigabytes_bandwidth_used: int = Field(
21-
description="Sum of the free and paid storage space (GB) for GitHuub Packages."
22-
)
23-
total_paid_gigabytes_bandwidth_used: int = Field(
24-
description="Total paid storage space (GB) for GitHuub Packages."
25-
)
26-
included_gigabytes_bandwidth: int = Field(
27-
description="Free storage space (GB) for GitHub Packages."
24+
cost_centers: Missing[List[GetAllCostCentersPropCostCentersItems]] = Field(
25+
default=UNSET, alias="costCenters"
2826
)
2927

3028

31-
model_rebuild(PackagesBillingUsage)
29+
class GetAllCostCentersPropCostCentersItems(GitHubModel):
30+
"""GetAllCostCentersPropCostCentersItems"""
31+
32+
id: str = Field(description="ID of the cost center.")
33+
name: str = Field(description="Name of the cost center.")
34+
resources: List[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field()
35+
36+
37+
class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel):
38+
"""GetAllCostCentersPropCostCentersItemsPropResourcesItems"""
39+
40+
type: str = Field(description="Type of the resource.")
41+
name: str = Field(description="Name of the resource.")
42+
43+
44+
model_rebuild(GetAllCostCenters)
45+
model_rebuild(GetAllCostCentersPropCostCentersItems)
46+
model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems)
3247

33-
__all__ = ("PackagesBillingUsage",)
48+
__all__ = (
49+
"GetAllCostCenters",
50+
"GetAllCostCentersPropCostCentersItems",
51+
"GetAllCostCentersPropCostCentersItemsPropResourcesItems",
52+
)

githubkit/versions/ghec_v2022_11_28/models/group_0058.py

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

1616

17-
class CombinedBillingUsage(GitHubModel):
18-
"""CombinedBillingUsage"""
17+
class PackagesBillingUsage(GitHubModel):
18+
"""PackagesBillingUsage"""
1919

20-
days_left_in_billing_cycle: int = Field(
21-
description="Numbers of days left in billing cycle."
20+
total_gigabytes_bandwidth_used: int = Field(
21+
description="Sum of the free and paid storage space (GB) for GitHuub Packages."
2222
)
23-
estimated_paid_storage_for_month: int = Field(
24-
description="Estimated storage space (GB) used in billing cycle."
23+
total_paid_gigabytes_bandwidth_used: int = Field(
24+
description="Total paid storage space (GB) for GitHuub Packages."
2525
)
26-
estimated_storage_for_month: int = Field(
27-
description="Estimated sum of free and paid storage space (GB) used in billing cycle."
26+
included_gigabytes_bandwidth: int = Field(
27+
description="Free storage space (GB) for GitHub Packages."
2828
)
2929

3030

31-
model_rebuild(CombinedBillingUsage)
31+
model_rebuild(PackagesBillingUsage)
3232

33-
__all__ = ("CombinedBillingUsage",)
33+
__all__ = ("PackagesBillingUsage",)

githubkit/versions/ghec_v2022_11_28/models/group_0059.py

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,25 @@
99

1010
from __future__ import annotations
1111

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

1714
from githubkit.compat import GitHubModel, model_rebuild
1815

19-
from .group_0001 import SimpleUser
20-
21-
22-
class Milestone(GitHubModel):
23-
"""Milestone
2416

25-
A collection of related issues and pull requests.
26-
"""
17+
class CombinedBillingUsage(GitHubModel):
18+
"""CombinedBillingUsage"""
2719

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."
20+
days_left_in_billing_cycle: int = Field(
21+
description="Numbers of days left in billing cycle."
22+
)
23+
estimated_paid_storage_for_month: int = Field(
24+
description="Estimated storage space (GB) used in billing cycle."
25+
)
26+
estimated_storage_for_month: int = Field(
27+
description="Estimated sum of free and paid storage space (GB) used in billing cycle."
3628
)
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()
4629

4730

48-
model_rebuild(Milestone)
31+
model_rebuild(CombinedBillingUsage)
4932

50-
__all__ = ("Milestone",)
33+
__all__ = ("CombinedBillingUsage",)

githubkit/versions/ghec_v2022_11_28/models/group_0060.py

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,57 @@
99

1010
from __future__ import annotations
1111

12+
from typing import List
13+
1214
from pydantic import Field
1315

16+
from githubkit.utils import UNSET
17+
from githubkit.typing import Missing
1418
from githubkit.compat import GitHubModel, model_rebuild
1519

1620

17-
class ReactionRollup(GitHubModel):
18-
"""Reaction Rollup"""
21+
class BillingUsageReport(GitHubModel):
22+
"""BillingUsageReport"""
23+
24+
usage_items: Missing[List[BillingUsageReportPropUsageItemsItems]] = Field(
25+
default=UNSET, alias="usageItems"
26+
)
27+
28+
29+
class BillingUsageReportPropUsageItemsItems(GitHubModel):
30+
"""BillingUsageReportPropUsageItemsItems"""
1931

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()
32+
date: str = Field(description="Date of the usage line item.")
33+
product: str = Field(description="Product name.")
34+
sku: str = Field(description="SKU name.")
35+
quantity: int = Field(description="Quantity of the usage line item.")
36+
unit_type: str = Field(
37+
alias="unitType", description="Unit type of the usage line item."
38+
)
39+
price_per_unit: float = Field(
40+
alias="pricePerUnit", description="Price per unit of the usage line item."
41+
)
42+
gross_amount: float = Field(
43+
alias="grossAmount", description="Gross amount of the usage line item."
44+
)
45+
discount_amount: float = Field(
46+
alias="discountAmount", description="Discount amount of the usage line item."
47+
)
48+
net_amount: float = Field(
49+
alias="netAmount", description="Net amount of the usage line item."
50+
)
51+
organization_name: str = Field(
52+
alias="organizationName", description="Name of the organization."
53+
)
54+
repository_name: Missing[str] = Field(
55+
default=UNSET, alias="repositoryName", description="Name of the repository."
56+
)
3057

3158

32-
model_rebuild(ReactionRollup)
59+
model_rebuild(BillingUsageReport)
60+
model_rebuild(BillingUsageReportPropUsageItemsItems)
3361

34-
__all__ = ("ReactionRollup",)
62+
__all__ = (
63+
"BillingUsageReport",
64+
"BillingUsageReportPropUsageItemsItems",
65+
)

0 commit comments

Comments
 (0)