Skip to content

Commit 1c22e1e

Browse files
Commit via running ake Sources/copilot
1 parent 8bed6fa commit 1c22e1e

File tree

2 files changed

+84
-52
lines changed

2 files changed

+84
-52
lines changed

Sources/copilot/Client.swift

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ public struct Client: APIProtocol {
4646
/// and code matching policies. To configure these settings, go to your organization's settings on GitHub.com.
4747
/// For more information, see "[Managing policies for Copilot Business in your organization](https://docs.github.com/copilot/managing-copilot-business/managing-policies-for-copilot-business-in-your-organization)".
4848
///
49-
/// Only organization owners can configure and view details about the organization's Copilot Business subscription. You must
50-
/// authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
49+
/// Only organization owners can configure and view details about the organization's Copilot Business subscription.
50+
///
51+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
5152
///
5253
/// - Remark: HTTP `GET /orgs/{org}/copilot/billing`.
5354
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)`.
@@ -203,8 +204,9 @@ public struct Client: APIProtocol {
203204
///
204205
/// Lists all Copilot Business seat assignments for an organization that are currently being billed (either active or pending cancellation at the start of the next billing cycle).
205206
///
206-
/// Only organization owners can configure and view details about the organization's Copilot Business subscription. You must
207-
/// authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
207+
/// Only organization owners can configure and view details about the organization's Copilot Business subscription.
208+
///
209+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
208210
///
209211
/// - Remark: HTTP `GET /orgs/{org}/copilot/billing/seats`.
210212
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)`.
@@ -383,13 +385,14 @@ public struct Client: APIProtocol {
383385
/// Purchases a GitHub Copilot Business seat for all users within each specified team.
384386
/// The organization will be billed accordingly. For more information about Copilot Business pricing, see "[Pricing for GitHub Copilot Business](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#pricing-for-github-copilot-business)".
385387
///
386-
/// Only organization owners can configure GitHub Copilot in their organization. You must
387-
/// authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
388+
/// Only organization owners can configure GitHub Copilot in their organization.
388389
///
389390
/// In order for an admin to use this endpoint, the organization must have a Copilot Business subscription and a configured suggestion matching policy.
390391
/// For more information about setting up a Copilot Business subscription, see "[Setting up a Copilot Business subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise#setting-up-a-copilot-business-subscription-for-your-organization)".
391392
/// For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot-business/managing-policies-for-copilot-business-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
392393
///
394+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
395+
///
393396
/// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`.
394397
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-for-business-seats-for-teams)`.
395398
public func copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_teams(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_teams.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_teams.Output {
@@ -560,8 +563,9 @@ public struct Client: APIProtocol {
560563
///
561564
/// For more information about disabling access to Copilot Business, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot-business/managing-access-for-copilot-business-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
562565
///
563-
/// Only organization owners can configure GitHub Copilot in their organization. You must
564-
/// authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
566+
/// Only organization owners can configure GitHub Copilot in their organization.
567+
///
568+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
565569
///
566570
/// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_teams`.
567571
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)`.
@@ -729,13 +733,14 @@ public struct Client: APIProtocol {
729733
/// Purchases a GitHub Copilot Business seat for each user specified.
730734
/// The organization will be billed accordingly. For more information about Copilot Business pricing, see "[Pricing for GitHub Copilot Business](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#pricing-for-github-copilot-business)".
731735
///
732-
/// Only organization owners can configure GitHub Copilot in their organization. You must
733-
/// authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
736+
/// Only organization owners can configure GitHub Copilot in their organization.
734737
///
735738
/// In order for an admin to use this endpoint, the organization must have a Copilot Business subscription and a configured suggestion matching policy.
736739
/// For more information about setting up a Copilot Business subscription, see "[Setting up a Copilot Business subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise#setting-up-a-copilot-business-subscription-for-your-organization)".
737740
/// For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot-business/managing-policies-for-copilot-business-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
738741
///
742+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
743+
///
739744
/// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`.
740745
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-for-business-seats-for-users)`.
741746
public func copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_users(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_users.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_users.Output {
@@ -906,8 +911,9 @@ public struct Client: APIProtocol {
906911
///
907912
/// For more information about disabling access to Copilot Business, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot-business/managing-access-for-copilot-business-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
908913
///
909-
/// Only organization owners can configure GitHub Copilot in their organization. You must
910-
/// authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
914+
/// Only organization owners can configure GitHub Copilot in their organization.
915+
///
916+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
911917
///
912918
/// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_users`.
913919
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)`.
@@ -1074,7 +1080,9 @@ public struct Client: APIProtocol {
10741080
///
10751081
/// Gets the GitHub Copilot Business seat assignment details for a member of an organization who currently has access to GitHub Copilot.
10761082
///
1077-
/// Organization owners can view GitHub Copilot seat assignment details for members in their organization. You must authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
1083+
/// Organization owners can view GitHub Copilot seat assignment details for members in their organization.
1084+
///
1085+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
10781086
///
10791087
/// - Remark: HTTP `GET /orgs/{org}/members/{username}/copilot`.
10801088
/// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)`.

0 commit comments

Comments
 (0)