Skip to content

Commit 44cd1c1

Browse files
Commit via running ake Sources/copilot
1 parent 3542ac6 commit 44cd1c1

File tree

2 files changed

+207
-207
lines changed

2 files changed

+207
-207
lines changed

Sources/copilot/Client.swift

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ public struct Client: APIProtocol {
3838
private var converter: Converter {
3939
client.converter
4040
}
41-
/// Get Copilot Business seat information and settings for an organization
41+
/// Get Copilot seat information and settings for an organization
4242
///
4343
/// **Note**: This endpoint is in beta and is subject to change.
4444
///
45-
/// Gets information about an organization's Copilot Business subscription, including seat breakdown
45+
/// Gets information about an organization's Copilot subscription, including seat breakdown
4646
/// and code matching policies. To configure these settings, go to your organization's settings on GitHub.com.
47-
/// 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)".
47+
/// For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".
4848
///
4949
/// Only organization owners can configure and view details about the organization's Copilot Business subscription.
5050
///
@@ -198,13 +198,13 @@ public struct Client: APIProtocol {
198198
}
199199
)
200200
}
201-
/// List all Copilot Business seat assignments for an organization
201+
/// List all Copilot seat assignments for an organization
202202
///
203203
/// **Note**: This endpoint is in beta and is subject to change.
204204
///
205-
/// 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).
205+
/// Lists all Copilot seat assignments for an organization that are currently being billed (either active or pending cancellation at the start of the next billing cycle).
206206
///
207-
/// Only organization owners can configure and view details about the organization's Copilot Business subscription.
207+
/// Only organization owners can configure and view details about the organization's Copilot Business or Enterprise subscription.
208208
///
209209
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
210210
///
@@ -378,27 +378,27 @@ public struct Client: APIProtocol {
378378
}
379379
)
380380
}
381-
/// Add teams to the Copilot Business subscription for an organization
381+
/// Add teams to the Copilot subscription for an organization
382382
///
383383
/// **Note**: This endpoint is in beta and is subject to change.
384384
///
385-
/// Purchases a GitHub Copilot Business seat for all users within each specified team.
386-
/// 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)".
385+
/// Purchases a GitHub Copilot seat for all users within each specified team.
386+
/// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
387387
///
388-
/// Only organization owners can configure GitHub Copilot in their organization.
388+
/// Only organization owners can configure GitHub Copilot in their organization.
389389
///
390-
/// In order for an admin to use this endpoint, the organization must have a Copilot Business subscription and a configured suggestion matching policy.
391-
/// 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)".
392-
/// 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)".
390+
/// 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.
391+
/// For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
392+
/// 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/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
393393
///
394-
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
394+
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
395395
///
396396
/// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`.
397-
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-for-business-seats-for-teams)`.
398-
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 {
397+
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)`.
398+
public func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output {
399399
try await client.send(
400400
input: input,
401-
forOperation: Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_teams.id,
401+
forOperation: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.id,
402402
serializer: { input in
403403
let path = try converter.renderedPath(
404404
template: "/orgs/{}/copilot/billing/selected_teams",
@@ -430,7 +430,7 @@ public struct Client: APIProtocol {
430430
switch response.status.code {
431431
case 201:
432432
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
433-
let body: Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body
433+
let body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body
434434
let chosenContentType = try converter.bestContentType(
435435
received: contentType,
436436
options: [
@@ -440,7 +440,7 @@ public struct Client: APIProtocol {
440440
switch chosenContentType {
441441
case "application/json":
442442
body = try await converter.getResponseBodyAsJSON(
443-
Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body.jsonPayload.self,
443+
Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body.jsonPayload.self,
444444
from: responseBody,
445445
transforming: { value in
446446
.json(value)
@@ -552,16 +552,16 @@ public struct Client: APIProtocol {
552552
}
553553
)
554554
}
555-
/// Remove teams from the Copilot Business subscription for an organization
555+
/// Remove teams from the Copilot subscription for an organization
556556
///
557557
/// **Note**: This endpoint is in beta and is subject to change.
558558
///
559-
/// Cancels the Copilot Business seat assignment for all members of each team specified.
559+
/// Cancels the Copilot seat assignment for all members of each team specified.
560560
/// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.
561561
///
562-
/// 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)".
562+
/// For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
563563
///
564-
/// 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)".
564+
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
565565
///
566566
/// Only organization owners can configure GitHub Copilot in their organization.
567567
///
@@ -726,27 +726,27 @@ public struct Client: APIProtocol {
726726
}
727727
)
728728
}
729-
/// Add users to the Copilot Business subscription for an organization
729+
/// Add users to the Copilot subscription for an organization
730730
///
731731
/// **Note**: This endpoint is in beta and is subject to change.
732732
///
733-
/// Purchases a GitHub Copilot Business seat for each user specified.
734-
/// 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)".
733+
/// Purchases a GitHub Copilot seat for each user specified.
734+
/// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
735735
///
736736
/// Only organization owners can configure GitHub Copilot in their organization.
737737
///
738-
/// In order for an admin to use this endpoint, the organization must have a Copilot Business subscription and a configured suggestion matching policy.
739-
/// 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)".
740-
/// 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)".
738+
/// 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.
739+
/// For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
740+
/// 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/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
741741
///
742742
/// OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
743743
///
744744
/// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`.
745-
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-for-business-seats-for-users)`.
746-
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 {
745+
/// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)`.
746+
public func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output {
747747
try await client.send(
748748
input: input,
749-
forOperation: Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_users.id,
749+
forOperation: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.id,
750750
serializer: { input in
751751
let path = try converter.renderedPath(
752752
template: "/orgs/{}/copilot/billing/selected_users",
@@ -778,7 +778,7 @@ public struct Client: APIProtocol {
778778
switch response.status.code {
779779
case 201:
780780
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
781-
let body: Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body
781+
let body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body
782782
let chosenContentType = try converter.bestContentType(
783783
received: contentType,
784784
options: [
@@ -788,7 +788,7 @@ public struct Client: APIProtocol {
788788
switch chosenContentType {
789789
case "application/json":
790790
body = try await converter.getResponseBodyAsJSON(
791-
Operations.copilot_sol_add_hyphen_copilot_hyphen_for_hyphen_business_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body.jsonPayload.self,
791+
Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body.jsonPayload.self,
792792
from: responseBody,
793793
transforming: { value in
794794
.json(value)
@@ -900,16 +900,16 @@ public struct Client: APIProtocol {
900900
}
901901
)
902902
}
903-
/// Remove users from the Copilot Business subscription for an organization
903+
/// Remove users from the Copilot subscription for an organization
904904
///
905905
/// **Note**: This endpoint is in beta and is subject to change.
906906
///
907-
/// Cancels the Copilot Business seat assignment for each user specified.
907+
/// Cancels the Copilot seat assignment for each user specified.
908908
/// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.
909909
///
910-
/// 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)"
910+
/// For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
911911
///
912-
/// 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)".
912+
/// For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
913913
///
914914
/// Only organization owners can configure GitHub Copilot in their organization.
915915
///
@@ -1074,11 +1074,11 @@ public struct Client: APIProtocol {
10741074
}
10751075
)
10761076
}
1077-
/// Get Copilot Business seat assignment details for a user
1077+
/// Get Copilot seat assignment details for a user
10781078
///
10791079
/// **Note**: This endpoint is in beta and is subject to change.
10801080
///
1081-
/// Gets the GitHub Copilot Business seat assignment details for a member of an organization who currently has access to GitHub Copilot.
1081+
/// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.
10821082
///
10831083
/// Organization owners can view GitHub Copilot seat assignment details for members in their organization.
10841084
///

0 commit comments

Comments
 (0)