diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index 88c91593325..0a8b499493a 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -5249,8 +5249,6 @@ public enum Components { public var private_gists: Swift.Int? /// - Remark: Generated from `#/components/schemas/organization-full/disk_usage`. public var disk_usage: Swift.Int? - /// - Remark: Generated from `#/components/schemas/organization-full/collaborators`. - public var collaborators: Swift.Int? /// - Remark: Generated from `#/components/schemas/organization-full/billing_email`. public var billing_email: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/plan`. @@ -5422,7 +5420,6 @@ public enum Components { /// - owned_private_repos: /// - private_gists: /// - disk_usage: - /// - collaborators: /// - billing_email: /// - plan: /// - default_repository_permission: @@ -5480,7 +5477,6 @@ public enum Components { owned_private_repos: Swift.Int? = nil, private_gists: Swift.Int? = nil, disk_usage: Swift.Int? = nil, - collaborators: Swift.Int? = nil, billing_email: Swift.String? = nil, plan: Components.Schemas.organization_hyphen_full.planPayload? = nil, default_repository_permission: Swift.String? = nil, @@ -5538,7 +5534,6 @@ public enum Components { self.owned_private_repos = owned_private_repos self.private_gists = private_gists self.disk_usage = disk_usage - self.collaborators = collaborators self.billing_email = billing_email self.plan = plan self.default_repository_permission = default_repository_permission @@ -5597,7 +5592,6 @@ public enum Components { case owned_private_repos case private_gists case disk_usage - case collaborators case billing_email case plan case default_repository_permission diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index 0729e4c8161..778cbd9dda3 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -311,6 +311,13 @@ public struct Client: APIProtocol { name: "page", value: input.query.page ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "targets", + value: input.query.targets + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept @@ -16141,6 +16148,13 @@ public struct Client: APIProtocol { name: "includes_parents", value: input.query.includes_parents ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "targets", + value: input.query.targets + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 58b0a108c8e..32d32fa51e6 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -22113,6 +22113,13 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/invitation-id`. public typealias invitation_hyphen_id = Swift.Int + /// A comma-separated list of rule targets to filter by. + /// If provided, only rulesets that apply to the specified targets will be returned. + /// For example, `branch,tag,push`. + /// + /// + /// - Remark: Generated from `#/components/parameters/ruleset-targets`. + public typealias ruleset_hyphen_targets = Swift.String /// The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. /// /// - Remark: Generated from `#/components/parameters/ref-in-query`. @@ -23442,17 +23449,27 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query/page`. public var page: Components.Parameters.page? + /// A comma-separated list of rule targets to filter by. + /// If provided, only rulesets that apply to the specified targets will be returned. + /// For example, `branch,tag,push`. + /// + /// + /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query/targets`. + public var targets: Components.Parameters.ruleset_hyphen_targets? /// Creates a new `Query`. /// /// - Parameters: /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// - targets: A comma-separated list of rule targets to filter by. public init( per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + page: Components.Parameters.page? = nil, + targets: Components.Parameters.ruleset_hyphen_targets? = nil ) { self.per_page = per_page self.page = page + self.targets = targets } } public var query: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Query @@ -56553,20 +56570,30 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/includes_parents`. public var includes_parents: Swift.Bool? + /// A comma-separated list of rule targets to filter by. + /// If provided, only rulesets that apply to the specified targets will be returned. + /// For example, `branch,tag,push`. + /// + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/targets`. + public var targets: Components.Parameters.ruleset_hyphen_targets? /// Creates a new `Query`. /// /// - Parameters: /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - includes_parents: Include rulesets configured at higher levels that apply to this repository + /// - targets: A comma-separated list of rule targets to filter by. public init( per_page: Components.Parameters.per_hyphen_page? = nil, page: Components.Parameters.page? = nil, - includes_parents: Swift.Bool? = nil + includes_parents: Swift.Bool? = nil, + targets: Components.Parameters.ruleset_hyphen_targets? = nil ) { self.per_page = per_page self.page = page self.includes_parents = includes_parents + self.targets = targets } } public var query: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Query diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index 6b266a1120a..5b32856c2a9 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 6b266a1120ab13e630a3606d1906a62b44d6db36 +Subproject commit 5b32856c2a9e0b8bf9ec957b5a7d46afa6e6d8f4