Skip to content

Commit d721909

Browse files
Commit via running: make Sources/copilot-spaces
1 parent f6ee196 commit d721909

2 files changed

Lines changed: 112 additions & 0 deletions

File tree

Sources/copilot-spaces/Client.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public struct Client: APIProtocol {
4646
///
4747
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
4848
///
49+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in a space; spaces with inaccessible resources are omitted from the response.
50+
///
4951
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces`.
5052
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/get(copilot-spaces/list-for-org)`.
5153
public func copilotSpacesListForOrg(_ input: Operations.CopilotSpacesListForOrg.Input) async throws -> Operations.CopilotSpacesListForOrg.Output {
@@ -187,6 +189,8 @@ public struct Client: APIProtocol {
187189
///
188190
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
189191
///
192+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by the submitted resources.
193+
///
190194
/// - Remark: HTTP `POST /orgs/{org}/copilot-spaces`.
191195
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/post(copilot-spaces/create-for-org)`.
192196
public func copilotSpacesCreateForOrg(_ input: Operations.CopilotSpacesCreateForOrg.Input) async throws -> Operations.CopilotSpacesCreateForOrg.Output {
@@ -330,6 +334,8 @@ public struct Client: APIProtocol {
330334
///
331335
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
332336
///
337+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
338+
///
333339
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}`.
334340
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/get(copilot-spaces/get-for-org)`.
335341
public func copilotSpacesGetForOrg(_ input: Operations.CopilotSpacesGetForOrg.Input) async throws -> Operations.CopilotSpacesGetForOrg.Output {
@@ -443,6 +449,8 @@ public struct Client: APIProtocol {
443449
///
444450
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
445451
///
452+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including any being added or updated.
453+
///
446454
/// - Remark: HTTP `PUT /orgs/{org}/copilot-spaces/{space_number}`.
447455
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/put(copilot-spaces/update-for-org)`.
448456
public func copilotSpacesUpdateForOrg(_ input: Operations.CopilotSpacesUpdateForOrg.Input) async throws -> Operations.CopilotSpacesUpdateForOrg.Output {
@@ -589,6 +597,8 @@ public struct Client: APIProtocol {
589597
///
590598
/// OAuth app tokens and personal access tokens (classic) need both the `read:org` and `repo` scopes to use this endpoint.
591599
///
600+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
601+
///
592602
/// - Remark: HTTP `DELETE /orgs/{org}/copilot-spaces/{space_number}`.
593603
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/delete(copilot-spaces/delete-for-org)`.
594604
public func copilotSpacesDeleteForOrg(_ input: Operations.CopilotSpacesDeleteForOrg.Input) async throws -> Operations.CopilotSpacesDeleteForOrg.Output {
@@ -684,6 +694,8 @@ public struct Client: APIProtocol {
684694
///
685695
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
686696
///
697+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
698+
///
687699
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}/collaborators`.
688700
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/get(copilot-spaces/list-collaborators-for-org)`.
689701
public func copilotSpacesListCollaboratorsForOrg(_ input: Operations.CopilotSpacesListCollaboratorsForOrg.Input) async throws -> Operations.CopilotSpacesListCollaboratorsForOrg.Output {
@@ -798,6 +810,8 @@ public struct Client: APIProtocol {
798810
///
799811
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
800812
///
813+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
814+
///
801815
/// - Remark: HTTP `POST /orgs/{org}/copilot-spaces/{space_number}/collaborators`.
802816
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/post(copilot-spaces/add-collaborator-for-org)`.
803817
public func copilotSpacesAddCollaboratorForOrg(_ input: Operations.CopilotSpacesAddCollaboratorForOrg.Input) async throws -> Operations.CopilotSpacesAddCollaboratorForOrg.Output {
@@ -940,6 +954,8 @@ public struct Client: APIProtocol {
940954
///
941955
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
942956
///
957+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
958+
///
943959
/// - Remark: HTTP `PUT /orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}`.
944960
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}/put(copilot-spaces/update-collaborator-for-org)`.
945961
public func copilotSpacesUpdateCollaboratorForOrg(_ input: Operations.CopilotSpacesUpdateCollaboratorForOrg.Input) async throws -> Operations.CopilotSpacesUpdateCollaboratorForOrg.Output {
@@ -1086,6 +1102,8 @@ public struct Client: APIProtocol {
10861102
///
10871103
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
10881104
///
1105+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1106+
///
10891107
/// - Remark: HTTP `DELETE /orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}`.
10901108
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}/delete(copilot-spaces/remove-collaborator-for-org)`.
10911109
public func copilotSpacesRemoveCollaboratorForOrg(_ input: Operations.CopilotSpacesRemoveCollaboratorForOrg.Input) async throws -> Operations.CopilotSpacesRemoveCollaboratorForOrg.Output {
@@ -1180,6 +1198,8 @@ public struct Client: APIProtocol {
11801198
///
11811199
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
11821200
///
1201+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1202+
///
11831203
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}/resources`.
11841204
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/get(copilot-spaces/list-resources-for-org)`.
11851205
public func copilotSpacesListResourcesForOrg(_ input: Operations.CopilotSpacesListResourcesForOrg.Input) async throws -> Operations.CopilotSpacesListResourcesForOrg.Output {
@@ -1297,6 +1317,8 @@ public struct Client: APIProtocol {
12971317
///
12981318
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
12991319
///
1320+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being created.
1321+
///
13001322
/// - Remark: HTTP `POST /orgs/{org}/copilot-spaces/{space_number}/resources`.
13011323
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/post(copilot-spaces/create-resource-for-org)`.
13021324
public func copilotSpacesCreateResourceForOrg(_ input: Operations.CopilotSpacesCreateResourceForOrg.Input) async throws -> Operations.CopilotSpacesCreateResourceForOrg.Output {
@@ -1462,6 +1484,8 @@ public struct Client: APIProtocol {
14621484
///
14631485
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
14641486
///
1487+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1488+
///
14651489
/// - Remark: HTTP `GET /orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}`.
14661490
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}/get(copilot-spaces/get-resource-for-org)`.
14671491
public func copilotSpacesGetResourceForOrg(_ input: Operations.CopilotSpacesGetResourceForOrg.Input) async throws -> Operations.CopilotSpacesGetResourceForOrg.Output {
@@ -1575,6 +1599,8 @@ public struct Client: APIProtocol {
15751599
///
15761600
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
15771601
///
1602+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space, including the resource being updated.
1603+
///
15781604
/// - Remark: HTTP `PUT /orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}`.
15791605
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}/put(copilot-spaces/update-resource-for-org)`.
15801606
public func copilotSpacesUpdateResourceForOrg(_ input: Operations.CopilotSpacesUpdateResourceForOrg.Input) async throws -> Operations.CopilotSpacesUpdateResourceForOrg.Output {
@@ -1719,6 +1745,8 @@ public struct Client: APIProtocol {
17191745
///
17201746
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
17211747
///
1748+
/// Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in the space.
1749+
///
17221750
/// - Remark: HTTP `DELETE /orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}`.
17231751
/// - Remark: Generated from `#/paths//orgs/{org}/copilot-spaces/{space_number}/resources/{space_resource_id}/delete(copilot-spaces/delete-resource-for-org)`.
17241752
public func copilotSpacesDeleteResourceForOrg(_ input: Operations.CopilotSpacesDeleteResourceForOrg.Input) async throws -> Operations.CopilotSpacesDeleteResourceForOrg.Output {

0 commit comments

Comments
 (0)