Skip to content

Bump Submodule/github/rest-api-description from 7fad85e to 4ab8513 #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

33 changes: 33 additions & 0 deletions Sources/code-scanning/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3106,6 +3106,21 @@ public enum Components {
///
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/state`.
public var state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload?
/// Runner type to be used.
///
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`.
@frozen public enum runner_typePayload: String, Codable, Hashable, Sendable {
case standard = "standard"
case labeled = "labeled"
}
/// Runner type to be used.
///
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`.
public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload?
/// Runner label to be used if the runner type is labeled.
///
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_label`.
public var runner_label: Swift.String?
/// CodeQL query suite to be used.
///
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`.
Expand Down Expand Up @@ -3140,19 +3155,27 @@ public enum Components {
///
/// - Parameters:
/// - state: The desired state of code scanning default setup.
/// - runner_type: Runner type to be used.
/// - runner_label: Runner label to be used if the runner type is labeled.
/// - query_suite: CodeQL query suite to be used.
/// - languages: CodeQL languages to be analyzed.
public init(
state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload? = nil,
runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload? = nil,
runner_label: Swift.String? = nil,
query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload? = nil,
languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayload? = nil
) {
self.state = state
self.runner_type = runner_type
self.runner_label = runner_label
self.query_suite = query_suite
self.languages = languages
}
public enum CodingKeys: String, CodingKey {
case state
case runner_type
case runner_label
case query_suite
case languages
}
Expand All @@ -3162,6 +3185,14 @@ public enum Components {
Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload.self,
forKey: .state
)
runner_type = try container.decodeIfPresent(
Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload.self,
forKey: .runner_type
)
runner_label = try container.decodeIfPresent(
Swift.String.self,
forKey: .runner_label
)
query_suite = try container.decodeIfPresent(
Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload.self,
forKey: .query_suite
Expand All @@ -3172,6 +3203,8 @@ public enum Components {
)
try decoder.ensureNoAdditionalProperties(knownKeys: [
"state",
"runner_type",
"runner_label",
"query_suite",
"languages"
])
Expand Down
104 changes: 104 additions & 0 deletions Sources/code-security/Types.swift

Large diffs are not rendered by default.

31 changes: 12 additions & 19 deletions Sources/copilot/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ public struct Client: APIProtocol {
}
/// Get Copilot metrics for an enterprise team
///
/// > [!NOTE]
/// > This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."
///
/// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.
///
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
Expand Down Expand Up @@ -806,7 +809,7 @@ public struct Client: APIProtocol {
/// Get a summary of Copilot usage for an enterprise team
///
/// > [!NOTE]
/// > This endpoint is in public preview and is subject to change.
/// > This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."
///
/// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
/// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.
Expand Down Expand Up @@ -1354,13 +1357,11 @@ public struct Client: APIProtocol {
/// Purchases a GitHub Copilot seat for all users within each specified team.
/// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// Only organization owners can add Copilot seats for their organization members.
///
/// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
/// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.
/// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."
/// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."
///
/// The response will contain the total number of new seats that were created and existing seats that were refreshed.
/// The response contains the total number of new seats that were created and existing seats that were refreshed.
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -1530,14 +1531,11 @@ public struct Client: APIProtocol {
///
/// Sets seats for all members of each team specified to "pending cancellation".
/// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.
///
/// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
/// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
///
/// Only organization owners can cancel Copilot seats for their organization members.
///
/// The response will contain the total number of seats set to "pending cancellation".
/// The response contains the total number of seats set to "pending cancellation".
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -1708,13 +1706,11 @@ public struct Client: APIProtocol {
/// Purchases a GitHub Copilot seat for each user specified.
/// The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// Only organization owners can add Copilot seats for their organization members.
///
/// In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
/// Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.
/// For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."
/// For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."
///
/// The response will contain the total number of new seats that were created and existing seats that were refreshed.
/// The response contains the total number of new seats that were created and existing seats that were refreshed.
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
///
Expand Down Expand Up @@ -1884,14 +1880,11 @@ public struct Client: APIProtocol {
///
/// Sets seats for all users specified to "pending cancellation".
/// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.
///
/// For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
///
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
/// For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
///
/// Only organization owners can cancel Copilot seats for their organization members.
///
/// The response will contain the total number of seats set to "pending cancellation".
/// The response contains the total number of seats set to "pending cancellation".
///
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
///
Expand Down
Loading