Skip to content

Commit 0c1c50b

Browse files
Commit via running ake Sources/teams
1 parent 69718d6 commit 0c1c50b

File tree

2 files changed

+720
-714
lines changed

2 files changed

+720
-714
lines changed

Sources/teams/Client.swift

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,13 +1749,13 @@ public struct Client: APIProtocol {
17491749
}
17501750
/// List team projects
17511751
///
1752-
/// Lists the organization projects for a team.
1753-
///
1754-
/// > [!NOTE]
1755-
/// > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`.
1752+
/// > [!WARNING]
1753+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
1754+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
17561755
///
17571756
/// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects`.
17581757
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/get(teams/list-projects-in-org)`.
1758+
@available(*, deprecated)
17591759
public func teams_sol_list_hyphen_projects_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output {
17601760
try await client.send(
17611761
input: input,
@@ -1839,13 +1839,13 @@ public struct Client: APIProtocol {
18391839
}
18401840
/// Check team permissions for a project
18411841
///
1842-
/// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team.
1843-
///
1844-
/// > [!NOTE]
1845-
/// > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects/{project_id}`.
1842+
/// > [!WARNING]
1843+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
1844+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
18461845
///
18471846
/// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects/{project_id}`.
18481847
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)`.
1848+
@available(*, deprecated)
18491849
public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output {
18501850
try await client.send(
18511851
input: input,
@@ -1910,13 +1910,13 @@ public struct Client: APIProtocol {
19101910
}
19111911
/// Add or update team project permissions
19121912
///
1913-
/// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.
1914-
///
1915-
/// > [!NOTE]
1916-
/// > You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}`.
1913+
/// > [!WARNING]
1914+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
1915+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
19171916
///
19181917
/// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}`.
19191918
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)`.
1919+
@available(*, deprecated)
19201920
public func teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output {
19211921
try await client.send(
19221922
input: input,
@@ -1992,13 +1992,13 @@ public struct Client: APIProtocol {
19921992
}
19931993
/// Remove a project from a team
19941994
///
1995-
/// Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project.
1996-
///
1997-
/// > [!NOTE]
1998-
/// > You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/projects/{project_id}`.
1995+
/// > [!WARNING]
1996+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
1997+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
19991998
///
20001999
/// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}`.
20012000
/// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)`.
2001+
@available(*, deprecated)
20022002
public func teams_sol_remove_hyphen_project_hyphen_in_hyphen_org(_ input: Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Output {
20032003
try await client.send(
20042004
input: input,
@@ -4174,9 +4174,8 @@ public struct Client: APIProtocol {
41744174
/// List team projects (Legacy)
41754175
///
41764176
/// > [!WARNING]
4177-
/// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint.
4178-
///
4179-
/// Lists the organization projects for a team.
4177+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
4178+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
41804179
///
41814180
/// - Remark: HTTP `GET /teams/{team_id}/projects`.
41824181
/// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)`.
@@ -4286,9 +4285,8 @@ public struct Client: APIProtocol {
42864285
/// Check team permissions for a project (Legacy)
42874286
///
42884287
/// > [!WARNING]
4289-
/// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint.
4290-
///
4291-
/// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team.
4288+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
4289+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
42924290
///
42934291
/// - Remark: HTTP `GET /teams/{team_id}/projects/{project_id}`.
42944292
/// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)`.
@@ -4357,9 +4355,8 @@ public struct Client: APIProtocol {
43574355
/// Add or update team project permissions (Legacy)
43584356
///
43594357
/// > [!WARNING]
4360-
/// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint.
4361-
///
4362-
/// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.
4358+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
4359+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
43634360
///
43644361
/// - Remark: HTTP `PUT /teams/{team_id}/projects/{project_id}`.
43654362
/// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)`.
@@ -4483,9 +4480,8 @@ public struct Client: APIProtocol {
44834480
/// Remove a project from a team (Legacy)
44844481
///
44854482
/// > [!WARNING]
4486-
/// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint.
4487-
///
4488-
/// Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it.
4483+
/// > **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.
4484+
/// > See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.
44894485
///
44904486
/// - Remark: HTTP `DELETE /teams/{team_id}/projects/{project_id}`.
44914487
/// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)`.

0 commit comments

Comments
 (0)