Skip to content

Commit 826a0f4

Browse files
authored
👽 re-generate openapi models and apis
1 parent aacef92 commit 826a0f4

File tree

772 files changed

+13695
-13331
lines changed

Some content is hidden

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

772 files changed

+13695
-13331
lines changed

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 877 additions & 863 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0954.py

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

1616

17-
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody(GitHubModel):
18-
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody"""
17+
class EnterprisesEnterpriseSettingsBillingCostCentersPostBody(GitHubModel):
18+
"""EnterprisesEnterpriseSettingsBillingCostCentersPostBody"""
1919

20-
name: str = Field(description="The new name for the cost center")
20+
name: str = Field(
21+
description="The name of the cost center (max length 255 characters)"
22+
)
2123

2224

23-
model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody)
25+
model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersPostBody)
2426

25-
__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody",)
27+
__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersPostBody",)

githubkit/versions/ghec_v2022_11_28/models/group_0955.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,39 @@
1616
from githubkit.utils import UNSET
1717

1818

19-
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody(
19+
class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200(GitHubModel):
20+
"""EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200"""
21+
22+
id: Missing[str] = Field(
23+
default=UNSET, description="Unique identifier for the cost center"
24+
)
25+
name: Missing[str] = Field(default=UNSET, description="Name of the cost center")
26+
resources: Missing[
27+
list[
28+
EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems
29+
]
30+
] = Field(
31+
default=UNSET, description="List of resources assigned to this cost center"
32+
)
33+
34+
35+
class EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems(
2036
GitHubModel
2137
):
22-
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody"""
38+
"""EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems"""
2339

24-
users: Missing[list[str]] = Field(
25-
default=UNSET,
26-
description="The usernames of the users to add to the cost center.",
40+
type: Missing[str] = Field(
41+
default=UNSET, description="Type of resource (User, Org, or Repo)"
2742
)
43+
name: Missing[str] = Field(default=UNSET, description="Name/login of the resource")
2844

2945

46+
model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200)
3047
model_rebuild(
31-
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody
48+
EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems
3249
)
3350

3451
__all__ = (
35-
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody",
52+
"EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200",
53+
"EnterprisesEnterpriseSettingsBillingCostCentersPostResponse200PropResourcesItems",
3654
)

githubkit/versions/ghec_v2022_11_28/models/group_0956.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,14 @@
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
1715

1816

19-
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200(
20-
GitHubModel
21-
):
22-
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2
23-
00
24-
"""
17+
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody(GitHubModel):
18+
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody"""
2519

26-
message: Missing[str] = Field(default=UNSET)
20+
name: str = Field(description="The new name for the cost center")
2721

2822

29-
model_rebuild(
30-
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200
31-
)
23+
model_rebuild(EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody)
3224

33-
__all__ = (
34-
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200",
35-
)
25+
__all__ = ("EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdPatchBody",)

githubkit/versions/ghec_v2022_11_28/models/group_0957.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,27 @@
1616
from githubkit.utils import UNSET
1717

1818

19-
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody(
19+
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody(
2020
GitHubModel
2121
):
22-
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody"""
22+
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody"""
2323

2424
users: Missing[list[str]] = Field(
2525
default=UNSET,
26-
description="The usernames of the users to remove from the cost center.",
26+
description="The usernames of the users to add to the cost center.",
27+
)
28+
organizations: Missing[list[str]] = Field(
29+
default=UNSET, description="The organizations to add to the cost center."
30+
)
31+
repositories: Missing[list[str]] = Field(
32+
default=UNSET, description="The repositories to add to the cost center."
2733
)
2834

2935

3036
model_rebuild(
31-
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody
37+
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody
3238
)
3339

3440
__all__ = (
35-
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody",
41+
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody",
3642
)

githubkit/versions/ghec_v2022_11_28/models/group_0958.py

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

1818

19-
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200(
19+
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200(
2020
GitHubModel
2121
):
22-
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons
23-
e200
22+
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2
23+
00
2424
"""
2525

2626
message: Missing[str] = Field(default=UNSET)
2727

2828

2929
model_rebuild(
30-
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200
30+
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200
3131
)
3232

3333
__all__ = (
34-
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200",
34+
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200",
3535
)

githubkit/versions/ghec_v2022_11_28/models/group_0959.py

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,34 @@
99

1010
from __future__ import annotations
1111

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

16-
from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild
14+
from githubkit.compat import GitHubModel, model_rebuild
1715
from githubkit.typing import Missing
1816
from githubkit.utils import UNSET
1917

2018

21-
class GistsPostBody(GitHubModel):
22-
"""GistsPostBody"""
19+
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody(
20+
GitHubModel
21+
):
22+
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody"""
2323

24-
description: Missing[str] = Field(
25-
default=UNSET, description="Description of the gist"
24+
users: Missing[list[str]] = Field(
25+
default=UNSET,
26+
description="The usernames of the users to remove from the cost center.",
2627
)
27-
files: GistsPostBodyPropFiles = Field(
28-
description="Names and content for the files that make up the gist"
28+
organizations: Missing[list[str]] = Field(
29+
default=UNSET, description="The organizations to remove from the cost center."
30+
)
31+
repositories: Missing[list[str]] = Field(
32+
default=UNSET, description="The repositories to remove from the cost center."
2933
)
30-
public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET)
31-
32-
33-
class GistsPostBodyPropFiles(ExtraGitHubModel):
34-
"""GistsPostBodyPropFiles
35-
36-
Names and content for the files that make up the gist
37-
38-
Examples:
39-
{'hello.rb': {'content': 'puts "Hello, World!"'}}
40-
"""
4134

4235

43-
model_rebuild(GistsPostBody)
44-
model_rebuild(GistsPostBodyPropFiles)
36+
model_rebuild(
37+
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody
38+
)
4539

4640
__all__ = (
47-
"GistsPostBody",
48-
"GistsPostBodyPropFiles",
41+
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody",
4942
)

githubkit/versions/ghec_v2022_11_28/models/group_0960.py

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,27 @@
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

2018

21-
class GistsGistIdGetResponse403(GitHubModel):
22-
"""GistsGistIdGetResponse403"""
19+
class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200(
20+
GitHubModel
21+
):
22+
"""EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons
23+
e200
24+
"""
2325

24-
block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET)
2526
message: Missing[str] = Field(default=UNSET)
26-
documentation_url: Missing[str] = Field(default=UNSET)
27-
28-
29-
class GistsGistIdGetResponse403PropBlock(GitHubModel):
30-
"""GistsGistIdGetResponse403PropBlock"""
3127

32-
reason: Missing[str] = Field(default=UNSET)
33-
created_at: Missing[str] = Field(default=UNSET)
34-
html_url: Missing[Union[str, None]] = Field(default=UNSET)
3528

36-
37-
model_rebuild(GistsGistIdGetResponse403)
38-
model_rebuild(GistsGistIdGetResponse403PropBlock)
29+
model_rebuild(
30+
EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200
31+
)
3932

4033
__all__ = (
41-
"GistsGistIdGetResponse403",
42-
"GistsGistIdGetResponse403PropBlock",
34+
"EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200",
4335
)

githubkit/versions/ghec_v2022_11_28/models/group_0961.py

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

1010
from __future__ import annotations
1111

12+
from typing import Literal, Union
13+
1214
from pydantic import Field
1315

1416
from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild
1517
from githubkit.typing import Missing
1618
from githubkit.utils import UNSET
1719

1820

19-
class GistsGistIdPatchBody(GitHubModel):
20-
"""GistsGistIdPatchBody"""
21+
class GistsPostBody(GitHubModel):
22+
"""GistsPostBody"""
2123

2224
description: Missing[str] = Field(
23-
default=UNSET, description="The description of the gist."
25+
default=UNSET, description="Description of the gist"
2426
)
25-
files: Missing[GistsGistIdPatchBodyPropFiles] = Field(
26-
default=UNSET,
27-
description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.",
27+
files: GistsPostBodyPropFiles = Field(
28+
description="Names and content for the files that make up the gist"
2829
)
30+
public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET)
2931

3032

31-
class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel):
32-
"""GistsGistIdPatchBodyPropFiles
33-
34-
The gist files to be updated, renamed, or deleted. Each `key` must match the
35-
current filename
36-
(including extension) of the targeted gist file. For example: `hello.py`.
33+
class GistsPostBodyPropFiles(ExtraGitHubModel):
34+
"""GistsPostBodyPropFiles
3735
38-
To delete a file, set the whole file to null. For example: `hello.py : null`.
39-
The file will also be
40-
deleted if the specified object does not contain at least one of `content` or
41-
`filename`.
36+
Names and content for the files that make up the gist
4237
4338
Examples:
44-
{'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}}
39+
{'hello.rb': {'content': 'puts "Hello, World!"'}}
4540
"""
4641

4742

48-
model_rebuild(GistsGistIdPatchBody)
49-
model_rebuild(GistsGistIdPatchBodyPropFiles)
43+
model_rebuild(GistsPostBody)
44+
model_rebuild(GistsPostBodyPropFiles)
5045

5146
__all__ = (
52-
"GistsGistIdPatchBody",
53-
"GistsGistIdPatchBodyPropFiles",
47+
"GistsPostBody",
48+
"GistsPostBodyPropFiles",
5449
)

githubkit/versions/ghec_v2022_11_28/models/group_0962.py

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,35 @@
99

1010
from __future__ import annotations
1111

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

1416
from githubkit.compat import GitHubModel, model_rebuild
17+
from githubkit.typing import Missing
18+
from githubkit.utils import UNSET
19+
20+
21+
class GistsGistIdGetResponse403(GitHubModel):
22+
"""GistsGistIdGetResponse403"""
23+
24+
block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET)
25+
message: Missing[str] = Field(default=UNSET)
26+
documentation_url: Missing[str] = Field(default=UNSET)
1527

1628

17-
class GistsGistIdCommentsPostBody(GitHubModel):
18-
"""GistsGistIdCommentsPostBody"""
29+
class GistsGistIdGetResponse403PropBlock(GitHubModel):
30+
"""GistsGistIdGetResponse403PropBlock"""
1931

20-
body: str = Field(max_length=65535, description="The comment text.")
32+
reason: Missing[str] = Field(default=UNSET)
33+
created_at: Missing[str] = Field(default=UNSET)
34+
html_url: Missing[Union[str, None]] = Field(default=UNSET)
2135

2236

23-
model_rebuild(GistsGistIdCommentsPostBody)
37+
model_rebuild(GistsGistIdGetResponse403)
38+
model_rebuild(GistsGistIdGetResponse403PropBlock)
2439

25-
__all__ = ("GistsGistIdCommentsPostBody",)
40+
__all__ = (
41+
"GistsGistIdGetResponse403",
42+
"GistsGistIdGetResponse403PropBlock",
43+
)

0 commit comments

Comments
 (0)