Skip to content

Commit 90d5202

Browse files
committed
👽 re-generate openapi models and apis
1 parent 6c07362 commit 90d5202

File tree

5,316 files changed

+371764
-371274
lines changed

Some content is hidden

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

5,316 files changed

+371764
-371274
lines changed

githubkit/rest/__init__.py

Lines changed: 76 additions & 44 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 5098 additions & 5118 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0017.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class AppPermissions(GitHubModel):
3636
default=UNSET,
3737
description="The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
3838
)
39+
artifact_metadata: Missing[Literal["read", "write"]] = Field(
40+
default=UNSET,
41+
description="The level of permission to grant the access token to create and retrieve build artifact metadata records.",
42+
)
3943
attestations: Missing[Literal["read", "write"]] = Field(
4044
default=UNSET,
4145
description="The level of permission to create and retrieve the access token for repository attestations.",

githubkit/versions/ghec_v2022_11_28/models/group_0030.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@
1212
from pydantic import Field
1313

1414
from githubkit.compat import GitHubModel, model_rebuild
15+
from githubkit.typing import Missing
16+
from githubkit.utils import UNSET
1517

1618

17-
class ActionsCacheUsageOrgEnterprise(GitHubModel):
18-
"""ActionsCacheUsageOrgEnterprise"""
19+
class ActionsCacheRetentionLimitForEnterprise(GitHubModel):
20+
"""Actions cache retention limit for an enterprise
1921
20-
total_active_caches_count: int = Field(
21-
description="The count of active caches across all repositories of an enterprise or an organization."
22-
)
23-
total_active_caches_size_in_bytes: int = Field(
24-
description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization."
22+
GitHub Actions cache retention policy for an enterprise.
23+
"""
24+
25+
max_cache_retention_days: Missing[int] = Field(
26+
default=UNSET,
27+
description="For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained.",
2528
)
2629

2730

28-
model_rebuild(ActionsCacheUsageOrgEnterprise)
31+
model_rebuild(ActionsCacheRetentionLimitForEnterprise)
2932

30-
__all__ = ("ActionsCacheUsageOrgEnterprise",)
33+
__all__ = ("ActionsCacheRetentionLimitForEnterprise",)

githubkit/versions/ghec_v2022_11_28/models/group_0031.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,22 @@
1212
from pydantic import Field
1313

1414
from githubkit.compat import GitHubModel, model_rebuild
15+
from githubkit.typing import Missing
16+
from githubkit.utils import UNSET
1517

1618

17-
class ActionsHostedRunnerMachineSpec(GitHubModel):
18-
"""Github-owned VM details.
19+
class ActionsCacheStorageLimitForEnterprise(GitHubModel):
20+
"""Actions cache storage limit for an enterprise
1921
20-
Provides details of a particular machine spec.
22+
GitHub Actions cache storage policy for an enterprise.
2123
"""
2224

23-
id: str = Field(
24-
description="The ID used for the `size` parameter when creating a new runner."
25-
)
26-
cpu_cores: int = Field(description="The number of cores.")
27-
memory_gb: int = Field(description="The available RAM for the machine spec.")
28-
storage_gb: int = Field(
29-
description="The available SSD storage for the machine spec."
25+
max_cache_size_gb: Missing[int] = Field(
26+
default=UNSET,
27+
description="For repositories & organizations in an enterprise, the maximum size limit for the sum of all caches in a repository, in gigabytes.",
3028
)
3129

3230

33-
model_rebuild(ActionsHostedRunnerMachineSpec)
31+
model_rebuild(ActionsCacheStorageLimitForEnterprise)
3432

35-
__all__ = ("ActionsHostedRunnerMachineSpec",)
33+
__all__ = ("ActionsCacheStorageLimitForEnterprise",)

githubkit/versions/ghec_v2022_11_28/models/group_0032.py

Lines changed: 8 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -9,102 +9,22 @@
99

1010
from __future__ import annotations
1111

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

1714
from githubkit.compat import GitHubModel, model_rebuild
18-
from githubkit.typing import Missing
19-
from githubkit.utils import UNSET
20-
21-
from .group_0031 import ActionsHostedRunnerMachineSpec
22-
2315

24-
class ActionsHostedRunner(GitHubModel):
25-
"""GitHub-hosted hosted runner
2616

27-
A Github-hosted hosted runner.
28-
"""
29-
30-
id: int = Field(description="The unique identifier of the hosted runner.")
31-
name: str = Field(description="The name of the hosted runner.")
32-
runner_group_id: Missing[int] = Field(
33-
default=UNSET,
34-
description="The unique identifier of the group that the hosted runner belongs to.",
35-
)
36-
image_details: Union[None, ActionsHostedRunnerPoolImage] = Field()
37-
machine_size_details: ActionsHostedRunnerMachineSpec = Field(
38-
title="Github-owned VM details.",
39-
description="Provides details of a particular machine spec.",
40-
)
41-
status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] = Field(
42-
description="The status of the runner."
43-
)
44-
platform: str = Field(description="The operating system of the image.")
45-
maximum_runners: Missing[int] = Field(
46-
default=UNSET,
47-
description="The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.",
48-
)
49-
public_ip_enabled: bool = Field(
50-
description="Whether public IP is enabled for the hosted runners."
51-
)
52-
public_ips: Missing[list[PublicIp]] = Field(
53-
default=UNSET,
54-
description="The public IP ranges when public IP is enabled for the hosted runners.",
55-
)
56-
last_active_on: Missing[Union[_dt.datetime, None]] = Field(
57-
default=UNSET,
58-
description="The time at which the runner was last used, in ISO 8601 format.",
59-
)
60-
image_gen: Missing[bool] = Field(
61-
default=UNSET,
62-
description="Whether custom image generation is enabled for the hosted runners.",
63-
)
17+
class ActionsCacheUsageOrgEnterprise(GitHubModel):
18+
"""ActionsCacheUsageOrgEnterprise"""
6419

65-
66-
class ActionsHostedRunnerPoolImage(GitHubModel):
67-
"""GitHub-hosted runner image details.
68-
69-
Provides details of a hosted runner image
70-
"""
71-
72-
id: str = Field(
73-
description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
74-
)
75-
size_gb: int = Field(description="Image size in GB.")
76-
display_name: str = Field(description="Display name for this image.")
77-
source: Literal["github", "partner", "custom"] = Field(
78-
description="The image provider."
79-
)
80-
version: Missing[str] = Field(
81-
default=UNSET, description="The image version of the hosted runner pool."
82-
)
83-
84-
85-
class PublicIp(GitHubModel):
86-
"""Public IP for a GitHub-hosted larger runners.
87-
88-
Provides details of Public IP for a GitHub-hosted larger runners
89-
"""
90-
91-
enabled: Missing[bool] = Field(
92-
default=UNSET, description="Whether public IP is enabled."
93-
)
94-
prefix: Missing[str] = Field(
95-
default=UNSET, description="The prefix for the public IP."
20+
total_active_caches_count: int = Field(
21+
description="The count of active caches across all repositories of an enterprise or an organization."
9622
)
97-
length: Missing[int] = Field(
98-
default=UNSET, description="The length of the IP prefix."
23+
total_active_caches_size_in_bytes: int = Field(
24+
description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization."
9925
)
10026

10127

102-
model_rebuild(ActionsHostedRunner)
103-
model_rebuild(ActionsHostedRunnerPoolImage)
104-
model_rebuild(PublicIp)
28+
model_rebuild(ActionsCacheUsageOrgEnterprise)
10529

106-
__all__ = (
107-
"ActionsHostedRunner",
108-
"ActionsHostedRunnerPoolImage",
109-
"PublicIp",
110-
)
30+
__all__ = ("ActionsCacheUsageOrgEnterprise",)

githubkit/versions/ghec_v2022_11_28/models/group_0033.py

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

1616

17-
class ActionsHostedRunnerCustomImage(GitHubModel):
18-
"""GitHub-hosted runner custom image details
17+
class ActionsHostedRunnerMachineSpec(GitHubModel):
18+
"""Github-owned VM details.
1919
20-
Provides details of a custom runner image
20+
Provides details of a particular machine spec.
2121
"""
2222

23-
id: int = Field(
24-
description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
23+
id: str = Field(
24+
description="The ID used for the `size` parameter when creating a new runner."
2525
)
26-
platform: str = Field(description="The operating system of the image.")
27-
total_versions_size: int = Field(
28-
description="Total size of all the image versions in GB."
29-
)
30-
name: str = Field(description="Display name for this image.")
31-
source: str = Field(description="The image provider.")
32-
versions_count: int = Field(
33-
description="The number of image versions associated with the image."
34-
)
35-
latest_version: str = Field(
36-
description="The latest image version associated with the image."
37-
)
38-
state: str = Field(
39-
description="The number of image versions associated with the image."
26+
cpu_cores: int = Field(description="The number of cores.")
27+
memory_gb: int = Field(description="The available RAM for the machine spec.")
28+
storage_gb: int = Field(
29+
description="The available SSD storage for the machine spec."
4030
)
4131

4232

43-
model_rebuild(ActionsHostedRunnerCustomImage)
33+
model_rebuild(ActionsHostedRunnerMachineSpec)
4434

45-
__all__ = ("ActionsHostedRunnerCustomImage",)
35+
__all__ = ("ActionsHostedRunnerMachineSpec",)

githubkit/versions/ghec_v2022_11_28/models/group_0034.py

Lines changed: 88 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,102 @@
99

1010
from __future__ import annotations
1111

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

1417
from githubkit.compat import GitHubModel, model_rebuild
18+
from githubkit.typing import Missing
19+
from githubkit.utils import UNSET
20+
21+
from .group_0033 import ActionsHostedRunnerMachineSpec
22+
23+
24+
class ActionsHostedRunner(GitHubModel):
25+
"""GitHub-hosted hosted runner
26+
27+
A Github-hosted hosted runner.
28+
"""
29+
30+
id: int = Field(description="The unique identifier of the hosted runner.")
31+
name: str = Field(description="The name of the hosted runner.")
32+
runner_group_id: Missing[int] = Field(
33+
default=UNSET,
34+
description="The unique identifier of the group that the hosted runner belongs to.",
35+
)
36+
image_details: Union[None, ActionsHostedRunnerPoolImage] = Field()
37+
machine_size_details: ActionsHostedRunnerMachineSpec = Field(
38+
title="Github-owned VM details.",
39+
description="Provides details of a particular machine spec.",
40+
)
41+
status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] = Field(
42+
description="The status of the runner."
43+
)
44+
platform: str = Field(description="The operating system of the image.")
45+
maximum_runners: Missing[int] = Field(
46+
default=UNSET,
47+
description="The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.",
48+
)
49+
public_ip_enabled: bool = Field(
50+
description="Whether public IP is enabled for the hosted runners."
51+
)
52+
public_ips: Missing[list[PublicIp]] = Field(
53+
default=UNSET,
54+
description="The public IP ranges when public IP is enabled for the hosted runners.",
55+
)
56+
last_active_on: Missing[Union[_dt.datetime, None]] = Field(
57+
default=UNSET,
58+
description="The time at which the runner was last used, in ISO 8601 format.",
59+
)
60+
image_gen: Missing[bool] = Field(
61+
default=UNSET,
62+
description="Whether custom image generation is enabled for the hosted runners.",
63+
)
64+
65+
66+
class ActionsHostedRunnerPoolImage(GitHubModel):
67+
"""GitHub-hosted runner image details.
68+
69+
Provides details of a hosted runner image
70+
"""
71+
72+
id: str = Field(
73+
description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
74+
)
75+
size_gb: int = Field(description="Image size in GB.")
76+
display_name: str = Field(description="Display name for this image.")
77+
source: Literal["github", "partner", "custom"] = Field(
78+
description="The image provider."
79+
)
80+
version: Missing[str] = Field(
81+
default=UNSET, description="The image version of the hosted runner pool."
82+
)
1583

1684

17-
class ActionsHostedRunnerCustomImageVersion(GitHubModel):
18-
"""GitHub-hosted runner custom image version details.
85+
class PublicIp(GitHubModel):
86+
"""Public IP for a GitHub-hosted larger runners.
1987
20-
Provides details of a hosted runner custom image version
88+
Provides details of Public IP for a GitHub-hosted larger runners
2189
"""
2290

23-
version: str = Field(description="The version of image.")
24-
state: str = Field(description="The state of image version.")
25-
size_gb: int = Field(description="Image version size in GB.")
26-
created_on: str = Field(description="The creation date time of the image version.")
27-
state_details: str = Field(description="The image version status details.")
91+
enabled: Missing[bool] = Field(
92+
default=UNSET, description="Whether public IP is enabled."
93+
)
94+
prefix: Missing[str] = Field(
95+
default=UNSET, description="The prefix for the public IP."
96+
)
97+
length: Missing[int] = Field(
98+
default=UNSET, description="The length of the IP prefix."
99+
)
28100

29101

30-
model_rebuild(ActionsHostedRunnerCustomImageVersion)
102+
model_rebuild(ActionsHostedRunner)
103+
model_rebuild(ActionsHostedRunnerPoolImage)
104+
model_rebuild(PublicIp)
31105

32-
__all__ = ("ActionsHostedRunnerCustomImageVersion",)
106+
__all__ = (
107+
"ActionsHostedRunner",
108+
"ActionsHostedRunnerPoolImage",
109+
"PublicIp",
110+
)

githubkit/versions/ghec_v2022_11_28/models/group_0035.py

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

1010
from __future__ import annotations
1111

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

1614
from githubkit.compat import GitHubModel, model_rebuild
1715

1816

19-
class ActionsHostedRunnerCuratedImage(GitHubModel):
20-
"""GitHub-hosted runner image details.
17+
class ActionsHostedRunnerCustomImage(GitHubModel):
18+
"""GitHub-hosted runner custom image details
2119
22-
Provides details of a hosted runner image
20+
Provides details of a custom runner image
2321
"""
2422

25-
id: str = Field(
23+
id: int = Field(
2624
description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner."
2725
)
2826
platform: str = Field(description="The operating system of the image.")
29-
size_gb: int = Field(description="Image size in GB.")
30-
display_name: str = Field(description="Display name for this image.")
31-
source: Literal["github", "partner", "custom"] = Field(
32-
description="The image provider."
27+
total_versions_size: int = Field(
28+
description="Total size of all the image versions in GB."
29+
)
30+
name: str = Field(description="Display name for this image.")
31+
source: str = Field(description="The image provider.")
32+
versions_count: int = Field(
33+
description="The number of image versions associated with the image."
34+
)
35+
latest_version: str = Field(
36+
description="The latest image version associated with the image."
37+
)
38+
state: str = Field(
39+
description="The number of image versions associated with the image."
3340
)
3441

3542

36-
model_rebuild(ActionsHostedRunnerCuratedImage)
43+
model_rebuild(ActionsHostedRunnerCustomImage)
3744

38-
__all__ = ("ActionsHostedRunnerCuratedImage",)
45+
__all__ = ("ActionsHostedRunnerCustomImage",)

0 commit comments

Comments
 (0)