Skip to content

Bump Submodule/github/rest-api-description from 9110306 to c52348c #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Sources/dependabot/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ public struct Client: APIProtocol {
}
)
}
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Lists the repositories Dependabot can access in an organization
///
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Unauthorized users will not see the existence of this endpoint.
Expand Down Expand Up @@ -398,7 +399,9 @@ public struct Client: APIProtocol {
}
)
}
/// Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Updates Dependabot's repository access list for an organization
///
/// Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies.
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
Expand Down Expand Up @@ -507,14 +510,14 @@ public struct Client: APIProtocol {
}
/// Set the default repository access level for Dependabot
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Sets the default level of repository access Dependabot will have while performing an update. Available values are:
/// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories.
/// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories.
///
/// Unauthorized users will not see the existence of this endpoint.
///
/// This operation supports both server-to-server and user-to-server access.
///
/// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`.
/// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`.
public func dependabotSetRepositoryAccessDefaultLevel(_ input: Operations.DependabotSetRepositoryAccessDefaultLevel.Input) async throws -> Operations.DependabotSetRepositoryAccessDefaultLevel.Output {
Expand Down
33 changes: 21 additions & 12 deletions Sources/dependabot/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ public protocol APIProtocol: Sendable {
/// - Remark: HTTP `GET /enterprises/{enterprise}/dependabot/alerts`.
/// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)`.
func dependabotListAlertsForEnterprise(_ input: Operations.DependabotListAlertsForEnterprise.Input) async throws -> Operations.DependabotListAlertsForEnterprise.Output
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Lists the repositories Dependabot can access in an organization
///
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Unauthorized users will not see the existence of this endpoint.
///
/// - Remark: HTTP `GET /organizations/{org}/dependabot/repository-access`.
/// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)`.
func dependabotRepositoryAccessForOrg(_ input: Operations.DependabotRepositoryAccessForOrg.Input) async throws -> Operations.DependabotRepositoryAccessForOrg.Output
/// Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Updates Dependabot's repository access list for an organization
///
/// Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies.
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
Expand All @@ -52,14 +55,14 @@ public protocol APIProtocol: Sendable {
func dependabotUpdateRepositoryAccessForOrg(_ input: Operations.DependabotUpdateRepositoryAccessForOrg.Input) async throws -> Operations.DependabotUpdateRepositoryAccessForOrg.Output
/// Set the default repository access level for Dependabot
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Sets the default level of repository access Dependabot will have while performing an update. Available values are:
/// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories.
/// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories.
///
/// Unauthorized users will not see the existence of this endpoint.
///
/// This operation supports both server-to-server and user-to-server access.
///
/// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`.
/// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`.
func dependabotSetRepositoryAccessDefaultLevel(_ input: Operations.DependabotSetRepositoryAccessDefaultLevel.Input) async throws -> Operations.DependabotSetRepositoryAccessDefaultLevel.Output
Expand Down Expand Up @@ -264,8 +267,9 @@ extension APIProtocol {
headers: headers
))
}
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Lists the repositories Dependabot can access in an organization
///
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Unauthorized users will not see the existence of this endpoint.
Expand All @@ -283,7 +287,9 @@ extension APIProtocol {
headers: headers
))
}
/// Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Updates Dependabot's repository access list for an organization
///
/// Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies.
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
Expand Down Expand Up @@ -312,14 +318,14 @@ extension APIProtocol {
}
/// Set the default repository access level for Dependabot
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Sets the default level of repository access Dependabot will have while performing an update. Available values are:
/// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories.
/// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories.
///
/// Unauthorized users will not see the existence of this endpoint.
///
/// This operation supports both server-to-server and user-to-server access.
///
/// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`.
/// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`.
public func dependabotSetRepositoryAccessDefaultLevel(
Expand Down Expand Up @@ -4915,8 +4921,9 @@ public enum Operations {
}
}
}
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Lists the repositories Dependabot can access in an organization
///
/// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Unauthorized users will not see the existence of this endpoint.
Expand Down Expand Up @@ -5122,7 +5129,9 @@ public enum Operations {
}
}
}
/// Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.
/// Updates Dependabot's repository access list for an organization
///
/// Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies.
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
Expand Down Expand Up @@ -5332,14 +5341,14 @@ public enum Operations {
}
/// Set the default repository access level for Dependabot
///
/// > [!NOTE]
/// > This operation supports both server-to-server and user-to-server access.
/// Sets the default level of repository access Dependabot will have while performing an update. Available values are:
/// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories.
/// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories.
///
/// Unauthorized users will not see the existence of this endpoint.
///
/// This operation supports both server-to-server and user-to-server access.
///
/// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`.
/// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`.
public enum DependabotSetRepositoryAccessDefaultLevel {
Expand Down
Loading