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 6, 2025
1 parent 7b9e40d commit c62650e
Show file tree
Hide file tree
Showing 425 changed files with 7,759 additions and 7,653 deletions.
660 changes: 330 additions & 330 deletions githubkit/versions/ghec_v2022_11_28/models/__init__.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions githubkit/versions/ghec_v2022_11_28/models/group_0041.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Runner(GitHubModel):
status: str = Field(description="The status of the runner.")
busy: bool = Field()
labels: list[RunnerLabel] = Field()
ephemeral: Missing[bool] = Field(default=UNSET)


model_rebuild(Runner)
Expand Down
187 changes: 164 additions & 23 deletions githubkit/versions/ghec_v2022_11_28/models/group_0053.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from __future__ import annotations

from datetime import datetime
from typing import Literal, Union

from pydantic import Field
Expand All @@ -18,43 +19,183 @@
from githubkit.utils import UNSET


class CodeScanningAlertRuleSummary(GitHubModel):
"""CodeScanningAlertRuleSummary"""
class PushRuleBypassRequest(GitHubModel):
"""Push rule bypass request
id: Missing[Union[str, None]] = Field(
A bypass request made by a user asking to be exempted from a push rule in this
repository.
"""

id: Missing[int] = Field(
default=UNSET, description="The unique identifier of the bypass request."
)
number: Missing[int] = Field(
default=UNSET,
description="The number uniquely identifying the bypass request within its repository.",
)
repository: Missing[PushRuleBypassRequestPropRepository] = Field(
default=UNSET, description="The repository the bypass request is for."
)
organization: Missing[PushRuleBypassRequestPropOrganization] = Field(
default=UNSET,
description="A unique identifier for the rule used to detect the alert.",
description="The organization associated with the repository the bypass request is for.",
)
requester: Missing[PushRuleBypassRequestPropRequester] = Field(
default=UNSET, description="The user who requested the bypass."
)
request_type: Missing[str] = Field(
default=UNSET, description="The type of request."
)
data: Missing[Union[list[PushRuleBypassRequestPropDataItems], None]] = Field(
default=UNSET,
description="Data describing the push rules that are being requested to be bypassed.",
)
resource_identifier: Missing[str] = Field(
default=UNSET,
description="The unique identifier for the request type of the bypass request. For example, a commit SHA.",
)
status: Missing[
Literal[
"pending", "denied", "approved", "cancelled", "completed", "expired", "open"
]
] = Field(default=UNSET, description="The status of the bypass request.")
requester_comment: Missing[Union[str, None]] = Field(
default=UNSET,
description="The comment the requester provided when creating the bypass request.",
)
expires_at: Missing[datetime] = Field(
default=UNSET, description="The date and time the bypass request will expire."
)
created_at: Missing[datetime] = Field(
default=UNSET, description="The date and time the bypass request was created."
)
responses: Missing[Union[list[BypassResponse], None]] = Field(
default=UNSET, description="The responses to the bypass request."
)
url: Missing[str] = Field(default=UNSET)
html_url: Missing[str] = Field(
default=UNSET, description="The URL to view the bypass request in a browser."
)


class PushRuleBypassRequestPropRepository(GitHubModel):
"""PushRuleBypassRequestPropRepository
The repository the bypass request is for.
"""

id: Missing[int] = Field(
default=UNSET, description="The ID of the repository the bypass request is for."
)
name: Missing[str] = Field(
default=UNSET, description="The name of the rule used to detect the alert."
default=UNSET,
description="The name of the repository the bypass request is for.",
)
severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field(
default=UNSET, description="The severity of the alert."
full_name: Missing[str] = Field(
default=UNSET,
description="The full name of the repository the bypass request is for.",
)
security_severity_level: Missing[
Union[None, Literal["low", "medium", "high", "critical"]]
] = Field(default=UNSET, description="The security severity of the alert.")
description: Missing[str] = Field(


class PushRuleBypassRequestPropOrganization(GitHubModel):
"""PushRuleBypassRequestPropOrganization
The organization associated with the repository the bypass request is for.
"""

id: Missing[int] = Field(default=UNSET, description="The ID of the organization.")
name: Missing[str] = Field(
default=UNSET, description="The name of the organization."
)


class PushRuleBypassRequestPropRequester(GitHubModel):
"""PushRuleBypassRequestPropRequester
The user who requested the bypass.
"""

actor_id: Missing[int] = Field(
default=UNSET, description="The ID of the GitHub user who requested the bypass."
)
actor_name: Missing[str] = Field(
default=UNSET,
description="The name of the GitHub user who requested the bypass.",
)


class PushRuleBypassRequestPropDataItems(GitHubModel):
"""PushRuleBypassRequestPropDataItems"""

ruleset_id: Missing[int] = Field(
default=UNSET,
description="The ID of the ruleset for the rules that were violated.",
)
ruleset_name: Missing[str] = Field(
default=UNSET,
description="The name of the ruleset for the rules that were violated.",
)
total_violations: Missing[int] = Field(
default=UNSET,
description="A short description of the rule used to detect the alert.",
description="The number of rule violations generated from the push associated with this request.",
)
rule_type: Missing[str] = Field(
default=UNSET, description="The type of rule that was violated."
)


class BypassResponse(GitHubModel):
"""Bypass response
A response made by a delegated bypasser to a bypass request.
"""

id: Missing[int] = Field(
default=UNSET, description="The ID of the response to the bypass request."
)
full_description: Missing[str] = Field(
default=UNSET, description="A description of the rule used to detect the alert."
reviewer: Missing[BypassResponsePropReviewer] = Field(
default=UNSET, description="The user who reviewed the bypass request."
)
tags: Missing[Union[list[str], None]] = Field(
default=UNSET, description="A set of tags applicable for the rule."
status: Missing[Literal["approved", "denied", "dismissed"]] = Field(
default=UNSET,
description="The response status to the bypass request until dismissed.",
)
created_at: Missing[datetime] = Field(
default=UNSET,
description="The date and time the response to the bypass request was created.",
)
help_: Missing[Union[str, None]] = Field(


class BypassResponsePropReviewer(GitHubModel):
"""BypassResponsePropReviewer
The user who reviewed the bypass request.
"""

actor_id: Missing[int] = Field(
default=UNSET,
alias="help",
description="Detailed documentation for the rule as GitHub Flavored Markdown.",
description="The ID of the GitHub user who reviewed the bypass request.",
)
help_uri: Missing[Union[str, None]] = Field(
actor_name: Missing[str] = Field(
default=UNSET,
description="A link to the documentation for the rule used to detect the alert.",
description="The name of the GitHub user who reviewed the bypass request.",
)


model_rebuild(CodeScanningAlertRuleSummary)
model_rebuild(PushRuleBypassRequest)
model_rebuild(PushRuleBypassRequestPropRepository)
model_rebuild(PushRuleBypassRequestPropOrganization)
model_rebuild(PushRuleBypassRequestPropRequester)
model_rebuild(PushRuleBypassRequestPropDataItems)
model_rebuild(BypassResponse)
model_rebuild(BypassResponsePropReviewer)

__all__ = ("CodeScanningAlertRuleSummary",)
__all__ = (
"BypassResponse",
"BypassResponsePropReviewer",
"PushRuleBypassRequest",
"PushRuleBypassRequestPropDataItems",
"PushRuleBypassRequestPropOrganization",
"PushRuleBypassRequestPropRepository",
"PushRuleBypassRequestPropRequester",
)
40 changes: 30 additions & 10 deletions githubkit/versions/ghec_v2022_11_28/models/group_0054.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

from typing import Union
from typing import Literal, Union

from pydantic import Field

Expand All @@ -18,23 +18,43 @@
from githubkit.utils import UNSET


class CodeScanningAnalysisTool(GitHubModel):
"""CodeScanningAnalysisTool"""
class CodeScanningAlertRuleSummary(GitHubModel):
"""CodeScanningAlertRuleSummary"""

id: Missing[Union[str, None]] = Field(
default=UNSET,
description="A unique identifier for the rule used to detect the alert.",
)
name: Missing[str] = Field(
default=UNSET, description="The name of the rule used to detect the alert."
)
severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field(
default=UNSET, description="The severity of the alert."
)
security_severity_level: Missing[
Union[None, Literal["low", "medium", "high", "critical"]]
] = Field(default=UNSET, description="The security severity of the alert.")
description: Missing[str] = Field(
default=UNSET,
description="The name of the tool used to generate the code scanning analysis.",
description="A short description of the rule used to detect the alert.",
)
full_description: Missing[str] = Field(
default=UNSET, description="A description of the rule used to detect the alert."
)
tags: Missing[Union[list[str], None]] = Field(
default=UNSET, description="A set of tags applicable for the rule."
)
version: Missing[Union[str, None]] = Field(
help_: Missing[Union[str, None]] = Field(
default=UNSET,
description="The version of the tool used to generate the code scanning analysis.",
alias="help",
description="Detailed documentation for the rule as GitHub Flavored Markdown.",
)
guid: Missing[Union[str, None]] = Field(
help_uri: Missing[Union[str, None]] = Field(
default=UNSET,
description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.",
description="A link to the documentation for the rule used to detect the alert.",
)


model_rebuild(CodeScanningAnalysisTool)
model_rebuild(CodeScanningAlertRuleSummary)

__all__ = ("CodeScanningAnalysisTool",)
__all__ = ("CodeScanningAlertRuleSummary",)
66 changes: 11 additions & 55 deletions githubkit/versions/ghec_v2022_11_28/models/group_0055.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

from typing import Literal, Union
from typing import Union

from pydantic import Field

Expand All @@ -18,67 +18,23 @@
from githubkit.utils import UNSET


class CodeScanningAlertInstance(GitHubModel):
"""CodeScanningAlertInstance"""
class CodeScanningAnalysisTool(GitHubModel):
"""CodeScanningAnalysisTool"""

ref: Missing[str] = Field(
name: Missing[str] = Field(
default=UNSET,
description="The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,\n`refs/heads/<branch name>` or simply `<branch name>`.",
description="The name of the tool used to generate the code scanning analysis.",
)
analysis_key: Missing[str] = Field(
version: Missing[Union[str, None]] = Field(
default=UNSET,
description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.",
description="The version of the tool used to generate the code scanning analysis.",
)
environment: Missing[str] = Field(
guid: Missing[Union[str, None]] = Field(
default=UNSET,
description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.",
description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.",
)
category: Missing[str] = Field(
default=UNSET,
description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.",
)
state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field(
default=UNSET, description="State of a code scanning alert."
)
commit_sha: Missing[str] = Field(default=UNSET)
message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET)
location: Missing[CodeScanningAlertLocation] = Field(
default=UNSET, description="Describe a region within a file for the alert."
)
html_url: Missing[str] = Field(default=UNSET)
classifications: Missing[
list[Union[None, Literal["source", "generated", "test", "library"]]]
] = Field(
default=UNSET,
description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.",
)


class CodeScanningAlertLocation(GitHubModel):
"""CodeScanningAlertLocation
Describe a region within a file for the alert.
"""

path: Missing[str] = Field(default=UNSET)
start_line: Missing[int] = Field(default=UNSET)
end_line: Missing[int] = Field(default=UNSET)
start_column: Missing[int] = Field(default=UNSET)
end_column: Missing[int] = Field(default=UNSET)


class CodeScanningAlertInstancePropMessage(GitHubModel):
"""CodeScanningAlertInstancePropMessage"""

text: Missing[str] = Field(default=UNSET)


model_rebuild(CodeScanningAlertInstance)
model_rebuild(CodeScanningAlertLocation)
model_rebuild(CodeScanningAlertInstancePropMessage)
model_rebuild(CodeScanningAnalysisTool)

__all__ = (
"CodeScanningAlertInstance",
"CodeScanningAlertInstancePropMessage",
"CodeScanningAlertLocation",
)
__all__ = ("CodeScanningAnalysisTool",)
Loading

0 comments on commit c62650e

Please sign in to comment.