Skip to content

Commit

Permalink
👽 re-generate openapi models
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Feb 15, 2025
1 parent 455f760 commit 4ebd73b
Show file tree
Hide file tree
Showing 4,304 changed files with 232,727 additions and 231,143 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 24 additions & 2 deletions githubkit/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@
CopilotOrganizationDetails as CopilotOrganizationDetails,
)
from githubkit.versions.v2022_11_28.models import (
CopilotSeatBreakdown as CopilotSeatBreakdown,
CopilotOrganizationSeatBreakdown as CopilotOrganizationSeatBreakdown,
)
from githubkit.versions.v2022_11_28.models import (
CopilotSeatDetails as CopilotSeatDetails,
Expand Down Expand Up @@ -2925,6 +2925,19 @@
ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent,
)
from githubkit.versions.v2022_11_28.models import Root as Root
from githubkit.versions.v2022_11_28.models import RulesetVersion as RulesetVersion
from githubkit.versions.v2022_11_28.models import (
RulesetVersionPropActor as RulesetVersionPropActor,
)
from githubkit.versions.v2022_11_28.models import (
RulesetVersionWithState as RulesetVersionWithState,
)
from githubkit.versions.v2022_11_28.models import (
RulesetVersionWithStateAllof1 as RulesetVersionWithStateAllof1,
)
from githubkit.versions.v2022_11_28.models import (
RulesetVersionWithStateAllof1PropState as RulesetVersionWithStateAllof1PropState,
)
from githubkit.versions.v2022_11_28.models import RuleSuite as RuleSuite
from githubkit.versions.v2022_11_28.models import (
RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems,
Expand Down Expand Up @@ -3634,6 +3647,9 @@
from githubkit.versions.v2022_11_28.models import (
WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert,
)
from githubkit.versions.v2022_11_28.models import (
WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy,
)
from githubkit.versions.v2022_11_28.models import (
WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy,
)
Expand Down Expand Up @@ -9843,7 +9859,7 @@
"CodespacePropRuntimeConstraints",
"CodespacesPublicKey",
"CopilotOrganizationDetails",
"CopilotSeatBreakdown",
"CopilotOrganizationSeatBreakdown",
"TeamSimple",
"Team",
"TeamPropPermissions",
Expand Down Expand Up @@ -9973,6 +9989,11 @@
"RuleSuite",
"RuleSuitePropRuleEvaluationsItems",
"RuleSuitePropRuleEvaluationsItemsPropRuleSource",
"RulesetVersion",
"RulesetVersionPropActor",
"RulesetVersionWithState",
"RulesetVersionWithStateAllof1",
"RulesetVersionWithStateAllof1PropState",
"RepositoryAdvisoryCredit",
"RepositoryAdvisory",
"RepositoryAdvisoryPropIdentifiersItems",
Expand Down Expand Up @@ -10687,6 +10708,7 @@
"WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage",
"WebhookCodeScanningAlertClosedByUserPropAlertPropRule",
"WebhookCodeScanningAlertClosedByUserPropAlertPropTool",
"WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy",
"WebhookCodeScanningAlertCreated",
"WebhookCodeScanningAlertCreatedPropAlert",
"WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance",
Expand Down
8,890 changes: 4,456 additions & 4,434 deletions githubkit/versions/ghec_v2022_11_28/models/__init__.py

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions githubkit/versions/ghec_v2022_11_28/models/group_0045.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class Announcement(GitHubModel):
default=UNSET,
description="The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.",
)
user_dismissible: Missing[Union[bool, None]] = Field(
default=UNSET,
description="Whether an announcement can be dismissed by the user.",
)


model_rebuild(Announcement)
Expand Down
36 changes: 29 additions & 7 deletions githubkit/versions/ghec_v2022_11_28/models/group_0049.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,49 @@ class AmazonS3AccessKeysConfig(GitHubModel):
encrypted_access_key_id: str = Field(description="Encrypted AWS Access Key ID.")


class GoogleCloudConfig(GitHubModel):
"""GoogleCloudConfig
class HecConfig(GitHubModel):
"""HecConfig
Google Cloud Config for audit log streaming configuration.
Hec Config for Audit Log Stream Configuration
"""

bucket: str = Field(description="Google Cloud Bucket Name")
domain: str = Field(description="Domain of Hec instance.")
port: int = Field(description="The port number for connecting to HEC.")
key_id: str = Field(
description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets."
)
encrypted_token: str = Field(description="Encrypted Token.")
path: str = Field(description="Path to send events to.")
ssl_verify: bool = Field(
description="SSL verification helps ensure your events are sent to your HEC endpoint securely."
)


class DatadogConfig(GitHubModel):
"""DatadogConfig
Datadog Config for audit log streaming configuration.
"""

encrypted_token: str = Field(description="Encrypted Splunk token.")
site: Literal["US", "US3", "US5", "EU1", "US1-FED", "AP1"] = Field(
description="Datadog Site to use."
)
key_id: str = Field(
description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets."
)
encrypted_json_credentials: str = Field()


model_rebuild(AzureBlobConfig)
model_rebuild(AzureHubConfig)
model_rebuild(AmazonS3AccessKeysConfig)
model_rebuild(GoogleCloudConfig)
model_rebuild(HecConfig)
model_rebuild(DatadogConfig)

__all__ = (
"AmazonS3AccessKeysConfig",
"AzureBlobConfig",
"AzureHubConfig",
"GoogleCloudConfig",
"DatadogConfig",
"HecConfig",
)
18 changes: 7 additions & 11 deletions githubkit/versions/ghec_v2022_11_28/models/group_0051.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,24 @@

from __future__ import annotations

from typing import Literal

from pydantic import Field

from githubkit.compat import GitHubModel, model_rebuild


class DatadogConfig(GitHubModel):
"""DatadogConfig
class GoogleCloudConfig(GitHubModel):
"""GoogleCloudConfig
Datadog Config for audit log streaming configuration.
Google Cloud Config for audit log streaming configuration.
"""

encrypted_token: str = Field(description="Encrypted Splunk token.")
site: Literal["US", "US3", "US5", "EU1", "US1-FED", "AP1"] = Field(
description="Datadog Site to use."
)
bucket: str = Field(description="Google Cloud Bucket Name")
key_id: str = Field(
description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets."
)
encrypted_json_credentials: str = Field()


model_rebuild(DatadogConfig)
model_rebuild(GoogleCloudConfig)

__all__ = ("DatadogConfig",)
__all__ = ("GoogleCloudConfig",)
1 change: 1 addition & 0 deletions githubkit/versions/ghec_v2022_11_28/models/group_0058.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class CodeScanningOrganizationAlertItems(GitHubModel):
repository: SimpleRepository = Field(
title="Simple Repository", description="A GitHub repository."
)
dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)


model_rebuild(CodeScanningOrganizationAlertItems)
Expand Down
6 changes: 3 additions & 3 deletions githubkit/versions/ghec_v2022_11_28/models/group_0068.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CopilotDotcomChatPropModelsItems(GitHubModel):

name: Missing[str] = Field(
default=UNSET,
description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.",
description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.",
)
is_custom_model: Missing[bool] = Field(
default=UNSET, description="Indicates whether a model is custom or default."
Expand Down Expand Up @@ -128,7 +128,7 @@ class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel):

name: Missing[str] = Field(
default=UNSET,
description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.",
description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.",
)
is_custom_model: Missing[bool] = Field(
default=UNSET, description="Indicates whether a model is custom or default."
Expand Down Expand Up @@ -191,7 +191,7 @@ class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel)

name: Missing[str] = Field(
default=UNSET,
description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.",
description="Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'.",
)
is_custom_model: Missing[bool] = Field(
default=UNSET, description="Indicates whether a model is custom or default."
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/ghec_v2022_11_28/models/group_0123.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RepositoryRuleOneof18(GitHubModel):
"""max_file_size
Prevent commits that exceed a specified file size limit from being pushed to the
commit.
commit graph.
"""

type: Literal["max_file_size"] = Field()
Expand Down
103 changes: 12 additions & 91 deletions githubkit/versions/ghec_v2022_11_28/models/group_0130.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,106 +10,27 @@
from __future__ import annotations

from datetime import datetime
from typing import Literal, Union

from pydantic import Field

from githubkit.compat import GitHubModel, model_rebuild
from githubkit.typing import Missing
from githubkit.utils import UNSET

from .group_0003 import SimpleUser
from .group_0057 import SimpleRepository
from .group_0131 import RulesetVersionPropActor


class OrganizationSecretScanningAlert(GitHubModel):
"""OrganizationSecretScanningAlert"""
class RulesetVersion(GitHubModel):
"""Ruleset version
number: Missing[int] = Field(
default=UNSET, description="The security alert number."
)
created_at: Missing[datetime] = Field(
default=UNSET,
description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
updated_at: Missing[Union[None, datetime]] = Field(default=UNSET)
url: Missing[str] = Field(
default=UNSET, description="The REST API URL of the alert resource."
)
html_url: Missing[str] = Field(
default=UNSET, description="The GitHub URL of the alert resource."
)
locations_url: Missing[str] = Field(
default=UNSET,
description="The REST API URL of the code locations for this alert.",
)
state: Missing[Literal["open", "resolved"]] = Field(
default=UNSET,
description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
)
resolution: Missing[
Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]]
] = Field(
default=UNSET,
description="**Required when the `state` is `resolved`.** The reason for resolving the alert.",
)
resolved_at: Missing[Union[datetime, None]] = Field(
default=UNSET,
description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
secret_type: Missing[str] = Field(
default=UNSET, description="The type of secret that secret scanning detected."
)
secret_type_display_name: Missing[str] = Field(
default=UNSET,
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)."',
)
secret: Missing[str] = Field(
default=UNSET, description="The secret that was detected."
)
repository: Missing[SimpleRepository] = Field(
default=UNSET, title="Simple Repository", description="A GitHub repository."
)
push_protection_bypassed: Missing[Union[bool, None]] = Field(
default=UNSET,
description="Whether push protection was bypassed for the detected secret.",
)
push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
push_protection_bypassed_at: Missing[Union[datetime, None]] = Field(
default=UNSET,
description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field(
default=UNSET
)
push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field(
default=UNSET,
description="An optional comment when reviewing a push protection bypass.",
)
push_protection_bypass_request_comment: Missing[Union[str, None]] = Field(
default=UNSET,
description="An optional comment when requesting a push protection bypass.",
)
push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field(
default=UNSET, description="The URL to a push protection bypass request."
)
resolution_comment: Missing[Union[str, None]] = Field(
default=UNSET,
description="The comment that was optionally added when this alert was closed",
)
validity: Missing[Literal["active", "inactive", "unknown"]] = Field(
default=UNSET, description="The token status as of the latest validity check."
)
publicly_leaked: Missing[Union[bool, None]] = Field(
default=UNSET, description="Whether the secret was publicly leaked."
)
multi_repo: Missing[Union[bool, None]] = Field(
default=UNSET,
description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.",
The historical version of a ruleset
"""

version_id: int = Field(description="The ID of the previous version of the ruleset")
actor: RulesetVersionPropActor = Field(
description="The actor who updated the ruleset"
)
updated_at: datetime = Field()


model_rebuild(OrganizationSecretScanningAlert)
model_rebuild(RulesetVersion)

__all__ = ("OrganizationSecretScanningAlert",)
__all__ = ("RulesetVersion",)
Loading

0 comments on commit 4ebd73b

Please sign in to comment.