Skip to content

Commit de568ce

Browse files
authored
👽 re-generate openapi models
1 parent 9626ed8 commit de568ce

Some content is hidden

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

81 files changed

+50872
-4446
lines changed

githubkit/versions/ghec_v2022_11_28/rest/actions.py

Lines changed: 3784 additions & 330 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/rest/activity.py

Lines changed: 606 additions & 64 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/rest/apps.py

Lines changed: 724 additions & 74 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/rest/billing.py

Lines changed: 382 additions & 32 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/rest/campaigns.py

Lines changed: 126 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,18 @@ def list_org_campaigns(
6363
sort: Missing[Literal["created", "updated", "ends_at", "published"]] = UNSET,
6464
headers: Optional[Mapping[str, str]] = None,
6565
) -> Response[list[CampaignSummary], list[CampaignSummaryType]]:
66-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#list-campaigns-for-an-organization"""
66+
"""campaigns/list-org-campaigns
67+
68+
GET /orgs/{org}/campaigns
69+
70+
Lists campaigns in an organization.
71+
72+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
73+
74+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
75+
76+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#list-campaigns-for-an-organization
77+
"""
6778

6879
from ..models import (
6980
BasicError,
@@ -106,7 +117,18 @@ async def async_list_org_campaigns(
106117
sort: Missing[Literal["created", "updated", "ends_at", "published"]] = UNSET,
107118
headers: Optional[Mapping[str, str]] = None,
108119
) -> Response[list[CampaignSummary], list[CampaignSummaryType]]:
109-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#list-campaigns-for-an-organization"""
120+
"""campaigns/list-org-campaigns
121+
122+
GET /orgs/{org}/campaigns
123+
124+
Lists campaigns in an organization.
125+
126+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
127+
128+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
129+
130+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#list-campaigns-for-an-organization
131+
"""
110132

111133
from ..models import (
112134
BasicError,
@@ -174,7 +196,21 @@ def create_campaign(
174196
data: Missing[OrgsOrgCampaignsPostBodyType] = UNSET,
175197
**kwargs,
176198
) -> Response[CampaignSummary, CampaignSummaryType]:
177-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#create-a-campaign-for-an-organization"""
199+
"""campaigns/create-campaign
200+
201+
POST /orgs/{org}/campaigns
202+
203+
Create a campaign for an organization.
204+
205+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
206+
207+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
208+
209+
Fine-grained tokens must have the "Code scanning alerts" repository permissions (read) on all repositories included
210+
in the campaign.
211+
212+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#create-a-campaign-for-an-organization
213+
"""
178214

179215
from ..models import (
180216
BasicError,
@@ -246,7 +282,21 @@ async def async_create_campaign(
246282
data: Missing[OrgsOrgCampaignsPostBodyType] = UNSET,
247283
**kwargs,
248284
) -> Response[CampaignSummary, CampaignSummaryType]:
249-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#create-a-campaign-for-an-organization"""
285+
"""campaigns/create-campaign
286+
287+
POST /orgs/{org}/campaigns
288+
289+
Create a campaign for an organization.
290+
291+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
292+
293+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
294+
295+
Fine-grained tokens must have the "Code scanning alerts" repository permissions (read) on all repositories included
296+
in the campaign.
297+
298+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#create-a-campaign-for-an-organization
299+
"""
250300

251301
from ..models import (
252302
BasicError,
@@ -289,7 +339,18 @@ def get_campaign_summary(
289339
*,
290340
headers: Optional[Mapping[str, str]] = None,
291341
) -> Response[CampaignSummary, CampaignSummaryType]:
292-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#get-a-campaign-for-an-organization"""
342+
"""campaigns/get-campaign-summary
343+
344+
GET /orgs/{org}/campaigns/{campaign_number}
345+
346+
Gets a campaign for an organization.
347+
348+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
349+
350+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
351+
352+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#get-a-campaign-for-an-organization
353+
"""
293354

294355
from ..models import (
295356
BasicError,
@@ -320,7 +381,18 @@ async def async_get_campaign_summary(
320381
*,
321382
headers: Optional[Mapping[str, str]] = None,
322383
) -> Response[CampaignSummary, CampaignSummaryType]:
323-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#get-a-campaign-for-an-organization"""
384+
"""campaigns/get-campaign-summary
385+
386+
GET /orgs/{org}/campaigns/{campaign_number}
387+
388+
Gets a campaign for an organization.
389+
390+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
391+
392+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
393+
394+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#get-a-campaign-for-an-organization
395+
"""
324396

325397
from ..models import (
326398
BasicError,
@@ -351,7 +423,18 @@ def delete_campaign(
351423
*,
352424
headers: Optional[Mapping[str, str]] = None,
353425
) -> Response:
354-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#delete-a-campaign-for-an-organization"""
426+
"""campaigns/delete-campaign
427+
428+
DELETE /orgs/{org}/campaigns/{campaign_number}
429+
430+
Deletes a campaign in an organization.
431+
432+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
433+
434+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
435+
436+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#delete-a-campaign-for-an-organization
437+
"""
355438

356439
from ..models import (
357440
BasicError,
@@ -379,7 +462,18 @@ async def async_delete_campaign(
379462
*,
380463
headers: Optional[Mapping[str, str]] = None,
381464
) -> Response:
382-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#delete-a-campaign-for-an-organization"""
465+
"""campaigns/delete-campaign
466+
467+
DELETE /orgs/{org}/campaigns/{campaign_number}
468+
469+
Deletes a campaign in an organization.
470+
471+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
472+
473+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
474+
475+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#delete-a-campaign-for-an-organization
476+
"""
383477

384478
from ..models import (
385479
BasicError,
@@ -436,7 +530,18 @@ def update_campaign(
436530
data: Missing[OrgsOrgCampaignsCampaignNumberPatchBodyType] = UNSET,
437531
**kwargs,
438532
) -> Response[CampaignSummary, CampaignSummaryType]:
439-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#update-a-campaign"""
533+
"""campaigns/update-campaign
534+
535+
PATCH /orgs/{org}/campaigns/{campaign_number}
536+
537+
Updates a campaign in an organization.
538+
539+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
540+
541+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
542+
543+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#update-a-campaign
544+
"""
440545

441546
from ..models import (
442547
BasicError,
@@ -508,7 +613,18 @@ async def async_update_campaign(
508613
data: Missing[OrgsOrgCampaignsCampaignNumberPatchBodyType] = UNSET,
509614
**kwargs,
510615
) -> Response[CampaignSummary, CampaignSummaryType]:
511-
"""See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#update-a-campaign"""
616+
"""campaigns/update-campaign
617+
618+
PATCH /orgs/{org}/campaigns/{campaign_number}
619+
620+
Updates a campaign in an organization.
621+
622+
The authenticated user must be an owner or security manager for the organization to use this endpoint.
623+
624+
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.
625+
626+
See also: https://docs.github.com/enterprise-cloud@latest//rest/campaigns/campaigns#update-a-campaign
627+
"""
512628

513629
from ..models import (
514630
BasicError,

0 commit comments

Comments
 (0)