Skip to content

Commit b79cd14

Browse files
authored
👽 re-generate openapi models
1 parent ce686be commit b79cd14

File tree

4,408 files changed

+229009
-224362
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,408 files changed

+229009
-224362
lines changed

githubkit/rest/__init__.py

Lines changed: 112 additions & 0 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 4548 additions & 4426 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0057.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CopilotSeatDetails(GitHubModel):
5353
)
5454
updated_at: Missing[datetime] = Field(
5555
default=UNSET,
56-
description="Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.",
56+
description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.",
5757
)
5858
plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field(
5959
default=UNSET,

githubkit/versions/ghec_v2022_11_28/models/group_0066.py

Lines changed: 33 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -9,103 +9,58 @@
99

1010
from __future__ import annotations
1111

12-
from datetime import datetime
13-
from typing import Literal, Union
12+
from typing import Annotated, Literal, Union
1413

1514
from pydantic import Field
1615

17-
from githubkit.compat import GitHubModel, model_rebuild
16+
from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
1817
from githubkit.typing import Missing
1918
from githubkit.utils import UNSET
2019

21-
from .group_0002 import SimpleUser
22-
from .group_0051 import SimpleRepository
2320

21+
class CustomProperty(GitHubModel):
22+
"""Organization Custom Property
2423
25-
class OrganizationSecretScanningAlert(GitHubModel):
26-
"""OrganizationSecretScanningAlert"""
24+
Custom property defined on an organization
25+
"""
2726

28-
number: Missing[int] = Field(
29-
default=UNSET, description="The security alert number."
30-
)
31-
created_at: Missing[datetime] = Field(
32-
default=UNSET,
33-
description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
34-
)
35-
updated_at: Missing[Union[None, datetime]] = Field(default=UNSET)
27+
property_name: str = Field(description="The name of the property")
3628
url: Missing[str] = Field(
37-
default=UNSET, description="The REST API URL of the alert resource."
38-
)
39-
html_url: Missing[str] = Field(
40-
default=UNSET, description="The GitHub URL of the alert resource."
41-
)
42-
locations_url: Missing[str] = Field(
4329
default=UNSET,
44-
description="The REST API URL of the code locations for this alert.",
30+
description="The URL that can be used to fetch, update, or delete info about this property via the API.",
4531
)
46-
state: Missing[Literal["open", "resolved"]] = Field(
47-
default=UNSET,
48-
description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
32+
source_type: Missing[Literal["organization", "enterprise"]] = Field(
33+
default=UNSET, description="The source type of the property"
4934
)
50-
resolution: Missing[
51-
Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]]
52-
] = Field(
53-
default=UNSET,
54-
description="**Required when the `state` is `resolved`.** The reason for resolving the alert.",
55-
)
56-
resolved_at: Missing[Union[datetime, None]] = Field(
57-
default=UNSET,
58-
description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
35+
value_type: Literal["string", "single_select", "multi_select", "true_false"] = (
36+
Field(description="The type of the value for the property")
5937
)
60-
resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
61-
secret_type: Missing[str] = Field(
62-
default=UNSET, description="The type of secret that secret scanning detected."
38+
required: Missing[bool] = Field(
39+
default=UNSET, description="Whether the property is required."
6340
)
64-
secret_type_display_name: Missing[str] = Field(
65-
default=UNSET,
66-
description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."',
67-
)
68-
secret: Missing[str] = Field(
69-
default=UNSET, description="The secret that was detected."
41+
default_value: Missing[Union[str, list[str], None]] = Field(
42+
default=UNSET, description="Default value of the property"
7043
)
71-
repository: Missing[SimpleRepository] = Field(
72-
default=UNSET, title="Simple Repository", description="A GitHub repository."
44+
description: Missing[Union[str, None]] = Field(
45+
default=UNSET, description="Short description of the property"
7346
)
74-
push_protection_bypassed: Missing[Union[bool, None]] = Field(
75-
default=UNSET,
76-
description="Whether push protection was bypassed for the detected secret.",
77-
)
78-
push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
79-
push_protection_bypassed_at: Missing[Union[datetime, None]] = Field(
80-
default=UNSET,
81-
description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
82-
)
83-
push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field(
84-
default=UNSET
85-
)
86-
push_protection_bypass_request_comment: Missing[Union[str, None]] = Field(
87-
default=UNSET,
88-
description="An optional comment when requesting a push protection bypass.",
89-
)
90-
push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field(
91-
default=UNSET, description="The URL to a push protection bypass request."
92-
)
93-
resolution_comment: Missing[Union[str, None]] = Field(
94-
default=UNSET,
95-
description="The comment that was optionally added when this alert was closed",
96-
)
97-
validity: Missing[Literal["active", "inactive", "unknown"]] = Field(
98-
default=UNSET, description="The token status as of the latest validity check."
99-
)
100-
publicly_leaked: Missing[Union[bool, None]] = Field(
101-
default=UNSET, description="Whether the secret was publicly leaked."
102-
)
103-
multi_repo: Missing[Union[bool, None]] = Field(
47+
allowed_values: Missing[
48+
Union[
49+
Annotated[
50+
list[Annotated[str, Field(max_length=75)]],
51+
Field(max_length=200 if PYDANTIC_V2 else None),
52+
],
53+
None,
54+
]
55+
] = Field(
10456
default=UNSET,
105-
description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.",
57+
description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.",
10658
)
59+
values_editable_by: Missing[
60+
Union[None, Literal["org_actors", "org_and_repo_actors"]]
61+
] = Field(default=UNSET, description="Who can edit the values of the property")
10762

10863

109-
model_rebuild(OrganizationSecretScanningAlert)
64+
model_rebuild(CustomProperty)
11065

111-
__all__ = ("OrganizationSecretScanningAlert",)
66+
__all__ = ("CustomProperty",)

githubkit/versions/ghec_v2022_11_28/models/group_0067.py

Lines changed: 62 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -9,99 +9,103 @@
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_0002 import SimpleUser
22+
from .group_0051 import SimpleRepository
23+
1824

19-
class ActionsBillingUsage(GitHubModel):
20-
"""ActionsBillingUsage"""
25+
class OrganizationSecretScanningAlert(GitHubModel):
26+
"""OrganizationSecretScanningAlert"""
2127

22-
total_minutes_used: int = Field(
23-
description="The sum of the free and paid GitHub Actions minutes used."
28+
number: Missing[int] = Field(
29+
default=UNSET, description="The security alert number."
2430
)
25-
total_paid_minutes_used: int = Field(
26-
description="The total paid GitHub Actions minutes used."
31+
created_at: Missing[datetime] = Field(
32+
default=UNSET,
33+
description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
2734
)
28-
included_minutes: int = Field(
29-
description="The amount of free GitHub Actions minutes available."
35+
updated_at: Missing[Union[None, datetime]] = Field(default=UNSET)
36+
url: Missing[str] = Field(
37+
default=UNSET, description="The REST API URL of the alert resource."
3038
)
31-
minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field()
32-
33-
34-
class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel):
35-
"""ActionsBillingUsagePropMinutesUsedBreakdown"""
36-
37-
ubuntu: Missing[int] = Field(
38-
default=UNSET,
39-
alias="UBUNTU",
40-
description="Total minutes used on Ubuntu runner machines.",
39+
html_url: Missing[str] = Field(
40+
default=UNSET, description="The GitHub URL of the alert resource."
4141
)
42-
macos: Missing[int] = Field(
42+
locations_url: Missing[str] = Field(
4343
default=UNSET,
44-
alias="MACOS",
45-
description="Total minutes used on macOS runner machines.",
44+
description="The REST API URL of the code locations for this alert.",
4645
)
47-
windows: Missing[int] = Field(
46+
state: Missing[Literal["open", "resolved"]] = Field(
4847
default=UNSET,
49-
alias="WINDOWS",
50-
description="Total minutes used on Windows runner machines.",
48+
description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
5149
)
52-
ubuntu_4_core: Missing[int] = Field(
50+
resolution: Missing[
51+
Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]]
52+
] = Field(
5353
default=UNSET,
54-
description="Total minutes used on Ubuntu 4 core runner machines.",
54+
description="**Required when the `state` is `resolved`.** The reason for resolving the alert.",
5555
)
56-
ubuntu_8_core: Missing[int] = Field(
56+
resolved_at: Missing[Union[datetime, None]] = Field(
5757
default=UNSET,
58-
description="Total minutes used on Ubuntu 8 core runner machines.",
58+
description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
5959
)
60-
ubuntu_16_core: Missing[int] = Field(
61-
default=UNSET,
62-
description="Total minutes used on Ubuntu 16 core runner machines.",
60+
resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
61+
secret_type: Missing[str] = Field(
62+
default=UNSET, description="The type of secret that secret scanning detected."
6363
)
64-
ubuntu_32_core: Missing[int] = Field(
64+
secret_type_display_name: Missing[str] = Field(
6565
default=UNSET,
66-
description="Total minutes used on Ubuntu 32 core runner machines.",
66+
description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."',
6767
)
68-
ubuntu_64_core: Missing[int] = Field(
69-
default=UNSET,
70-
description="Total minutes used on Ubuntu 64 core runner machines.",
68+
secret: Missing[str] = Field(
69+
default=UNSET, description="The secret that was detected."
7170
)
72-
windows_4_core: Missing[int] = Field(
73-
default=UNSET,
74-
description="Total minutes used on Windows 4 core runner machines.",
71+
repository: Missing[SimpleRepository] = Field(
72+
default=UNSET, title="Simple Repository", description="A GitHub repository."
7573
)
76-
windows_8_core: Missing[int] = Field(
74+
push_protection_bypassed: Missing[Union[bool, None]] = Field(
7775
default=UNSET,
78-
description="Total minutes used on Windows 8 core runner machines.",
76+
description="Whether push protection was bypassed for the detected secret.",
7977
)
80-
windows_16_core: Missing[int] = Field(
78+
push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
79+
push_protection_bypassed_at: Missing[Union[datetime, None]] = Field(
8180
default=UNSET,
82-
description="Total minutes used on Windows 16 core runner machines.",
81+
description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
8382
)
84-
windows_32_core: Missing[int] = Field(
85-
default=UNSET,
86-
description="Total minutes used on Windows 32 core runner machines.",
83+
push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field(
84+
default=UNSET
8785
)
88-
windows_64_core: Missing[int] = Field(
86+
push_protection_bypass_request_comment: Missing[Union[str, None]] = Field(
8987
default=UNSET,
90-
description="Total minutes used on Windows 64 core runner machines.",
88+
description="An optional comment when requesting a push protection bypass.",
89+
)
90+
push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field(
91+
default=UNSET, description="The URL to a push protection bypass request."
9192
)
92-
macos_12_core: Missing[int] = Field(
93+
resolution_comment: Missing[Union[str, None]] = Field(
9394
default=UNSET,
94-
description="Total minutes used on macOS 12 core runner machines.",
95+
description="The comment that was optionally added when this alert was closed",
9596
)
96-
total: Missing[int] = Field(
97-
default=UNSET, description="Total minutes used on all runner machines."
97+
validity: Missing[Literal["active", "inactive", "unknown"]] = Field(
98+
default=UNSET, description="The token status as of the latest validity check."
99+
)
100+
publicly_leaked: Missing[Union[bool, None]] = Field(
101+
default=UNSET, description="Whether the secret was publicly leaked."
102+
)
103+
multi_repo: Missing[Union[bool, None]] = Field(
104+
default=UNSET,
105+
description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.",
98106
)
99107

100108

101-
model_rebuild(ActionsBillingUsage)
102-
model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown)
109+
model_rebuild(OrganizationSecretScanningAlert)
103110

104-
__all__ = (
105-
"ActionsBillingUsage",
106-
"ActionsBillingUsagePropMinutesUsedBreakdown",
107-
)
111+
__all__ = ("OrganizationSecretScanningAlert",)

0 commit comments

Comments
 (0)