Skip to content

Bump Submodule/github/rest-api-description from 6b266a1 to 5b32856 #81

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
6 changes: 0 additions & 6 deletions Sources/orgs/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -5422,7 +5420,6 @@ public enum Components {
/// - owned_private_repos:
/// - private_gists:
/// - disk_usage:
/// - collaborators:
/// - billing_email:
/// - plan:
/// - default_repository_permission:
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions Sources/repos/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
31 changes: 29 additions & 2 deletions Sources/repos/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Submodule/github/rest-api-description