Skip to content

Commit 342efdd

Browse files
Merge pull request #91 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-4ab8513
Bump Submodule/github/rest-api-description from `7fad85e` to `4ab8513`
2 parents ed037ab + 89d2287 commit 342efdd

File tree

12 files changed

+300
-108
lines changed

12 files changed

+300
-108
lines changed

Sources/code-scanning/Types.swift

+33
Original file line numberDiff line numberDiff line change
@@ -3106,6 +3106,21 @@ public enum Components {
31063106
///
31073107
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/state`.
31083108
public var state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload?
3109+
/// Runner type to be used.
3110+
///
3111+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`.
3112+
@frozen public enum runner_typePayload: String, Codable, Hashable, Sendable {
3113+
case standard = "standard"
3114+
case labeled = "labeled"
3115+
}
3116+
/// Runner type to be used.
3117+
///
3118+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`.
3119+
public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload?
3120+
/// Runner label to be used if the runner type is labeled.
3121+
///
3122+
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_label`.
3123+
public var runner_label: Swift.String?
31093124
/// CodeQL query suite to be used.
31103125
///
31113126
/// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`.
@@ -3140,19 +3155,27 @@ public enum Components {
31403155
///
31413156
/// - Parameters:
31423157
/// - state: The desired state of code scanning default setup.
3158+
/// - runner_type: Runner type to be used.
3159+
/// - runner_label: Runner label to be used if the runner type is labeled.
31433160
/// - query_suite: CodeQL query suite to be used.
31443161
/// - languages: CodeQL languages to be analyzed.
31453162
public init(
31463163
state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload? = nil,
3164+
runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload? = nil,
3165+
runner_label: Swift.String? = nil,
31473166
query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload? = nil,
31483167
languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayload? = nil
31493168
) {
31503169
self.state = state
3170+
self.runner_type = runner_type
3171+
self.runner_label = runner_label
31513172
self.query_suite = query_suite
31523173
self.languages = languages
31533174
}
31543175
public enum CodingKeys: String, CodingKey {
31553176
case state
3177+
case runner_type
3178+
case runner_label
31563179
case query_suite
31573180
case languages
31583181
}
@@ -3162,6 +3185,14 @@ public enum Components {
31623185
Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload.self,
31633186
forKey: .state
31643187
)
3188+
runner_type = try container.decodeIfPresent(
3189+
Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload.self,
3190+
forKey: .runner_type
3191+
)
3192+
runner_label = try container.decodeIfPresent(
3193+
Swift.String.self,
3194+
forKey: .runner_label
3195+
)
31653196
query_suite = try container.decodeIfPresent(
31663197
Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload.self,
31673198
forKey: .query_suite
@@ -3172,6 +3203,8 @@ public enum Components {
31723203
)
31733204
try decoder.ensureNoAdditionalProperties(knownKeys: [
31743205
"state",
3206+
"runner_type",
3207+
"runner_label",
31753208
"query_suite",
31763209
"languages"
31773210
])

Sources/code-security/Types.swift

+104
Large diffs are not rendered by default.

Sources/copilot/Client.swift

+12-19
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ public struct Client: APIProtocol {
612612
}
613613
/// Get Copilot metrics for an enterprise team
614614
///
615+
/// > [!NOTE]
616+
/// > 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)."
617+
///
615618
/// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.
616619
///
617620
/// The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
@@ -806,7 +809,7 @@ public struct Client: APIProtocol {
806809
/// Get a summary of Copilot usage for an enterprise team
807810
///
808811
/// > [!NOTE]
809-
/// > This endpoint is in public preview and is subject to change.
812+
/// > 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)."
810813
///
811814
/// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
812815
/// 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.
@@ -1354,13 +1357,11 @@ public struct Client: APIProtocol {
13541357
/// Purchases a GitHub Copilot seat for all users within each specified team.
13551358
/// 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)."
13561359
///
1357-
/// Only organization owners can add Copilot seats for their organization members.
1358-
///
1359-
/// 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.
1360+
/// 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.
13601361
/// 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)."
13611362
/// 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)."
13621363
///
1363-
/// The response will contain the total number of new seats that were created and existing seats that were refreshed.
1364+
/// The response contains the total number of new seats that were created and existing seats that were refreshed.
13641365
///
13651366
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
13661367
///
@@ -1530,14 +1531,11 @@ public struct Client: APIProtocol {
15301531
///
15311532
/// Sets seats for all members of each team specified to "pending cancellation".
15321533
/// 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.
1533-
///
1534-
/// 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)."
1535-
///
1536-
/// 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)."
1534+
/// 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)."
15371535
///
15381536
/// Only organization owners can cancel Copilot seats for their organization members.
15391537
///
1540-
/// The response will contain the total number of seats set to "pending cancellation".
1538+
/// The response contains the total number of seats set to "pending cancellation".
15411539
///
15421540
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
15431541
///
@@ -1708,13 +1706,11 @@ public struct Client: APIProtocol {
17081706
/// Purchases a GitHub Copilot seat for each user specified.
17091707
/// 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)."
17101708
///
1711-
/// Only organization owners can add Copilot seats for their organization members.
1712-
///
1713-
/// 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.
1709+
/// 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.
17141710
/// 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)."
17151711
/// 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)."
17161712
///
1717-
/// The response will contain the total number of new seats that were created and existing seats that were refreshed.
1713+
/// The response contains the total number of new seats that were created and existing seats that were refreshed.
17181714
///
17191715
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
17201716
///
@@ -1884,14 +1880,11 @@ public struct Client: APIProtocol {
18841880
///
18851881
/// Sets seats for all users specified to "pending cancellation".
18861882
/// 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.
1887-
///
1888-
/// 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)."
1889-
///
1890-
/// 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)."
1883+
/// 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)."
18911884
///
18921885
/// Only organization owners can cancel Copilot seats for their organization members.
18931886
///
1894-
/// The response will contain the total number of seats set to "pending cancellation".
1887+
/// The response contains the total number of seats set to "pending cancellation".
18951888
///
18961889
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
18971890
///

0 commit comments

Comments
 (0)